diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-11-11 23:39:29 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-12-07 08:28:22 +0300 |
commit | 490a4ad3a7c5d0943e648f97815e6cb677f1f8eb (patch) | |
tree | bb0e1b0b00b7a6153ef7f64956959d3433c42a2c /tools/perf/scripts/python/stackcollapse.py | |
parent | 756970255a58c0f5ff9f9c5bba6fb47c70804077 (diff) | |
download | linux-490a4ad3a7c5d0943e648f97815e6cb677f1f8eb.tar.xz |
i40e: factor out addition/deletion of VLAN per each MAC address
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions