]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: enable NETIF_F_NTUPLE and NETIF_F_HW_TC at driver load
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 29 Oct 2018 17:52:43 +0000 (10:52 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Nov 2018 18:32:15 +0000 (10:32 -0800)
commit58a6dc176aca8628fbbce0532a6384c4917827c5
treeabefc565502a3756133abf625cae5de017ad163c
parentfef0c19015d10eb8c24359acb75f225f58540fd8
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@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c