summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/thunderx.c
diff options
context:
space:
mode:
authorMichael Brown2016-06-15 21:29:38 +0200
committerMichael Brown2016-06-15 21:32:06 +0200
commitcf52436c71a96af241ae329eea7e06a3d4b73fc2 (patch)
tree08a6c895cc877139d4c2579e05a1ad02e78a9cfc /src/drivers/net/thunderx.c
parent[thunderx] Add driver for Cavium ThunderX SoC NICs (diff)
downloadipxe-cf52436c71a96af241ae329eea7e06a3d4b73fc2.tar.gz
ipxe-cf52436c71a96af241ae329eea7e06a3d4b73fc2.tar.xz
ipxe-cf52436c71a96af241ae329eea7e06a3d4b73fc2.zip
[thunderx] Fix channel configuration for VNICs 1-7
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/thunderx.c')
-rw-r--r--src/drivers/net/thunderx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/thunderx.c b/src/drivers/net/thunderx.c
index fce153e5..63aa23ef 100644
--- a/src/drivers/net/thunderx.c
+++ b/src/drivers/net/thunderx.c
@@ -939,7 +939,7 @@ static int txnic_lmac_open ( struct net_device *netdev ) {
unsigned int tl3_idx = TXNIC_TL3_IDX ( vnic_idx );
unsigned int tl2_idx = TXNIC_TL2_IDX ( vnic_idx );
void *lmregs = ( pf->regs + TXNIC_PF_LMAC ( vnic_idx ) );
- void *chregs = ( pf->regs + TXNIC_PF_CHAN ( vnic_idx ) );
+ void *chregs = ( pf->regs + TXNIC_PF_CHAN ( chan_idx ) );
void *qsregs = ( pf->regs + TXNIC_PF_QS ( vnic_idx ) );
size_t max_pkt_size;
int rc;