ixgbe: 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:41 +0000 (08:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 04:19:09 +0000 (21:19 -0700)
commit20967f42025f50e8497e6d71259ac5fb56655736
treea843b20fc58ed40d33523457c516fb58e1fb7d99
parent2551c405e886c4ce4732bedaa8559a110a6f373f
ixgbe: 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: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c