aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librte_net
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2017-12-08 17:17:23 +0000
committerLuca Boccassi <luca.boccassi@gmail.com>2017-12-08 17:17:27 +0000
commit1754d8e45ba3f8b13484dee3c2b8ac4d845f2b74 (patch)
treedb372b59e29883bab5802c65b462c38a01b7b33a /lib/librte_net
parentfc42933813b2ba541bed9ef6b3e616dbf4b762ec (diff)
parent47d9763a1dd3103d732da9eec350cfc1cd784717 (diff)
Merge branch 'upstream-16.11-stable' into 16.11.x
Change-Id: Ida57d6d5aedcd4fe3a504a9ced733e73deee76c5 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'lib/librte_net')
-rw-r--r--lib/librte_net/rte_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c
index a8c7aff9..a3ca0403 100644
--- a/lib/librte_net/rte_net.c
+++ b/lib/librte_net/rte_net.c
@@ -396,6 +396,7 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m,
if ((layers & RTE_PTYPE_INNER_L2_MASK) == 0)
return pkt_type;
+ hdr_lens->inner_l2_len = 0;
if (proto == rte_cpu_to_be_16(ETHER_TYPE_TEB)) {
eh = rte_pktmbuf_read(m, off, sizeof(*eh), &eh_copy);
if (unlikely(eh == NULL))