diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2025-03-04 16:46:40 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-06 16:44:58 -0800 |
commit | a202dfe31cae2f2120297a7142385d80a5577d42 (patch) | |
tree | b82a46acc0d2ddd02d93aff8df4e9e0a05bbbd9c | |
parent | 35ea4f06fd33fc32f556a0c26d1d8340497fa7f8 (diff) |
net: airoha: Enable TSO/Scatter Gather for LAN port
Set net_device vlan_features in order to enable TSO and Scatter Gather
for DSA user ports.
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250304-lan-enable-tso-v1-1-b398eb9976ba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/airoha/airoha_eth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/airoha/airoha_eth.c b/drivers/net/ethernet/airoha/airoha_eth.c index 347c11b1fff5..e4130576ad10 100644 --- a/drivers/net/ethernet/airoha/airoha_eth.c +++ b/drivers/net/ethernet/airoha/airoha_eth.c @@ -2505,6 +2505,7 @@ static int airoha_alloc_gdm_port(struct airoha_eth *eth, NETIF_F_SG | NETIF_F_TSO | NETIF_F_HW_TC; dev->features |= dev->hw_features; + dev->vlan_features = dev->hw_features; dev->dev.of_node = np; dev->irq = qdma->irq; SET_NETDEV_DEV(dev, eth->dev); |