net/enic: improve packet type identification
authorNelson Escobar <neescoba@cisco.com>
Tue, 14 Jun 2016 23:54:05 +0000 (16:54 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Jun 2016 11:31:20 +0000 (13:31 +0200)
commit097e1f1e4072c3748d2f26ce9660499f5f8b4b45
tree72f6f0fb162536eae109cfdecbf1c627578b549c
parent07491889d1d4732e20e5ae3c94fe76c4f21951be
net/enic: improve packet type identification

- add l4 ptypes to the ones we report as supporting
- report/use RTE_PTYPE_L3_IPV4_EXT_UNKNOWN and
  RTE_PTYPE_L3_IPV6_EXT_UNKNOWN instead of RTE_PTYPE_L3_IPV4 and
  RTE_PTYPE_L3_IPV6 as vic can't distinguish between packets with
  extentions and those without extentions.
- correctly set the ptype bits set on packets that are both tcp/udp
  and a frag
- set RTE_PTYPE_L4_NONFRAG on ip packets we know are not udp, tcp,
  or fragments.

Fixes: 947d860c821f ("enic: improve Rx performance")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_rxtx.c