2024-04-23 10:37:05 +00:00
|
|
|
From: Felix Fietkau <nbd@nbd.name>
|
|
|
|
Date: Tue, 23 Apr 2024 12:35:21 +0200
|
|
|
|
Subject: [PATCH] net: enable fraglist GRO by default
|
|
|
|
|
|
|
|
This can significantly improve performance for packet forwarding/bridging
|
|
|
|
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
|
|
---
|
|
|
|
|
|
|
|
--- a/include/linux/netdev_features.h
|
|
|
|
+++ b/include/linux/netdev_features.h
|
2024-08-15 19:25:33 +00:00
|
|
|
@@ -243,10 +243,10 @@ static inline int find_next_netdev_featu
|
2024-04-23 10:37:05 +00:00
|
|
|
#define NETIF_F_UPPER_DISABLES NETIF_F_LRO
|
|
|
|
|
|
|
|
/* changeable features with no special hardware requirements */
|
|
|
|
-#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)
|
|
|
|
+#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO | NETIF_F_GRO_FRAGLIST)
|
|
|
|
|
|
|
|
/* Changeable features with no special hardware requirements that defaults to off. */
|
|
|
|
-#define NETIF_F_SOFT_FEATURES_OFF (NETIF_F_GRO_FRAGLIST | NETIF_F_GRO_UDP_FWD)
|
|
|
|
+#define NETIF_F_SOFT_FEATURES_OFF (NETIF_F_GRO_UDP_FWD)
|
|
|
|
|
|
|
|
#define NETIF_F_VLAN_FEATURES (NETIF_F_HW_VLAN_CTAG_FILTER | \
|
|
|
|
NETIF_F_HW_VLAN_CTAG_RX | \
|