]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: Fix configuration for macvlan offload
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 24 Jan 2018 21:39:44 +0000 (13:39 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 24 Jan 2018 21:39:44 +0000 (13:39 -0800)
commitd91347f51e2bd158d687d67a3db513906415af32
tree47ee4cc9f66a103c00a972f643437c5157c2f22f
parentfe45a8404237a9edc9cf490c44e4037acdae9f62
fm10k: Fix configuration for macvlan offload

The fm10k driver didn't work correctly when macvlan offload was enabled.
Specifically what would occur is that we would see no unicast packets being
received. This was traced down to us not correctly configuring the default
VLAN ID for the port and defaulting to 0.

To correct this we either use the default ID provided by the switch or
simply use 1. With that we are able to pass and receive traffic without any
issues.

In addition we were not repopulating the filter table following a reset. To
correct that I have added a bit of code to fm10k_restore_rx_state that will
repopulate the Rx filter configuration for the macvlan interfaces.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c