• Jacob Keller's avatar
    i40e: factor out addition/deletion of VLAN per each MAC address · 490a4ad3
    Jacob Keller authored
    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: default avatarJacob Keller <jacob.e.keller@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    490a4ad3
i40e_main.c 325 KB