be2net: fix accesses to unicast list
authorIvan Vecera <cera@cera.cz>
Fri, 6 Jan 2017 19:30:02 +0000 (20:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jan 2017 03:22:08 +0000 (22:22 -0500)
commit1d0f110a2c6c4bca3dbcc4b0e27f1e3dc2d44a2c
treedf29493c336b047e7da28574570d9f81e52fdedb
parentbcd5e1a49f0d54afd3c5411bed2f59996e1c53e4
be2net: fix accesses to unicast list

Commit 988d44b "be2net: Avoid redundant addition of mac address in HW"
introduced be_dev_mac_add & be_uc_mac_add helpers that incorrectly
access adapter->uc_list as an array of bytes instead of an array of
be_eth_addr. Consequently NIC is not filled with valid data so unicast
filtering is broken.

Cc: Sathya Perla <sathya.perla@broadcom.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>
Fixes: 988d44b be2net: Avoid redundant addition of mac address in HW
Signed-off-by: Ivan Vecera <cera@cera.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c