diff mbox

[net] net:ethernet:aquantia: Fix for RX checksum offload.

Message ID cc4fcad0ba1a6e7ae7c55cd15fe0b4e23650c04e.1490203234.git.pavel.belous@aquantia.com
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Pavel Belous March 22, 2017, 5:21 p.m. UTC
From: Pavel Belous <pavel.belous@aquantia.com>

Since AQC-100/107/08 chips supports hardware checksums for RX we should indicate
this via NETIF_F_RXCSUM flag.
---
 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0_internal.h | 1 +
 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h | 1 +
 2 files changed, 2 insertions(+)

Comments

Jarod Wilson March 22, 2017, 9:02 p.m. UTC | #1
On 2017-03-22 1:21 PM, Pavel Belous wrote:
> From: Pavel Belous <pavel.belous@aquantia.com>
>
> Since AQC-100/107/08 chips supports hardware checksums for RX we should indicate
> this via NETIF_F_RXCSUM flag.

Looks good, and fixes an lnst netperf test failure.

Acked-by: Jarod Wilson <jarod@redhat.com>
David Miller March 22, 2017, 10:48 p.m. UTC | #2
From: Pavel Belous <Pavel.Belous@aquantia.com>
Date: Wed, 22 Mar 2017 20:21:10 +0300

> From: Pavel Belous <pavel.belous@aquantia.com>
> 
> Since AQC-100/107/08 chips supports hardware checksums for RX we should indicate
> this via NETIF_F_RXCSUM flag.

Please resubmit this with a proper signoff.

Thank you.
diff mbox

Patch

diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0_internal.h b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0_internal.h
index 1093ea1..0592a03 100644
--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0_internal.h
+++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0_internal.h
@@ -137,6 +137,7 @@  static struct aq_hw_caps_s hw_atl_a0_hw_caps_ = {
 	.tx_rings = HW_ATL_A0_TX_RINGS,
 	.rx_rings = HW_ATL_A0_RX_RINGS,
 	.hw_features = NETIF_F_HW_CSUM |
+			NETIF_F_RXCSUM |
 			NETIF_F_RXHASH |
 			NETIF_F_SG |
 			NETIF_F_TSO,
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h
index 8bdee3d..f3957e93 100644
--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h
+++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h
@@ -188,6 +188,7 @@  static struct aq_hw_caps_s hw_atl_b0_hw_caps_ = {
 	.tx_rings = HW_ATL_B0_TX_RINGS,
 	.rx_rings = HW_ATL_B0_RX_RINGS,
 	.hw_features = NETIF_F_HW_CSUM |
+			NETIF_F_RXCSUM |
 			NETIF_F_RXHASH |
 			NETIF_F_SG |
 			NETIF_F_TSO |