• Greg Rose's avatar
    ixgbe: Fix a bug in setting VF VLAN via PF · 026ac677
    Greg Rose authored
    The PF driver does not check if the administrator has already set a VF
    VLAN via the PF driver before setting the new VLAN.  This results in
    the following scenario:
    
    A) Administrator sets VF <n> to VLAN 100
    B) Administrator sets VF <x> to VLAN 100
    C) Administrator sets VF <n> to VLAN 200
    D) The VF <n> driver continues to be able to receive traffic on VLAN
       100 because the VLVFB pool enable bit for that VF was left set
       instead of being cleared as it should be.
    
    This fix ensures that the old VLAN filter for VF <n> is first removed
    and the pool bit enable for VF <n> is cleared so that it no longer
    receives traffic on VLAN 100.
    Signed-off-by: default avatarGreg Rose <gregory.v.rose@intel.com>
    Tested-by: default avatarSibai Li <sibai.li@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    026ac677
ixgbe_sriov.c 33.7 KB