e7a29e46d1
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>