ixgbevf: avoid adding twice the permanent mac address
authorIvan Boule <ivan.boule@6wind.com>
Mon, 12 May 2014 14:11:06 +0000 (16:11 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 May 2014 14:50:19 +0000 (16:50 +0200)
commit7bfd68a27422913c4126d042d72fc8a5f18db105
tree27b5046413f612c76a90bb3e3e28f6ddd92f26a0
parent17d32e45d5258d1ed0aab0ded4b764958c17cbc7
ixgbevf: avoid adding twice the permanent mac address

During the initialization of a VF device, the rte_eth_dev_start() function
indirectly invokes the PMD "mac_addr_add" function with the permanent MAC
address assigned to the device.
In the case of 82599 VFs, this operation leads to exhausting the very
limited set of PF resources used to store VF MAC addresses.

To address this issue, do nothing in the function ixgbevf_add_mac_addr()
if the added MAC address is equal to the permanent MAC address of the VF.

Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_ixgbe/ixgbe_ethdev.c