net/mlx5: support mbuf headroom for LRO packet
authorMatan Azrad <matan@mellanox.com>
Mon, 29 Jul 2019 11:53:22 +0000 (11:53 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jul 2019 14:54:27 +0000 (16:54 +0200)
commitbe39124e5b708bbf6ffe9c870ea3a6a6156e15b0
treee603006b67d7abafd05ccce55ab796e9d902b498
parentd64e1e28eb05c8c73fea5c9cbed0a1a55535a798
net/mlx5: support mbuf headroom for LRO packet

Patch [1] zeroes the mbuf headroom when the port is configured with LRO
because when working with more than one stride per packet the HW cannot
guaranty an headroom in the start stride of each packet.

Change the solution to support mbuf headroom by adding an empty buffer
as the first packet segment, scatter mode must be enabled to support it.

[1] http://patches.dpdk.org/patch/56912/

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.c