net/qede: fix maximum Rx packet length
Size of CRC is not added to max_rx_pktlen, due to this bigger sized
packets(size 1480, 1490 1500) are being dropped.
This fix adds RTE_ETHER_CRC_LEN to max_rx_pktlen.
Fixes: 1bb4a528c4
("ethdev: fix max Rx packet length")
Cc: stable@dpdk.org
Signed-off-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
Signed-off-by: Rasesh Mody <rmody@marvell.com>
This commit is contained in:
parent
f65c7fbcec
commit
d8ded501e0
@ -235,7 +235,7 @@ qede_rx_queue_setup(struct rte_eth_dev *dev, uint16_t qid,
|
||||
dev->data->rx_queues[qid] = NULL;
|
||||
}
|
||||
|
||||
max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN;
|
||||
max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN;
|
||||
|
||||
/* Fix up RX buffer size */
|
||||
bufsz = (uint16_t)rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM;
|
||||
|
Loading…
Reference in New Issue
Block a user