cxgb4/cxgb4vf: Program hash region for {t4/t4vf}_change_mac()
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 1 Feb 2019 11:37:04 +0000 (17:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2019 19:08:36 +0000 (11:08 -0800)
commit3f8cfd0d95e65ddc6aef70ef28b80cdc3d8ad7e4
treecc1780dc4e172c50a604d374694bceb6629fba05
parent1d2f4ebbbeb1ec055dcd3cf3dba833cfd0a84f3a
cxgb4/cxgb4vf: Program hash region for {t4/t4vf}_change_mac()

{t4/t4_vf}_change_mac() API's were only doing additions to MPS_TCAM.
This will fail, when the number of tcam entries is limited particularly
in vf's.
This fix programs hash region with the mac address, when TCAM
addtion fails for {t4/t4vf}_change_mac(). Since the locally maintained
driver list for hash entries is shared across mac_{sync/unsync}(),
added an extra parameter if_mac to track the address added thorugh
{t4/t4vf}_change_mac()

Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4vf/adapter.h
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c