Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88045b3c authored by Divy Le Ray's avatar Divy Le Ray Committed by David S. Miller
Browse files

cxgb3: fix mac index mapping



Override the mac index computation for the gen2 adapter,
as each port is expected to use index 0.

Signed-off-by: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dce7d1d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3682,6 +3682,8 @@ static void mc7_prep(struct adapter *adapter, struct mc7 *mc7,
void mac_prep(struct cmac *mac, struct adapter *adapter, int index)
{
	mac->adapter = adapter;
	if (!adapter->params.vpd.xauicfg[1])
		index = 0;
	mac->offset = (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR) * index;
	mac->nucast = 1;