History

net: Add a netdev software feature set that defaults to off.

The previous patch added the NETIF_F_GRO_FRAGLIST feature. This is a software feature that should default to off. Current software features default to on, so add a new feature set that defaults to off.

Steffen Klassert committed 6 years ago

Commit 1a3c9981 parent 3b335832 files · +4 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/netdev_features.h+3−0
@@ -230,6 +230,9 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start) · 229 unmodified lines
230/* changeable features with no special hardware requirements */230/* changeable features with no special hardware requirements */
231#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)231#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)
232 232
233/* Changeable features with no special hardware requirements that defaults to off. */
234#define NETIF_F_SOFT_FEATURES_OFF NETIF_F_GRO_FRAGLIST
235
233#define NETIF_F_VLAN_FEATURES (NETIF_F_HW_VLAN_CTAG_FILTER | \236#define NETIF_F_VLAN_FEATURES (NETIF_F_HW_VLAN_CTAG_FILTER | \
234 NETIF_F_HW_VLAN_CTAG_RX | \237 NETIF_F_HW_VLAN_CTAG_RX | \
235 NETIF_F_HW_VLAN_CTAG_TX | \238 NETIF_F_HW_VLAN_CTAG_TX | \