numam-dpdk/drivers/net
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
..
af_packet ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
ark net/ark: use SPDX tags 2018-07-04 21:21:31 +02:00
avf ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
avp ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
axgbe ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
bnx2x net/bnx2x: move SPDX tags to source files 2018-08-03 17:08:39 +02:00
bnxt ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
bonding net/bonding: do not ignore RSS key on device config 2018-09-14 20:08:41 +02:00
cxgbe ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
dpaa drivers/net: remove double assignment of driver 2018-09-28 18:02:49 +02:00
dpaa2 drivers/net: remove double assignment of driver 2018-09-28 18:02:49 +02:00
e1000 net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
ena remove useless constructor headers 2018-07-12 00:00:35 +02:00
enic ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
failsafe ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
fm10k net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
i40e net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
ifc net/ifc: do not notify before HW ready 2018-09-28 01:41:01 +02:00
ixgbe net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
kni ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
liquidio remove useless constructor headers 2018-07-12 00:00:35 +02:00
mlx4 net/mlx4: support meson build 2018-09-28 01:41:01 +02:00
mlx5 net/mlx5: add bluefield VF support 2018-09-28 01:41:01 +02:00
mvpp2 ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
netvsc net/netvsc: support integrated VF 2018-09-14 20:08:41 +02:00
nfp net/nfp: fix mbuf flags with checksum good 2018-09-28 01:41:01 +02:00
null ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
octeontx net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
pcap ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
qede net/qede: fix Rx buffer size calculation 2018-09-28 01:41:01 +02:00
ring ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
sfc net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
softnic ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
szedata2 ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
tap net/tap: add in meson build 2018-09-18 22:48:49 +02:00
thunderx net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
vdev_netvsc net/vdev_netvsc: add in meson build 2018-09-18 22:49:39 +02:00
vhost ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
virtio ethdev: make default behavior CRC strip on Rx 2018-09-14 20:08:41 +02:00
vmxnet3 net/vmxnet3: add in meson build 2018-09-18 22:53:35 +02:00
Makefile net/netvsc: add Hyper-V network device 2018-07-13 23:48:07 +02:00
meson.build net/mlx4: support meson build 2018-09-28 01:41:01 +02:00