net/enic: fix MAC address add and remove
authorJohn Daley <johndale@cisco.com>
Thu, 26 Jan 2017 20:12:12 +0000 (12:12 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commitbbab3d97c37e55f05064efd7cefd965f6ff0661b
tree2d2f81f8af158d46d679a9e81bbe6f5fa7344cf3
parent28a1fd4fd011f1a30f53bde5a91708eb628eacfa
net/enic: fix MAC address add and remove

The mac_addr_add callback function was simply replacing the primary MAC
address instead of adding new ones and the mac_addr_remove callback would
only remove the primary MAC form the adapter. Fix the functions to add or
remove new address. Allow up to 64 MAC addresses per port.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
drivers/net/enic/enic.h
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_main.c