From: Yi Zou Date: Wed, 28 Oct 2009 18:24:35 +0000 (+0000) Subject: net: Add ndo_fcoe_get_wwn to net_device_ops X-Git-Tag: v2.6.33-rc1~388^2~629 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=df5c79452f26f2a3d0883a213102515cfeb7aae9;p=safe%2Fjmp%2Flinux-2.6 net: Add ndo_fcoe_get_wwn to net_device_ops Add ndo_fcoe_get_wwn so Fiber Channel over Ethernet (FCoE) can make use of the provided World Wide Port Name (WWPN) and World Wide Node Name (WWNN) from the underlying network interface driver. Signed-off-by: Yi Zou Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e7c227d..656110a 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -635,6 +635,10 @@ struct net_device_ops { unsigned int sgc); int (*ndo_fcoe_ddp_done)(struct net_device *dev, u16 xid); +#define NETDEV_FCOE_WWNN 0 +#define NETDEV_FCOE_WWPN 1 + int (*ndo_fcoe_get_wwn)(struct net_device *dev, + u64 *wwn, int type); #endif };