<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>RE: [openfabrics-ewg] [PATCH 3/3] Integrate VNIC into the OFED build process</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Thanks Vlad.<BR>
<BR>
Regards,<BR>
Ram<BR>
<BR>
-----Original Message-----<BR>
From: Vladimir Sokolovsky [<A HREF="mailto:vlad@dev.mellanox.co.il">mailto:vlad@dev.mellanox.co.il</A>]<BR>
Sent: Wed 12/20/2006 6:02 PM<BR>
To: Ramachandra Kuchimanchi<BR>
Cc: openfabrics-ewg@openib.org<BR>
Subject: Re: [openfabrics-ewg] [PATCH 3/3] Integrate VNIC into the OFED build process<BR>
<BR>
Ramachandra K wrote:<BR>
> Add the VNIC driver to the OFED build process<BR>
><BR>
><BR>
> Signed-off-by: Ramachandra K <ramachandra.kuchimanchi@qlogic.com><BR>
> ---<BR>
><BR>
> drivers/infiniband/Kconfig | 2 +<BR>
> drivers/infiniband/Makefile | 1 +<BR>
> ofed_scripts/Makefile | 3 ++<BR>
> ofed_scripts/configure | 60 +++++++++++++++++++++++++++++++++++++++----<BR>
> 4 files changed, 60 insertions(+), 6 deletions(-)<BR>
><BR>
> diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig<BR>
> index 6c1cc69..62233cd 100644<BR>
> --- a/drivers/infiniband/Kconfig<BR>
> +++ b/drivers/infiniband/Kconfig<BR>
> @@ -47,4 +47,6 @@ source "drivers/infiniband/ulp/iser/Kcon<BR>
> <BR>
> source "drivers/infiniband/ulp/sdp/Kconfig"<BR>
> <BR>
> +source "drivers/infiniband/ulp/vnic/Kconfig"<BR>
> +<BR>
> endmenu<BR>
> diff --git a/drivers/infiniband/Makefile b/drivers/infiniband/Makefile<BR>
> index 6cc7e4a..2bd27b5 100644<BR>
> --- a/drivers/infiniband/Makefile<BR>
> +++ b/drivers/infiniband/Makefile<BR>
> @@ -7,3 +7,4 @@ obj-$(CONFIG_INFINIBAND_IPOIB) += ulp/i<BR>
> obj-$(CONFIG_INFINIBAND_SRP) += ulp/srp/<BR>
> obj-$(CONFIG_INFINIBAND_ISER) += ulp/iser/<BR>
> obj-$(CONFIG_INFINIBAND_SDP) += ulp/sdp/<BR>
> +obj-$(CONFIG_INFINIBAND_VNIC) += ulp/vnic/<BR>
> diff --git a/ofed_scripts/Makefile b/ofed_scripts/Makefile<BR>
> index d82bc60..34a24b7 100644<BR>
> --- a/ofed_scripts/Makefile<BR>
> +++ b/ofed_scripts/Makefile<BR>
> @@ -61,6 +61,9 @@ kernel:<BR>
> CONFIG_INFINIBAND_IPATH=$(CONFIG_INFINIBAND_IPATH) \<BR>
> CONFIG_INFINIBAND_MTHCA_DEBUG=$(CONFIG_INFINIBAND_MTHCA_DEBUG) \<BR>
> CONFIG_INFINIBAND_MADEYE=$(CONFIG_INFINIBAND_MADEYE) \<BR>
> + CONFIG_INFINIBAND_VNIC=$(CONFIG_INFINIBAND_VNIC) \<BR>
> + CONFIG_INFINIBAND_VNIC_DEBUG=$(CONFIG_INFINIBAND_VNIC_DEBUG) \<BR>
> + CONFIG_INFINIBAND_VNIC_STATS=$(CONFIG_INFINIBAND_VNIC_STATS) \<BR>
> LINUXINCLUDE=' \<BR>
> $(BACKPORT_INCLUDES) \<BR>
> -I$(CWD)/include \<BR>
> diff --git a/ofed_scripts/configure b/ofed_scripts/configure<BR>
> index 5e03775..db78d38 100755<BR>
> --- a/ofed_scripts/configure<BR>
> +++ b/ofed_scripts/configure<BR>
> @@ -117,6 +117,15 @@ Usage: `basename $0` [options]<BR>
> --with-madeye-mod make CONFIG_INFINIBAND_MADEYE=m [no]<BR>
> --without-madeye-mod [yes]<BR>
> <BR>
> + --with-vnic-mod make CONFIG_INFINIBAND_VNIC=m [no]<BR>
> + --without-vnic-mod [yes]<BR>
> +<BR>
> + --with-vnic_debug-mod make CONFIG_INFINIBAND_VNIC_DEBUG=y [no]<BR>
> + --without-vnic_debug-mod [yes]<BR>
> +<BR>
> + --with-vnic_stats-mod make CONFIG_INFINIBAND_VNIC_STATS=y [no]<BR>
> + --without-vnic_stats-mod [yes]<BR>
> +<BR>
> --help - print out options<BR>
> <BR>
> <BR>
> @@ -629,6 +638,24 @@ main()<BR>
> --without-madeye-mod)<BR>
> CONFIG_INFINIBAND_MADEYE=<BR>
> ;;<BR>
> + --with-vnic-mod)<BR>
> + CONFIG_INFINIBAND_VNIC="m"<BR>
> + ;;<BR>
> + --without-vnic-mod)<BR>
> + CONFIG_INFINIBAND_VNIC=<BR>
> + ;;<BR>
> + --with-vnic_debug-mod)<BR>
> + CONFIG_INFINIBAND_VNIC_DEBUG="y"<BR>
> + ;;<BR>
> + --without-vnic-mod)<BR>
> + CONFIG_INFINIBAND_VNIC_DEBUG=<BR>
> + ;;<BR>
> + --with-vnic_stats-mod)<BR>
> + CONFIG_INFINIBAND_VNIC_STATS="y"<BR>
> + ;;<BR>
> + --without-vnic_stats-mod)<BR>
> + CONFIG_INFINIBAND_VNIC_STATS=<BR>
> + ;;<BR>
> --with-modprobe|--without-modprobe)<BR>
> ;;<BR>
> -h | --help)<BR>
> @@ -698,7 +725,7 @@ CONFIG_INFINIBAND_EHCA_SCALING=${CONFIG_<BR>
> CONFIG_INFINIBAND_RDS=${CONFIG_INFINIBAND_RDS:-''}<BR>
> CONFIG_INFINIBAND_RDS_DEBUG=${CONFIG_INFINIBAND_RDS_DEBUG:-''}<BR>
> CONFIG_INFINIBAND_MADEYE=${CONFIG_INFINIBAND_MADEYE:-''}<BR>
> -<BR>
> +CONFIG_INFINIBAND_VNIC=${CONFIG_INFINIBAND_VNIC:-''}<BR>
> <BR>
> CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=${CONFIG_INFINIBAND_IPOIB_DEBUG_DATA:-''}<BR>
> CONFIG_INFINIBAND_SDP_SEND_ZCOPY=${CONFIG_INFINIBAND_SDP_SEND_ZCOPY:-''}<BR>
> @@ -707,7 +734,8 @@ CONFIG_INFINIBAND_SDP_DEBUG=${CONFIG_INF<BR>
> CONFIG_INFINIBAND_SDP_DEBUG_DATA=${CONFIG_INFINIBAND_SDP_DEBUG_DATA:-''}<BR>
> CONFIG_INFINIBAND_IPATH=${CONFIG_INFINIBAND_IPATH:-''}<BR>
> CONFIG_INFINIBAND_MTHCA_DEBUG=${CONFIG_INFINIBAND_MTHCA_DEBUG:-''}<BR>
> -<BR>
> +CONFIG_INFINIBAND_VNIC_DEBUG=${CONFIG_INFINIBAND_VNIC_DEBUG:-''}<BR>
> +CONFIG_INFINIBAND_VNIC_STATS=${CONFIG_INFINIBAND_VNIC_STATS:-''}<BR>
> <BR>
> # Check for minimal supported kernel version<BR>
> if ! check_kerver ${KVERSION} ${MIN_KVERSION}; then<BR>
> @@ -758,6 +786,7 @@ CONFIG_INFINIBAND_EHCA_SCALING=${CONFIG_<BR>
> CONFIG_INFINIBAND_RDS=${CONFIG_INFINIBAND_RDS}<BR>
> CONFIG_INFINIBAND_RDS_DEBUG=${CONFIG_INFINIBAND_RDS_DEBUG}<BR>
> CONFIG_INFINIBAND_MADEYE=${CONFIG_INFINIBAND_MADEYE}<BR>
> +CONFIG_INFINIBAND_VNIC=${CONFIG_INFINIBAND_VNIC}<BR>
> <BR>
> CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=${CONFIG_INFINIBAND_IPOIB_DEBUG_DATA}<BR>
> CONFIG_INFINIBAND_SDP_SEND_ZCOPY=${CONFIG_INFINIBAND_SDP_SEND_ZCOPY}<BR>
> @@ -766,7 +795,8 @@ CONFIG_INFINIBAND_SDP_DEBUG=${CONFIG_INF<BR>
> CONFIG_INFINIBAND_SDP_DEBUG_DATA=${CONFIG_INFINIBAND_SDP_DEBUG_DATA}<BR>
> CONFIG_INFINIBAND_IPATH=${CONFIG_INFINIBAND_IPATH}<BR>
> CONFIG_INFINIBAND_MTHCA_DEBUG=${CONFIG_INFINIBAND_MTHCA_DEBUG}<BR>
> -<BR>
> +CONFIG_INFINIBAND_VNIC_DEBUG=${CONFIG_INFINIBAND_VNIC_DEBUG}<BR>
> +CONFIG_INFINIBAND_VNIC_STATS=${CONFIG_INFINIBAND_VNIC_STATS}<BR>
> <BR>
> EOFCONFIG<BR>
> echo "Created ${CONFIG}:"<BR>
> @@ -883,8 +913,21 @@ if [ "X${CONFIG_INFINIBAND_MTHCA_DEBUG}"<BR>
> else<BR>
> DEFINE_INFINIBAND_MTHCA_DEBUG="#undef CONFIG_INFINIBAND_MTHCA_DEBUG"<BR>
> fi<BR>
> -<BR>
> -<BR>
> +if [ "X${CONFIG_INFINIBAND_VNIC}" == "Xm" ]; then<BR>
> + DEFINE_INFINIBAND_VNIC="#define CONFIG_INFINIBAND_VNIC 1"<BR>
> +else<BR>
> + DEFINE_INFINIBAND_VNIC="#undef CONFIG_INFINIBAND_VNIC"<BR>
> +fi<BR>
> +if [ "X${CONFIG_INFINIBAND_VNIC_DEBUG}" == "Xy" ]; then<BR>
> + DEFINE_INFINIBAND_VNIC_DEBUG="#define CONFIG_INFINIBAND_VNIC_DEBUG 1"<BR>
> +else<BR>
> + DEFINE_INFINIBAND_VNIC_DEBUG="#undef CONFIG_INFINIBAND_VNIC_DEBUG"<BR>
> +fi<BR>
> +if [ "X${CONFIG_INFINIBAND_VNIC_STATS}" == "Xy" ]; then<BR>
> + DEFINE_INFINIBAND_VNIC_STATS="#define CONFIG_INFINIBAND_VNIC_STATS 1"<BR>
> +else<BR>
> + DEFINE_INFINIBAND_VNIC_STATS="#undef CONFIG_INFINIBAND_VNIC_STATS"<BR>
> +fi<BR>
> cat >> ${AUTOCONF_H} << EOFAUTOCONF<BR>
> #undef CONFIG_INFINIBAND<BR>
> #undef CONFIG_INFINIBAND_IPOIB<BR>
> @@ -903,6 +946,9 @@ cat >> ${AUTOCONF_H} << EOFAUTOCONF<BR>
> #undef CONFIG_INFINIBAND_RDS<BR>
> #undef CONFIG_INFINIBAND_RDS_DEBUG<BR>
> #undef CONFIG_INFINIBAND_MADEYE<BR>
> +#undef CONFIG_INFINIBAND_VNIC<BR>
> +#undef CONFIG_INFINIBAND_VNIC_DEBUG<BR>
> +#undef CONFIG_INFINIBAND_VNIC_STATS<BR>
> <BR>
> #undef CONFIG_INFINIBAND_IPOIB_DEBUG_DATA<BR>
> #undef CONFIG_INFINIBAND_SDP_SEND_ZCOPY<BR>
> @@ -921,13 +967,15 @@ ${DEFINE_INFINIBAND_USER_MAD}<BR>
> ${DEFINE_INFINIBAND_USER_ACCESS}<BR>
> ${DEFINE_INFINIBAND_ADDR_TRANS}<BR>
> ${DEFINE_INFINIBAND_MTHCA}<BR>
> +${DEFINE_INFINIBAND_VNIC}<BR>
> <BR>
> ${DEFINE_INFINIBAND_IPOIB_DEBUG}<BR>
> ${DEFINE_INFINIBAND_ISER}<BR>
> ${DEFINE_INFINIBAND_EHCA}<BR>
> ${DEFINE_INFINIBAND_RDS}<BR>
> ${DEFINE_INFINIBAND_RDS_DEBUG}<BR>
> -<BR>
> +${DEFINE_INFINIBAND_VNIC_DEBUG}<BR>
> +${DEFINE_INFINIBAND_VNIC_STATS}<BR>
> <BR>
> ${DEFINE_INFINIBAND_IPOIB_DEBUG_DATA}<BR>
> ${DEFINE_INFINIBAND_SDP_SEND_ZCOPY}<BR>
><BR>
><BR>
><BR>
> _______________________________________________<BR>
> openfabrics-ewg mailing list<BR>
> openfabrics-ewg@openib.org<BR>
> <A HREF="http://openib.org/mailman/listinfo/openfabrics-ewg">http://openib.org/mailman/listinfo/openfabrics-ewg</A><BR>
> <BR>
Applied.<BR>
<BR>
Regards,<BR>
Vladimir<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>