examples/ip_fragmentation: fix check of packet type
authorWei Dai <wei.dai@intel.com>
Tue, 14 Mar 2017 14:47:49 +0000 (22:47 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Apr 2017 12:52:06 +0000 (14:52 +0200)
commit201d52bc0df70fd5dde9a79b5b6cd70a21f6fd34
tree7614763fa6dc9d553feef02062e2358f78aa6cd6
parentfe2497f94817d45a3d6bdffc48127517d5fb06c8
examples/ip_fragmentation: fix check of packet type

The packet_type in mbuf is not correctly filled by ixgbe 82599 NIC.
To use the ether_type in ethernet header to check packet type is
more reliaber.

Fixes: 3c0184cc0c60 ("examples: replace some offload flags with packet type")
Fixes: ab351fe1c95c ("mbuf: remove packet type from offload flags")
Cc: stable@dpdk.org
Reported-by: Fangfang Wei <fangfangx.wei@intel.com>
Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Fangfang Wei <fangfangx.wei@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/ip_fragmentation/main.c