aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/sfc/rx_common.h
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-06-29 14:36:56 +0100
committerDavid S. Miller <davem@davemloft.net>2020-06-29 17:37:49 -0700
commit4d9c0a2d64551f33638dd566bb82edb3c3cc782c (patch)
treefe91f1aafa4f44676aa3d8fe054f1764fb3474e2 /drivers/net/ethernet/sfc/rx_common.h
parentsfc: commonise ARFS handling (diff)
downloadwireguard-linux-4d9c0a2d64551f33638dd566bb82edb3c3cc782c.tar.xz
wireguard-linux-4d9c0a2d64551f33638dd566bb82edb3c3cc782c.zip
sfc: extend common GRO interface to support CHECKSUM_COMPLETE
EF100 will use CHECKSUM_COMPLETE, but will also make use of efx_rx_packet_gro(), thus needs to be able to pass the checksum value into that function. Drivers for older NICs pass in a csum of 0 to get the old semantics (use the RX flags for CHECKSUM_UNNECESSARY marking). Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/rx_common.h')
-rw-r--r--drivers/net/ethernet/sfc/rx_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/rx_common.h b/drivers/net/ethernet/sfc/rx_common.h
index 3508dd316570..1672d74f30e2 100644
--- a/drivers/net/ethernet/sfc/rx_common.h
+++ b/drivers/net/ethernet/sfc/rx_common.h
@@ -67,7 +67,7 @@ void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue, bool atomic);
void
efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf,
- unsigned int n_frags, u8 *eh);
+ unsigned int n_frags, u8 *eh, __wsum csum);
struct efx_rss_context *efx_alloc_rss_context_entry(struct efx_nic *efx);
struct efx_rss_context *efx_find_rss_context_entry(struct efx_nic *efx, u32 id);