diff options
-rw-r--r-- | src/drivers/net/thunderx.c | 2 |
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; |