From: Lorenzo Bianconi Date: Tue, 4 Mar 2025 15:46:40 +0000 (+0100) Subject: net: airoha: Enable TSO/Scatter Gather for LAN port X-Git-Tag: v6.15-rc1~160^2~152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a202dfe31cae2f2120297a7142385d80a5577d42;p=thirdparty%2Flinux.git 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 Signed-off-by: Lorenzo Bianconi Reviewed-by: Simon Horman Link: https://patch.msgid.link/20250304-lan-enable-tso-v1-1-b398eb9976ba@kernel.org Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/airoha/airoha_eth.c b/drivers/net/ethernet/airoha/airoha_eth.c index 347c11b1fff5b..e4130576ad10b 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);