igb: Mask off check of frag_off as we only want fragment offset
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 1 Feb 2013 08:56:47 +0000 (08:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 23:40:01 +0000 (16:40 -0700)
commitb9555f6627656309c01b0c077dcecbee0ac9343f
treed83b423538bd5243c528e1fc5dc4e61ea00bcdc5
parent5c17a203721d72c36798e5d7fa564e1adf8beb65
igb: Mask off check of frag_off as we only want fragment offset

We were incorrectly checking the entire frag_off field when we only wanted the
fragment offset.  As a result we were not pulling in TCP headers when the DNF
flag was set.

To correct that we will now check for frag off using the IP_OFFSET mask.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c