600-net-enable-fraglist-GRO-by-default.patch 968 B

123456789101112131415161718192021222324
  1. From: Felix Fietkau <[email protected]>
  2. Date: Tue, 23 Apr 2024 12:35:21 +0200
  3. Subject: [PATCH] net: enable fraglist GRO by default
  4. This can significantly improve performance for packet forwarding/bridging
  5. Signed-off-by: Felix Fietkau <[email protected]>
  6. ---
  7. --- a/include/linux/netdev_features.h
  8. +++ b/include/linux/netdev_features.h
  9. @@ -235,10 +235,10 @@ static inline int find_next_netdev_featu
  10. #define NETIF_F_UPPER_DISABLES NETIF_F_LRO
  11. /* changeable features with no special hardware requirements */
  12. -#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)
  13. +#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO | NETIF_F_GRO_FRAGLIST)
  14. /* Changeable features with no special hardware requirements that defaults to off. */
  15. -#define NETIF_F_SOFT_FEATURES_OFF (NETIF_F_GRO_FRAGLIST | NETIF_F_GRO_UDP_FWD)
  16. +#define NETIF_F_SOFT_FEATURES_OFF (NETIF_F_GRO_UDP_FWD)
  17. #define NETIF_F_VLAN_FEATURES (NETIF_F_HW_VLAN_CTAG_FILTER | \
  18. NETIF_F_HW_VLAN_CTAG_RX | \