Skip to content

Commit

Permalink
net/bnxt: set padding flags in Rx descriptor
Browse files Browse the repository at this point in the history
Set the RX_PROD_PKT_BD_FLAGS_EOP_PAD in Rx buffer descriptors.

Fixes: 2eb53b1 ("net/bnxt: add initial Rx code")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
ajitkhaparde authored and Ferruh Yigit committed Apr 27, 2018
1 parent 96931f3 commit f4253e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnxt/bnxt_rxr.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ int bnxt_init_one_rx_ring(struct bnxt_rx_queue *rxq)
if (rxq->rx_buf_use_size <= size)
size = rxq->rx_buf_use_size;

type = RX_PROD_PKT_BD_TYPE_RX_PROD_PKT;
type = RX_PROD_PKT_BD_TYPE_RX_PROD_PKT | RX_PROD_PKT_BD_FLAGS_EOP_PAD;

rxr = rxq->rx_ring;
ring = rxr->rx_ring_struct;
Expand Down

0 comments on commit f4253e9

Please sign in to comment.