]> 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)
commite45dd7f9bbe2e339dc497a86293b4e3b99dfd5eb
tree47ee4cc9f66a103c00a972f643437c5157c2f22f
parent6c0fb6b6f25da76780c70b4b23f5156079fcc085
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