Browse Source

[thunderx] Fix channel configuration for VNICs 1-7

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
cf52436c71
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/thunderx.c

+ 1
- 1
src/drivers/net/thunderx.c View File

939
 	unsigned int tl3_idx = TXNIC_TL3_IDX ( vnic_idx );
939
 	unsigned int tl3_idx = TXNIC_TL3_IDX ( vnic_idx );
940
 	unsigned int tl2_idx = TXNIC_TL2_IDX ( vnic_idx );
940
 	unsigned int tl2_idx = TXNIC_TL2_IDX ( vnic_idx );
941
 	void *lmregs = ( pf->regs + TXNIC_PF_LMAC ( vnic_idx ) );
941
 	void *lmregs = ( pf->regs + TXNIC_PF_LMAC ( vnic_idx ) );
942
-	void *chregs = ( pf->regs + TXNIC_PF_CHAN ( vnic_idx ) );
942
+	void *chregs = ( pf->regs + TXNIC_PF_CHAN ( chan_idx ) );
943
 	void *qsregs = ( pf->regs + TXNIC_PF_QS ( vnic_idx ) );
943
 	void *qsregs = ( pf->regs + TXNIC_PF_QS ( vnic_idx ) );
944
 	size_t max_pkt_size;
944
 	size_t max_pkt_size;
945
 	int rc;
945
 	int rc;

Loading…
Cancel
Save