]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Be much more verbose about what we can and cannot offload
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 25 Oct 2016 23:08:46 +0000 (16:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 3 Dec 2016 06:19:03 +0000 (22:19 -0800)
commitcdf781a4fbb1aefad42b6bea8293d94dbab79330
tree6b92227df1009fc37e3ae1ff02db790de1043469
parent6244a0620bfc78be40c07352393b35fcc513919a
i40e: Be much more verbose about what we can and cannot offload

This change makes it so that we are much more robust about defining what we
can and cannot offload.  Previously we were just checking for the L4 tunnel
header length, however there are other fields we should be verifying as
there are multiple scenarios in which we cannot perform hardware offloads.

In addition the device only supports GSO as long as the MSS is 64 or
greater.  We were not checking this so an MSS less than that was resulting
in Tx hangs.

Change-ID: I5e2fd5f3075c73601b4b36327b771c64fcb6c31b
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c