[PATCH net-next 2/2] net: airoha: Enable TSO/Scatter Gather for LAN port
Mateusz Polchlopek
mateusz.polchlopek at intel.com
Wed Feb 12 00:23:46 PST 2025
On 2/12/2025 7:51 AM, Lorenzo Bianconi wrote:
> Set net_device vlan_features in order to enable TSO and Scatter Gather
> for DSA user ports.
>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
> drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
> index aa5f220ddbcf9ca5bee1173114294cb3aec701c9..321e5d15198c5ec6a0764be418aa447e8d9e4512 100644
> --- a/drivers/net/ethernet/mediatek/airoha_eth.c
> +++ b/drivers/net/ethernet/mediatek/airoha_eth.c
> @@ -3188,6 +3188,7 @@ static int airoha_alloc_gdm_port(struct airoha_eth *eth, struct device_node *np)
> 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);
>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek at intel.com>
More information about the linux-arm-kernel
mailing list