diff options
author | Yi Zou <yi.zou@intel.com> | 2009-02-27 17:06:59 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-13 16:12:12 -0400 |
commit | 4d288d5767f853bfca25adc7b6030dc95518cb2e (patch) | |
tree | c48c34dd06d6f269d7118bbe96f7ffa4cae8071b | |
parent | 1c8dbcf6496c2612d883a8bc6bccc38000e14866 (diff) |
[SCSI] net: add FCoE offload support through net_device
This adds support to provide Fiber Channel over Ethernet (FCoE) offload
through net_device's net_device_ops struct. The offload through net_device
for FCoE is enabled in kernel as built-in or module driver.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | include/linux/netdevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 5c405571cb60..7ed49f5335b1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -582,6 +582,14 @@ struct net_device_ops { | |||
582 | #define HAVE_NETDEV_POLL | 582 | #define HAVE_NETDEV_POLL |
583 | void (*ndo_poll_controller)(struct net_device *dev); | 583 | void (*ndo_poll_controller)(struct net_device *dev); |
584 | #endif | 584 | #endif |
585 | #if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE) | ||
586 | int (*ndo_fcoe_ddp_setup)(struct net_device *dev, | ||
587 | u16 xid, | ||
588 | struct scatterlist *sgl, | ||
589 | unsigned int sgc); | ||
590 | int (*ndo_fcoe_ddp_done)(struct net_device *dev, | ||
591 | u16 xid); | ||
592 | #endif | ||
585 | }; | 593 | }; |
586 | 594 | ||
587 | /* | 595 | /* |
@@ -843,6 +851,11 @@ struct net_device | |||
843 | struct dcbnl_rtnl_ops *dcbnl_ops; | 851 | struct dcbnl_rtnl_ops *dcbnl_ops; |
844 | #endif | 852 | #endif |
845 | 853 | ||
854 | #if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE) | ||
855 | /* max exchange id for FCoE LRO by ddp */ | ||
856 | unsigned int fcoe_ddp_xid; | ||
857 | #endif | ||
858 | |||
846 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | 859 | #ifdef CONFIG_COMPAT_NET_DEV_OPS |
847 | struct { | 860 | struct { |
848 | int (*init)(struct net_device *dev); | 861 | int (*init)(struct net_device *dev); |