File tree 2 files changed +1
-2
lines changed
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1840,7 +1840,7 @@ static int bnxt_hwrm_ring_alloc ( struct bnxt *bp, u8 type )
1840
1840
req -> page_size = LM_PAGE_BITS ( 8 );
1841
1841
req -> int_mode = RING_ALLOC_REQ_INT_MODE_POLL ;
1842
1842
req -> length = ( u32 )bp -> tx .ring_cnt ;
1843
- req -> queue_id = TX_RING_QID ;
1843
+ req -> queue_id = ( u16 ) bp -> queue_id ;
1844
1844
req -> stat_ctx_id = ( u32 )bp -> stat_ctx_id ;
1845
1845
req -> cmpl_ring_id = bp -> cq_ring_id ;
1846
1846
req -> page_tbl_addr = virt_to_bus ( bp -> tx .bd_virt );
Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ union dma_addr64_t {
178
178
RX_MASK_ACCEPT_MULTICAST)
179
179
#define MAX_NQ_DESC_CNT 64
180
180
#define NQ_RING_BUFFER_SIZE (MAX_NQ_DESC_CNT * sizeof(struct cmpl_base))
181
- #define TX_RING_QID (FLAG_TEST(bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS) ? (u16)bp->queue_id : ((u16)bp->port_idx * 10))
182
181
#define RX_RING_QID (FLAG_TEST(bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS) ? bp->queue_id : 0)
183
182
#define STAT_CTX_ID ((bp->vf || FLAG_TEST(bp->flags, BNXT_FLAG_IS_CHIP_P5_PLUS)) ? bp->stat_ctx_id : 0)
184
183
#define TX_AVAIL (r ) (r - 1)
You can’t perform that action at this time.
0 commit comments