]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: factor out addition/deletion of VLAN per each MAC address
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 11 Nov 2016 20:39:29 +0000 (12:39 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:51 +0000 (19:41 -0500)
commitcab2f721fc29f392d1b0c9311da04b89780dbb40
tree4a0ad7d10a436e4f2dfb76357616d82bceba3c4f
parent1a7e9735f423c45c22e54b08a38b1ff3b96a6342
i40e: factor out addition/deletion of VLAN per each MAC address

Orabug: 24568124

A future refactor of how the PF assigns a PVID to a VF will want to be
able to add and remove a block of filters by VLAN without worrying about
accidentally triggering the accounting for I40E_VLAN_ANY. Additionally
the PVID assignment would like to be able to batch several changes under
one use of the mac_filter_hash_lock.

Factor out the addition and deletion of a VLAN on all MACs into their
own function which i40e_vsi_(add|kill)_vlan can use. These new functions
expect the caller to take the hash lock, as well as perform any
necessary accounting for updating I40E_VLAN_ANY filters if we are now
operating under VLAN mode.

Change-ID: If79e5b60b770433275350a74b3f1880333a185d5
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>
(cherry picked from commit 490a4ad3a7c5d0943e648f97815e6cb677f1f8eb)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c