mbuf: copy offload flags when doing attach/clone
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Mar 2014 18:13:36 +0000 (10:13 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 24 Mar 2014 17:58:25 +0000 (18:58 +0100)
commit156705307c73a5fd69396a4786b8d5e55f00b537
treebb09090d7212de46d93979d59875bc22ebfd129d
parent1daf0aae7fd6b3bc38952e9817a1653c1258be66
mbuf: copy offload flags when doing attach/clone

rte_pktmbuf_attach copies the packet meta data but does not
copy the offload flags. This means that cloned packets lose
their offload settings such as vlan tag.

Signed-off-by: Stephen Hemminger <shemming@brocade.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_mbuf/rte_mbuf.h