net: group FCoE related feature flags
Subsystems (2)
PATCH v2 1/1 net: group FCoE related feature flags
Michał Mirosław's patch (http://patchwork.ozlabs.org/patch/94421/) fixes the issue (http://patchwork.ozlabs.org/patch/94188/) about not populating FCoE related flags correctly on vlan devices. However, only NETIF_F_FCOE_CRC is part of the NETIF_F_ALL_TX_OFFLOADS right now, where weed NETIF_F_FCOE_MTU and NETIF_F_FSO as well.
Therefore, add NETIF_F_ALL_FCOE to indicate feature flags used by FCoE TX offloads. These include NETIF_F_FCOE_CRC, NETIF_F_FCOE_MTU, and NETIF_F_FSO and add them to be part of NETIF_F_ALL_TX_OFFLOADS. This would eventually make sure all FCoE needed flags are populated properly to vlan devices.
---
include/linux/netdevice.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
include/linux/netdevice.h +5 -1
@@ -1097,10 +1097,14 @@ struct net_device {#define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) +#define NETIF_F_ALL_FCOE (NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \ + NETIF_F_FSO) +#define NETIF_F_ALL_TX_OFFLOADS (NETIF_F_ALL_CSUM | NETIF_F_SG | \ NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \ NETIF_F_HIGHDMA | \ - NETIF_F_SCTP_CSUM | NETIF_F_FCOE_CRC) + NETIF_F_SCTP_CSUM | \ + NETIF_F_ALL_FCOE)/* * If one device supports one of these features, then enable them
From: Yi Zou <[email protected]>
Date: Mon, 09 May 2011 14:53:27 -0700
Quoted 6 lines
Michał Mirosław's patch (http://patchwork.ozlabs.org/patch/94421/) fixes the issue (http://patchwork.ozlabs.org/patch/94188/) about not populating FCoE related flags correctly on vlan devices. However, only
NETIF_F_FCOE_CRCis part of theNETIF_F_ALL_TX_OFFLOADSright now, where weedNETIF_F_FCOE_MTUandNETIF_F_FSOas well.
Quoted 6 lines
Therefore, add
NETIF_F_ALL_FCOEto indicate feature flags used by FCoE TX offloads. These includeNETIF_F_FCOE_CRC,NETIF_F_FCOE_MTU, andNETIF_F_FSOand add them to be part ofNETIF_F_ALL_TX_OFFLOADS. This would eventually make sure all FCoE needed flags are populated properly to vlan devices.Signed-off-by Yi Zou <[email protected]>
Applied.