cxgb3: fix 2 ports 1G regression
commit9073e3a32bb249293edc01ecff575bb87380c068
authorDivy Le Ray <divy@chelsio.com>
Thu, 6 Aug 2009 03:28:27 +0000 (5 20:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Aug 2009 03:28:27 +0000 (5 20:28 -0700)
tree56ccb72087bcec9190e3eff39ac56d9de7106022
parentcc104e52b4f61dbfe1a815f775ffb2fbbb4b785d
cxgb3: fix 2 ports 1G regression

commit 88045b3cf0f8981129cb489c7b6bc36c21dd33a7
cxgb3: fix mac index mapping

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

introduces a regression on 2 port 1G adapter
as its xauicfg vpd value is null.
Add a check on the device id.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/t3_hw.c