mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
netdev_features: convert NETIF_F_FCOE_MTU to dev->fcoe_mtu
Ability to handle maximum FCoE frames of 2158 bytes can never be changed and thus more of an attribute, not a toggleable feature. Move it from netdev_features_t to "cold" priv flags (bitfield bool) and free yet another feature bit. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
05c1280a2b
commit
782dbbf589
@@ -58,7 +58,7 @@ enum {
|
||||
|
||||
NETIF_F_FCOE_CRC_BIT, /* FCoE CRC32 */
|
||||
NETIF_F_SCTP_CRC_BIT, /* SCTP checksum offload */
|
||||
NETIF_F_FCOE_MTU_BIT, /* Supports max FCoE MTU, 2158 bytes*/
|
||||
__UNUSED_NETIF_F_37,
|
||||
NETIF_F_NTUPLE_BIT, /* N-tuple filters supported */
|
||||
NETIF_F_RXHASH_BIT, /* Receive hashing offload */
|
||||
NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */
|
||||
@@ -105,7 +105,6 @@ enum {
|
||||
#define __NETIF_F(name) __NETIF_F_BIT(NETIF_F_##name##_BIT)
|
||||
|
||||
#define NETIF_F_FCOE_CRC __NETIF_F(FCOE_CRC)
|
||||
#define NETIF_F_FCOE_MTU __NETIF_F(FCOE_MTU)
|
||||
#define NETIF_F_FRAGLIST __NETIF_F(FRAGLIST)
|
||||
#define NETIF_F_FSO __NETIF_F(FSO)
|
||||
#define NETIF_F_GRO __NETIF_F(GRO)
|
||||
@@ -210,8 +209,7 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
|
||||
#define NETIF_F_ALL_TSO (NETIF_F_TSO | NETIF_F_TSO6 | \
|
||||
NETIF_F_TSO_ECN | NETIF_F_TSO_MANGLEID)
|
||||
|
||||
#define NETIF_F_ALL_FCOE (NETIF_F_FCOE_CRC | NETIF_F_FCOE_MTU | \
|
||||
NETIF_F_FSO)
|
||||
#define NETIF_F_ALL_FCOE (NETIF_F_FCOE_CRC | NETIF_F_FSO)
|
||||
|
||||
/* List of features with software fallbacks. */
|
||||
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | NETIF_F_GSO_SCTP | \
|
||||
|
||||
Reference in New Issue
Block a user