From: Michael Brown Date: Wed, 15 Jun 2016 19:29:38 +0000 (+0100) Subject: [thunderx] Fix channel configuration for VNICs 1-7 X-Git-Tag: v1.20.1~422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf52436c71a96af241ae329eea7e06a3d4b73fc2;p=thirdparty%2Fipxe.git [thunderx] Fix channel configuration for VNICs 1-7 Signed-off-by: Michael Brown --- diff --git a/src/drivers/net/thunderx.c b/src/drivers/net/thunderx.c index fce153e5f..63aa23ef0 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;