[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240625082924.775877-1-chengcheng.luo@smartx.com>
Date: Tue, 25 Jun 2024 08:29:24 +0000
From: echken <chengcheng.luo@...rtx.com>
To: pshelar@....org,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org,
dev@...nvswitch.org,
linux-kernel@...r.kernel.org,
echken <chengcheng.luo@...rtx.com>
Subject: [PATCH 1/2] Add GSO UDP Offloading feature to OVS Internal Port
The OVS internal port does not support UDP fragmentation offloading,
resulting in large packets sent through the OVS internal port to OVS
being prematurely fragmented. This increases the total number of packets
processed in the path from the vport to the OVS bridge output port,
affecting transmission efficiency.
Signed-off-by: echken <chengcheng.luo@...rtx.com>
---
net/openvswitch/vport-internal_dev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
index 74c88a6baa43..c5a72c4dc6fd 100644
--- a/net/openvswitch/vport-internal_dev.c
+++ b/net/openvswitch/vport-internal_dev.c
@@ -110,7 +110,8 @@ static void do_setup(struct net_device *netdev)
netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST |
NETIF_F_HIGHDMA | NETIF_F_HW_CSUM |
- NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ENCAP_ALL;
+ NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ENCAP_ALL |
+ NETIF_F_GSO_UDP | NETIF_F_GSO_UDP_L4;
netdev->vlan_features = netdev->features;
netdev->hw_enc_features = netdev->features;
--
2.34.1
Powered by blists - more mailing lists