i40evf: Fix Outer UDP RX checksum code
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Tue, 31 Mar 2015 07:44:59 +0000 (00:44 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 10:54:28 +0000 (03:54 -0700)
commit818f2e7b25ac3ae12b1a40690e3aa082ff5896ee
tree2489af8acfa35a5e79cff1d7ba84f4b503f27d7f
parent11a9c7821c583aa22b35f37fba20539def9e8f14
i40evf: Fix Outer UDP RX checksum code

Inner protocol being UDP should not stop us from verifying Outer UDP
checksum correctness.

If the Outer protocol is not UDP (NVGRE) we should not be doing a UDP
checksum check. If the packet has zero checksum, skip checksum check.

Change-ID: Ie7f153feb276a59f66a54a0938901b2c0a8100fa
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40e_txrx.c