numam-dpdk/doc/guides
Shahaf Shuler 883ce1724b net/mlx5: enforce Tx num of segments limitation
Mellanox NICs has a limitation on the number of mbuf segments a multi
segment mbuf can have. The max number depends on the Tx offloads
requested.

The current code not enforce such limitation, which might cause
malformed work requests to be written to the device.

This commit adds verification for the number of mbuf segments posted
to the device. In case of overflow the packet will not be sent.

In addition update the nic documentation with the limitation.
Considering device limitation is 63 data segments in a work request, the
maximum number of segment in mbuf was calculated taking TSO as the worst
case:

max_nb_segs = 63 - (control_segment + ethernet segment +
		    TSO headers inline + inline segment +
		    extra inline to align to cacheline)

Cc: stable@dpdk.org

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
2017-10-06 02:49:48 +02:00
..
contributing doc: add author on cc to git fixline alias 2017-08-03 15:27:26 +02:00
cryptodevs doc: complete crypto sample command line 2017-07-28 18:47:17 +02:00
eventdevs doc: update DPAA2 eventdev extra path 2017-07-30 23:21:09 +02:00
faq doc: update FAQ with new testpmd default burst size 2017-08-06 12:34:07 +02:00
freebsd_gsg doc: use corelist instead of coremask 2017-03-01 20:39:58 +01:00
howto doc: add how-to on packet capture framework 2017-08-04 01:10:29 +02:00
linux_gsg doc: clarify restrictions to run as non-root 2017-08-06 12:26:57 +02:00
nics net/mlx5: enforce Tx num of segments limitation 2017-10-06 02:49:48 +02:00
prog_guide ethdev: support vtune task tracing 2017-09-22 19:01:32 +02:00
rel_notes doc: update release notes with NFP PF support 2017-10-06 02:49:48 +02:00
sample_app_ug doc: fix l2fwd-crypto sample code 2017-07-27 17:41:48 +02:00
testpmd_app_ug doc: fix a typo in testpmd guide 2017-10-05 17:21:45 +02:00
tools doc: add how-to on packet capture framework 2017-08-04 01:10:29 +02:00
xen doc: use corelist instead of coremask 2017-03-01 20:39:58 +01:00
conf.py doc: import sphinx rtd theme when available 2017-07-10 00:46:38 +02:00
index.rst doc: add event device and software eventdev 2017-04-04 19:19:52 +02:00