Re: [PATCH v1 net-next 3/4] vmxnet3: add command to allow disabling of offloads

From: Jakub Kicinski
Date: Thu May 30 2024 - 21:06:04 EST


On Tue, 28 May 2024 16:39:05 -0700 Ronak Doshi wrote:
> @@ -270,6 +270,14 @@ netdev_features_t vmxnet3_fix_features(struct net_device *netdev,
> if (!(features & NETIF_F_RXCSUM))
> features &= ~NETIF_F_LRO;
>
> + if ((features & NETIF_F_LRO) &&
> + (adapter->disabledOffloads & VMXNET3_OFFLOAD_LRO))
> + features &= ~NETIF_F_LRO;
> +
> + if ((features & (NETIF_F_TSO | NETIF_F_TSO6)) &&
> + (adapter->disabledOffloads & VMXNET3_OFFLOAD_TSO))
> + features &= ~(NETIF_F_TSO | NETIF_F_TSO6);

Why do you clear them in fix_features?
They are not declared as supported how can they get enabled?
--
pw-bot: cr