28a85e67ad06f4779da11490c35521c19b82fb86
[openwrt/staging/stintel.git] /
1 From a202dfe31cae2f2120297a7142385d80a5577d42 Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Tue, 4 Mar 2025 16:46:40 +0100
4 Subject: [PATCH 6/6] net: airoha: Enable TSO/Scatter Gather for LAN port
5
6 Set net_device vlan_features in order to enable TSO and Scatter Gather
7 for DSA user ports.
8
9 Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
10 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
11 Reviewed-by: Simon Horman <horms@kernel.org>
12 Link: https://patch.msgid.link/20250304-lan-enable-tso-v1-1-b398eb9976ba@kernel.org
13 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 ---
15 drivers/net/ethernet/airoha/airoha_eth.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/drivers/net/ethernet/airoha/airoha_eth.c
19 +++ b/drivers/net/ethernet/airoha/airoha_eth.c
20 @@ -2503,6 +2503,7 @@ static int airoha_alloc_gdm_port(struct
21 NETIF_F_SG | NETIF_F_TSO |
22 NETIF_F_HW_TC;
23 dev->features |= dev->hw_features;
24 + dev->vlan_features = dev->hw_features;
25 dev->dev.of_node = np;
26 dev->irq = qdma->irq;
27 SET_NETDEV_DEV(dev, eth->dev);