numam-dpdk/drivers/net
Matan Azrad 721c953018 net/mlx5: fix Rx scatter mode validation
If the mbuf size of the Rx mempool supplied by the user in the Rx setup
is unable to contain the maximum Rx packet length in addition to the
mbuf head-room, the Rx scatter offload must be configured. Otherwise,
there is not enough space in single mbuf to contain a packet with size
of the maximum Rx packet length.

The PMD did not return an error in the above mentioned case.

Return an error in the above case.

Fixes: 7d6bf6b866 ("net/mlx5: add Multi-Packet Rx support")
Fixes: edad38fcd0 ("net/mlx: enhance Rx scatter mode detection")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2019-07-29 16:54:27 +02:00
..
af_packet net/af_packet: remove unused Rx counter 2019-07-26 15:27:05 +02:00
af_xdp net/af_xdp: remove unused Tx counter 2019-07-26 15:27:05 +02:00
ark net/ark: remove resources when port is close 2019-07-23 14:31:36 +02:00
atlantic drivers/net: use ack in interrupt handlers 2019-07-23 12:00:23 +02:00
avp drivers/net: use ack in interrupt handlers 2019-07-23 12:00:23 +02:00
axgbe drivers/net: use ack in interrupt handlers 2019-07-23 12:00:23 +02:00
bnx2x net/bnx2x: fix fastpath SB allocation for SRIOV 2019-07-23 14:31:34 +02:00
bnxt net/bnxt: reduce verbosity of a message 2019-07-25 17:54:57 +02:00
bonding net/bonding: use dynamic log type for error message 2019-07-23 14:31:35 +02:00
cxgbe net/cxgbe: remove unnecessary cast 2019-06-13 23:54:29 +09:00
dpaa net/dpaa: check multi-segment external buffers 2019-07-23 14:31:36 +02:00
dpaa2 net/dpaa2: fix multi-segment Tx 2019-07-23 14:31:36 +02:00
e1000 net/e1000: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
ena net/ena: fix admin CQ polling for 32-bit 2019-07-23 14:31:35 +02:00
enetc drivers: add reasons for components being disabled 2019-07-02 23:21:11 +02:00
enic net/enic: restore default log level to info 2019-07-29 13:01:01 +02:00
failsafe net/failsafe: skip devargs if not present in secondary 2019-07-23 14:31:35 +02:00
fm10k net/fm10k: replace license text with SPDX tag 2019-07-24 18:44:40 +02:00
hinic net/hinic: fix implicit downcast of bitfield 2019-07-23 14:31:35 +02:00
i40e net/i40e: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
iavf net/iavf: fix endless loop 2019-07-26 13:24:32 +02:00
ice net/ice: fix LLDP forward 2019-07-29 15:52:22 +02:00
ifc net/ifc: add devargs pointer check 2019-07-23 14:31:35 +02:00
ipn3ke net/ipn3ke: implement statistics 2019-07-08 21:26:52 +02:00
ixgbe net/ixgbe: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
kni net/kni: do not count unsent packets as errors 2019-07-26 15:27:05 +02:00
liquidio net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
memif net/memif: do not count unsent packets as errors 2019-07-26 15:27:05 +02:00
mlx4 net/mlx4: fix typo in comment 2019-07-23 14:31:36 +02:00
mlx5 net/mlx5: fix Rx scatter mode validation 2019-07-29 16:54:27 +02:00
mvneta net/mvneta: remove resources when port is closed 2019-07-08 21:26:52 +02:00
mvpp2 drivers: add reasons for components being disabled 2019-07-02 23:21:11 +02:00
netvsc net/netvsc: fix definition of offload values 2019-07-05 01:52:01 +02:00
nfb net/nfb: support timestamp 2019-07-23 14:31:34 +02:00
nfp drivers/net: use ack in interrupt handlers 2019-07-23 12:00:23 +02:00
null net/null: remove unused Tx error counter 2019-07-26 15:27:05 +02:00
octeontx net/octeontx: use driver log type 2019-07-23 14:31:36 +02:00
octeontx2 net/octeontx2: support GRE key parsing 2019-07-29 12:24:49 +02:00
pcap net/pcap: fix concurrent multiseg Tx 2019-07-26 00:32:18 +02:00
qede drivers/net: use ack in interrupt handlers 2019-07-23 12:00:23 +02:00
ring net/ring: do not count unsent packets as errors 2019-07-26 15:27:05 +02:00
sfc net/sfc: unify power of 2 alignment check macro 2019-07-24 21:01:11 +02:00
softnic net/softnic: add config flexibility to TM 2019-07-22 15:41:50 +02:00
szedata2 net/szedata2: support Silicom Mango card 2019-07-03 12:57:30 +02:00
tap net/tap: remove redundant declarations 2019-07-23 14:31:34 +02:00
thunderx drivers/net: fix double free on init failure 2019-06-28 20:31:49 +02:00
vdev_netvsc net/vdev_netvsc: use new ethernet address parser 2019-07-08 21:26:52 +02:00
vhost net/vhost: do not count unsent packets as errors 2019-07-26 15:27:05 +02:00
virtio net/virtio: remove unused Tx error counter 2019-07-26 15:27:05 +02:00
vmxnet3 net/vmxnet3: replace license text with SPDX tag 2019-07-29 13:31:45 +02:00
Makefile net/octeontx2: add build and doc infrastructure 2019-07-05 01:52:01 +02:00
meson.build net/octeontx2: add build and doc infrastructure 2019-07-05 01:52:01 +02:00