net: support IP tunnels in software packet type parser
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 3 Oct 2016 08:38:49 +0000 (10:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 11 Oct 2016 16:17:12 +0000 (18:17 +0200)
commitb32159dccacf54d49b5754b35ac3109331840121
treed570c0271dbd759b0c257493018a267e6644d367
parent218a163efd674fb5de6721e021de56329f7d1509
net: support IP tunnels in software packet type parser

Add support of IP and IP6 tunnels in rte_net_get_ptype().

We need to duplicate some code because the packet types do not have the
same value for a given protocol between inner and outer.

Signed-off-by: Jean Dao <jean.dao@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_net/rte_net.c
lib/librte_net/rte_net.h