net: get packet type for the first layers only
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 3 Oct 2016 08:38:53 +0000 (10:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 11 Oct 2016 16:17:13 +0000 (18:17 +0200)
commit873dd1e68d7cfd2f0e5140b8af4f5e0b6007d4db
tree1ea68990d45a14926489afe46d04c1b945ae7e86
parent2c15c5377da23863b02a4b94ae89a3a76dfa0e4a
net: get packet type for the first layers only

Add a parameter to rte_net_get_ptype() to select which
layers should be parsed. This avoids to parse all layers if
only the first ones are required.

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