]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
i40e: fix the calculation of VFs mac addresses
authorZijie Pan <zijie.pan@6wind.com>
Tue, 7 Nov 2017 20:06:07 +0000 (12:06 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 22 Nov 2017 07:32:21 +0000 (23:32 -0800)
commit34c164de5867659f9162ae4fc9030b940bd40aaa
tree047c5491fd77ab015b69039b48d2f1be1cfb3f58
parent3d72aebfc61b025a2478c9d2bbc3c8c4036a1c05
i40e: fix the calculation of VFs mac addresses

num_mac should be increased only after the call to i40e_add_mac_filter().

Fixes: 5f527ba962e2 ("i40e: Limit the number of MAC and VLAN addresses that can be added for VFs")
Signed-off-by: Zijie Pan <zijie.pan@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Tushar Dave <tushar.n.dave@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c