numam-dpdk/drivers/net/qede
Shahed Shaikh 318d7da312 net/qede: fix Rx buffer size calculation
- HW does not include CRC in received frame when passed to host,
   so no need to consider CRC length while calculating Rx buffer size.
 - In scattered Rx mode, driver may allocate Rx buffer larger than
   the size of mbuf because it tries to adjust the buffer size to cache
   line size by ceiling it. Fix this by flooring the size instead of
   ceiling.
 - Consider the rule imposed by HW regarding the minimum size of Rx buffer
   in scattered Rx mode -
   (MTU + Maximum L2 Header Size + 2) / ETH_RX_MAX_BUFF_PER_PKT

Fixes: f6033f2497 ("net/qede: fix minimum buffer size and scatter Rx check")
CC: stable@dpdk.org

Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
2018-09-28 01:41:01 +02:00
..
base net/qede: refactor flow director into generic aRFS 2018-09-28 01:41:01 +02:00
Makefile net/qede: reorganize filter code 2018-09-28 01:41:01 +02:00
meson.build net/qede: reorganize filter code 2018-09-28 01:41:01 +02:00
qede_ethdev.c net/qede: fix Rx buffer size calculation 2018-09-28 01:41:01 +02:00
qede_ethdev.h net/qede: support generic flow API 2018-09-28 01:41:01 +02:00
qede_filter.c net/qede: support generic flow API 2018-09-28 01:41:01 +02:00
qede_if.h net/qede: move SPDX tags to source files 2018-07-23 23:55:26 +02:00
qede_logs.h net/qede: move SPDX tags to source files 2018-07-23 23:55:26 +02:00
qede_main.c net/qede: move SPDX tags to source files 2018-07-23 23:55:26 +02:00
qede_rxtx.c net/qede: fix Rx buffer size calculation 2018-09-28 01:41:01 +02:00
qede_rxtx.h net/qede: fix Rx buffer size calculation 2018-09-28 01:41:01 +02:00
rte_pmd_qede_version.map qede: add core driver 2016-05-06 15:51:22 +02:00