]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: correctly program filters for VFs
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 27 Apr 2015 18:57:13 +0000 (14:57 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Jul 2015 01:26:42 +0000 (18:26 -0700)
commit6f52ac0e7183f2100c9aaec78f24b7e6f1033d34
treededf61d8af67dac9567cb37e22c343cb87976a72
parentbace6fa7e411a210cec8b266bb7f3f44826b8b68
i40e: correctly program filters for VFs

MAC filters for VFs were being programmed with 0 for the VLAN value when
there was no VLAN assigned. This is incorrect and actually assigns the
VF to VLAN 0. Instead, we must use -1 to indicate that no VLAN is in
use. This change programs the filters correctly and gets rid of a bogus
error message when setting a port VLAN on an active VF.

Change-ID: Ica9a9906d768405377ff3308e27f7d0b5b2ea96e
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c