diff options
author | Bhanu Prakash Gollapudi <bprakash@broadcom.com> | 2011-08-26 05:45:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-28 17:08:28 -0400 |
commit | 3c9c36bcedd426f2be2826da43e5163de61735f7 (patch) | |
tree | bdbccabd938d1fe85d1502afbaaee52a07a1ff9c /include/linux/netdevice.h | |
parent | dcc7e3a6a2a2464cf96dee329f7c58fe8c230d97 (diff) |
net: Define NETDEV_FCOE_WWNN, NETDEV_FCOE_WWPN only when CONFIG_LIBFCOE is enabled
bnx2fc driver calls netdev->netdev_ops->ndo_fcoe_get_wwn() and it may not
be defined with the current Kconfig dependencies. ndo_fcoe_get_wwn is
dependent on CONFIG_FCOE, but bnx2fc does not select CONFIG_FCOE, as it does
not depend on fcoe driver. Since both fcoe and bnx2fc drivers select
CONFIG_LIBFCOE, define NETDEV_FCOE_WWNN and NETDEV_FCOE_WWPN when
CONFIG_LIBFCOE is defined.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Yi Zou <yi.zou@intel.com>
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Yi Zou <yi.zou@intel.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 125f9fb8ece..0a7f619f284 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -922,11 +922,15 @@ struct net_device_ops { | |||
922 | u16 xid, | 922 | u16 xid, |
923 | struct scatterlist *sgl, | 923 | struct scatterlist *sgl, |
924 | unsigned int sgc); | 924 | unsigned int sgc); |
925 | #endif | ||
926 | |||
927 | #if defined(CONFIG_LIBFCOE) || defined(CONFIG_LIBFCOE_MODULE) | ||
925 | #define NETDEV_FCOE_WWNN 0 | 928 | #define NETDEV_FCOE_WWNN 0 |
926 | #define NETDEV_FCOE_WWPN 1 | 929 | #define NETDEV_FCOE_WWPN 1 |
927 | int (*ndo_fcoe_get_wwn)(struct net_device *dev, | 930 | int (*ndo_fcoe_get_wwn)(struct net_device *dev, |
928 | u64 *wwn, int type); | 931 | u64 *wwn, int type); |
929 | #endif | 932 | #endif |
933 | |||
930 | #ifdef CONFIG_RFS_ACCEL | 934 | #ifdef CONFIG_RFS_ACCEL |
931 | int (*ndo_rx_flow_steer)(struct net_device *dev, | 935 | int (*ndo_rx_flow_steer)(struct net_device *dev, |
932 | const struct sk_buff *skb, | 936 | const struct sk_buff *skb, |