[Intel-wired-lan] [net 2/2] i40e: enable NETIF_F_NTUPLE and NETIF_F_HW_TC at driver load
Bowers, AndrewX
andrewx.bowers at intel.com
Wed Oct 31 21:37:17 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Jacob Keller
> Sent: Monday, October 29, 2018 10:53 AM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [net 2/2] i40e: enable NETIF_F_NTUPLE and
> NETIF_F_HW_TC at driver load
>
> The assignment of the feature flag NETIF_F_NTUPLE and NETIF_F_HW_TC
> occurs prior to the initial setup of the local hw_features variable.
>
> This means the features are set as user-changeable, but are not set in the
> currently active feature list. This results in the features being disabled at the
> driver's initial load.
>
> Move the assignment after the initial assignment of hw_features, and assign
> to the local variable. This ensures that NETIF_F_NTUPLE and NETIF_F_HW_TC
> are marked as user-changeable, and also enables them by default when the
> driver loads.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list