net: forbid VLAN insert in shared mbuf
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Apr 2019 15:51:26 +0000 (16:51 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 13:59:14 +0000 (15:59 +0200)
commit15a74163b12ed9b8b980b1576bdd8de16d60612b
tree90ca7f2396f5c132e641da15cdb576b0aaf8ce4a
parent79f52bff01d0fbbcbb2467bddbdda164d2bad7d4
net: forbid VLAN insert in shared mbuf

The vlan_insert() is buggy when it tries to handle the shared mbufs,
instead don't support inserting VLAN tag into shared mbufs and return
an error for that case.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_ether.h