Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vlan: add support to ndo_fcoe_ddp_target()

Add the new target ddp offload support ndo_fcoe_ddp_target().

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

authored by

Yi Zou and committed by
Jeff Kirsher
4ea09c9c 6247e086

+14
+14
net/8021q/vlan_dev.c
··· 625 625 rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type); 626 626 return rc; 627 627 } 628 + 629 + static int vlan_dev_fcoe_ddp_target(struct net_device *dev, u16 xid, 630 + struct scatterlist *sgl, unsigned int sgc) 631 + { 632 + struct net_device *real_dev = vlan_dev_info(dev)->real_dev; 633 + const struct net_device_ops *ops = real_dev->netdev_ops; 634 + int rc = 0; 635 + 636 + if (ops->ndo_fcoe_ddp_target) 637 + rc = ops->ndo_fcoe_ddp_target(real_dev, xid, sgl, sgc); 638 + 639 + return rc; 640 + } 628 641 #endif 629 642 630 643 static void vlan_dev_change_rx_flags(struct net_device *dev, int change) ··· 871 858 .ndo_fcoe_enable = vlan_dev_fcoe_enable, 872 859 .ndo_fcoe_disable = vlan_dev_fcoe_disable, 873 860 .ndo_fcoe_get_wwn = vlan_dev_fcoe_get_wwn, 861 + .ndo_fcoe_ddp_target = vlan_dev_fcoe_ddp_target, 874 862 #endif 875 863 }; 876 864