net/enic: fix bad L4 checksum flag on ICMP packets
authorJohn Daley <johndale@cisco.com>
Wed, 17 Aug 2016 22:15:26 +0000 (15:15 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commite7a29e46d1e8781feb1f8df1126e47a143d6b507
tree4c7199bb91507f6740cb8e7758c41edea1c1ce90
parentb961fe9344ddfb7909b80376e29add4728381f85
net/enic: fix bad L4 checksum flag on ICMP packets

The bad L4 checksum flag was set on IP packets which were not
also TCP or UDP packets. This includes ICMP, IGMP and OSPF packets.

L4 ptypes were being treated as bits instead of values within the
L4 mask causing the code to check L4 checksum in the completion
queue and incorrectly set the L4 bad checksum flag.

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

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