summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/t3_hw.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-07-07 21:49:04 +0200
committerDavid S. Miller <davem@davemloft.net>2009-07-08 19:54:26 +0200
commit88045b3cf0f8981129cb489c7b6bc36c21dd33a7 (patch)
treea63f3be7359a349bf99079ee6e293248b5db350a /drivers/net/cxgb3/t3_hw.c
parentcxgb3: Fix mss table initialization (diff)
downloadlinux-88045b3cf0f8981129cb489c7b6bc36c21dd33a7.tar.xz
linux-88045b3cf0f8981129cb489c7b6bc36c21dd33a7.zip
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: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/t3_hw.c')
-rw-r--r--drivers/net/cxgb3/t3_hw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index 870d44992c70..e78d341cbd60 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -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;