net: adjust L2 length on soft VLAN insertion
authorDilshod Urazov <dilshod.urazov@oktetlabs.ru>
Mon, 24 Jun 2019 13:46:02 +0000 (14:46 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit42caa11b370e17bdbba498766b0fbad0975d8fa9
tree7ebd420672bd5ac45190c718d363d8f081fd2451
parentbbd8ecc05434a010ea5dfc5ad7b17f5927b63f06
net: adjust L2 length on soft VLAN insertion

Layer 2 length must be updated after the prepend to mbuf to keep
the length right to be used by other Tx offloads.

If the packet has tunnel encapsulation, outer_l2_len should be
updated. Otherwise l2_len should be updated.

Fixes: c974021a5949 ("ether: add soft vlan encap/decap")
Cc: stable@dpdk.org
Signed-off-by: Dilshod Urazov <dilshod.urazov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_ether.h