aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7a071535c4c0..604dbf5051d3 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -777,6 +777,42 @@ struct netdev_tc_txq {
777 * queues stopped. This allows the netdevice to perform queue management 777 * queues stopped. This allows the netdevice to perform queue management
778 * safely. 778 * safely.
779 * 779 *
780 * Fiber Channel over Ethernet (FCoE) offload functions.
781 * int (*ndo_fcoe_enable)(struct net_device *dev);
782 * Called when the FCoE protocol stack wants to start using LLD for FCoE
783 * so the underlying device can perform whatever needed configuration or
784 * initialization to support acceleration of FCoE traffic.
785 *
786 * int (*ndo_fcoe_disable)(struct net_device *dev);
787 * Called when the FCoE protocol stack wants to stop using LLD for FCoE
788 * so the underlying device can perform whatever needed clean-ups to
789 * stop supporting acceleration of FCoE traffic.
790 *
791 * int (*ndo_fcoe_ddp_setup)(struct net_device *dev, u16 xid,
792 * struct scatterlist *sgl, unsigned int sgc);
793 * Called when the FCoE Initiator wants to initialize an I/O that
794 * is a possible candidate for Direct Data Placement (DDP). The LLD can
795 * perform necessary setup and returns 1 to indicate the device is set up
796 * successfully to perform DDP on this I/O, otherwise this returns 0.
797 *
798 * int (*ndo_fcoe_ddp_done)(struct net_device *dev, u16 xid);
799 * Called when the FCoE Initiator/Target is done with the DDPed I/O as
800 * indicated by the FC exchange id 'xid', so the underlying device can
801 * clean up and reuse resources for later DDP requests.
802 *
803 * int (*ndo_fcoe_ddp_target)(struct net_device *dev, u16 xid,
804 * struct scatterlist *sgl, unsigned int sgc);
805 * Called when the FCoE Target wants to initialize an I/O that
806 * is a possible candidate for Direct Data Placement (DDP). The LLD can
807 * perform necessary setup and returns 1 to indicate the device is set up
808 * successfully to perform DDP on this I/O, otherwise this returns 0.
809 *
810 * int (*ndo_fcoe_get_wwn)(struct net_device *dev, u64 *wwn, int type);
811 * Called when the underlying device wants to override default World Wide
812 * Name (WWN) generation mechanism in FCoE protocol stack to pass its own
813 * World Wide Port Name (WWPN) or World Wide Node Name (WWNN) to the FCoE
814 * protocol stack to use.
815 *
780 * RFS acceleration. 816 * RFS acceleration.
781 * int (*ndo_rx_flow_steer)(struct net_device *dev, const struct sk_buff *skb, 817 * int (*ndo_rx_flow_steer)(struct net_device *dev, const struct sk_buff *skb,
782 * u16 rxq_index, u32 flow_id); 818 * u16 rxq_index, u32 flow_id);