]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:41:04 +0000 (19:41 -0500)
commit7c8bc6fb1c7c6289bfa4c437108055bf294e3223
treec761c560cb4c2298e6d0d9a30a0c8bc1353e2fe1
parent4d1b32001afefbf8c5c2284cd99c33745860977f
i40e: Be much more verbose about what we can and cannot offload

Orabug: 24568124

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>
(cherry picked from commit f114dca2533ca770aebebffb5ed56e5e7d1fb3fb)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/intel/i40e/i40e_main.c

Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/kcompat.h