net: Add ndo_fcoe_get_wwn to net_device_ops
authorYi Zou <yi.zou@intel.com>
Wed, 28 Oct 2009 18:24:35 +0000 (18:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Oct 2009 08:04:03 +0000 (01:04 -0700)
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 <yi.zou@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index e7c227d..656110a 100644 (file)
@@ -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
 };