]> asedeno.scripts.mit.edu Git - linux.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)
commit85062f856e40c06c8a9c16a70895cec71b967cc4
tree47ee4cc9f66a103c00a972f643437c5157c2f22f
parent46410c2efa9cb5b2f40c9ce24a75d147f44aedeb
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