mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
ixgbe: Add support for NETIF_F_FCOE_MTU to 82599 devices
Enable netdev feature flag bit NETIF_F_FCOE_MTU for 82599 devices and enable jumbo frame correspondingly when NETIF_F_FCOE_MTU is set. 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>
This commit is contained in:
@@ -148,8 +148,10 @@ static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state)
|
||||
IXGBE_FCRETA_SIZE;
|
||||
netdev->features |= NETIF_F_FCOE_CRC;
|
||||
netdev->features |= NETIF_F_FSO;
|
||||
netdev->features |= NETIF_F_FCOE_MTU;
|
||||
netdev->vlan_features |= NETIF_F_FCOE_CRC;
|
||||
netdev->vlan_features |= NETIF_F_FSO;
|
||||
netdev->vlan_features |= NETIF_F_FCOE_MTU;
|
||||
netdev->fcoe_ddp_xid = IXGBE_FCOE_DDP_MAX - 1;
|
||||
netdev_features_change(netdev);
|
||||
}
|
||||
@@ -180,8 +182,10 @@ static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state)
|
||||
adapter->ring_feature[RING_F_FCOE].indices = 0;
|
||||
netdev->features &= ~NETIF_F_FCOE_CRC;
|
||||
netdev->features &= ~NETIF_F_FSO;
|
||||
netdev->features &= ~NETIF_F_FCOE_MTU;
|
||||
netdev->vlan_features &= ~NETIF_F_FCOE_CRC;
|
||||
netdev->vlan_features &= ~NETIF_F_FSO;
|
||||
netdev->vlan_features &= ~NETIF_F_FCOE_MTU;
|
||||
netdev->fcoe_ddp_xid = 0;
|
||||
netdev_features_change(netdev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user