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>
Showing
- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 2 additions, 1 deletiondrivers/net/ethernet/chelsio/cxgb4/cxgb4.h
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 59 additions, 12 deletionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
- drivers/net/ethernet/chelsio/cxgb4vf/adapter.h 2 additions, 1 deletiondrivers/net/ethernet/chelsio/cxgb4vf/adapter.h
- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 73 additions, 26 deletionsdrivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
Loading
Please register or sign in to comment