From nobody Sat Nov 30 12:38:18 2024 Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B08A0136E28 for ; Mon, 9 Sep 2024 16:10:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898227; cv=none; b=N6P1Q2Kn3HxumhLvEFFB/7uIE+r/96EBTROFVHApkXE/jB5B/guO+VYphDHgfbRd0wtDSnm9CCis2WKYEqZyrJ7uSbyweZkAm3ZtvlYxm0+sfnW1L/Q0KR3GqIG9g+jMoEgX6VmzHkJBXiCXlBI7VTHzUDneSTdfJ6ninSRC/Fk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898227; c=relaxed/simple; bh=b7r22GvWSGCQFisJ8HFSX0NCY7i61DaUNeKekj+WoQw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WZ7QW1cDVd5DX8dbWWxISsvcaqFyHxPEHkKIkUtEmsx5J4/eSwstxvGcMy/COAKgWYg050p2NfrRlJr4/dmf8TY2zzlX5jWP60SnEzueqFF0z0l+pXROlFM/8xf0avU7t1mP3Ij//qM/djDBCRVysK4VD7Vio3BP5M4712bzQHM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=du//2mr3; arc=none smtp.client-ip=95.215.58.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="du//2mr3" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1725898224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tqlLT/Hh20witXiI7FRrOr1inVlCff2bwtrhyondFxg=; b=du//2mr3O0O9PxG9nGWD5CwEvtu5tqp/zl7s9xAgi/UhdCNIDX0jRYiQlFqCE1l8NIEKUa ds8wd6n1vdaCavzEWJxKAQsUnpLAXzvg1hNyZLtrD8Koj8iNEBklt+llZhWMQzCDOjazi1 0e6/yDaZD//6i7QIrk54Tvwvx1COE+M= From: Sean Anderson To: Radhey Shyam Pandey , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek , Sean Anderson , Simon Horman Subject: [PATCH net-next v2 1/4] net: xilinx: axienet: Remove unused checksum variables Date: Mon, 9 Sep 2024 12:10:13 -0400 Message-Id: <20240909161016.1149119-2-sean.anderson@linux.dev> In-Reply-To: <20240909161016.1149119-1-sean.anderson@linux.dev> References: <20240909161016.1149119-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" These variables are set but never used. Remove them. Signed-off-by: Sean Anderson Reviewed-by: Simon Horman Reviewed-by: Radhey Shyam Pandey --- (no changes since v1) drivers/net/ethernet/xilinx/xilinx_axienet.h | 5 ----- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/eth= ernet/xilinx/xilinx_axienet.h index c301dd2ee083..b9d2d7319220 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -527,8 +527,6 @@ struct skbuf_dma_descriptor { * supported, the maximum frame size would be 9k. Else it is * 1522 bytes (assuming support for basic VLAN) * @rxmem: Stores rx memory size for jumbo frame handling. - * @csum_offload_on_tx_path: Stores the checksum selection on TX side. - * @csum_offload_on_rx_path: Stores the checksum selection on RX side. * @coalesce_count_rx: Store the irq coalesce on RX side. * @coalesce_usec_rx: IRQ coalesce delay for RX * @coalesce_count_tx: Store the irq coalesce on TX side. @@ -606,9 +604,6 @@ struct axienet_local { u32 max_frm_size; u32 rxmem; =20 - int csum_offload_on_tx_path; - int csum_offload_on_rx_path; - u32 coalesce_count_rx; u32 coalesce_usec_rx; u32 coalesce_count_tx; diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/ne= t/ethernet/xilinx/xilinx_axienet_main.c index fe6a0e2e463f..60ec430f3eb0 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -2631,38 +2631,26 @@ static int axienet_probe(struct platform_device *pd= ev) if (!ret) { switch (value) { case 1: - lp->csum_offload_on_tx_path =3D - XAE_FEATURE_PARTIAL_TX_CSUM; lp->features |=3D XAE_FEATURE_PARTIAL_TX_CSUM; /* Can checksum TCP/UDP over IPv4. */ ndev->features |=3D NETIF_F_IP_CSUM; break; case 2: - lp->csum_offload_on_tx_path =3D - XAE_FEATURE_FULL_TX_CSUM; lp->features |=3D XAE_FEATURE_FULL_TX_CSUM; /* Can checksum TCP/UDP over IPv4. */ ndev->features |=3D NETIF_F_IP_CSUM; break; - default: - lp->csum_offload_on_tx_path =3D XAE_NO_CSUM_OFFLOAD; } } ret =3D of_property_read_u32(pdev->dev.of_node, "xlnx,rxcsum", &value); if (!ret) { switch (value) { case 1: - lp->csum_offload_on_rx_path =3D - XAE_FEATURE_PARTIAL_RX_CSUM; lp->features |=3D XAE_FEATURE_PARTIAL_RX_CSUM; break; case 2: - lp->csum_offload_on_rx_path =3D - XAE_FEATURE_FULL_RX_CSUM; lp->features |=3D XAE_FEATURE_FULL_RX_CSUM; break; - default: - lp->csum_offload_on_rx_path =3D XAE_NO_CSUM_OFFLOAD; } } /* For supporting jumbo frames, the Axi Ethernet hardware must have --=20 2.35.1.1320.gc452695387.dirty From nobody Sat Nov 30 12:38:18 2024 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0844713C68E for ; Mon, 9 Sep 2024 16:10:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898229; cv=none; b=UmBM6r7PfzU0vCHSA0qERuMSmTAh2+94wZmJLYCRP3KYqXUK2BeAFZVlhgIEUtpiA87NvnLbACejY14hgHrXz80V/FPRfiAX6qGEomXE7RlRQEtnDOPEaYgrmab5mRLwWrVp1TMdU8d8yoM/a3HD+DeIAyyDEIYyqKtU673SXFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898229; c=relaxed/simple; bh=CQsiWsQcmwleceLG+n+fiW0zTH07SvRAhpUPi6TMEbw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Impmcnh5/9VOEci/LX5gwro0vqyRTpuz0fDZJjAeF38YN2WHU3sMj9x5KtlYtrgBSGHnf//uCPgekv/dpVaKbSBdTuQ4ZUEwJQ4FD4mB0I+z6PDqQDbvjG6haW/fQgKsqWGRxRKbo8H5XL9T46D/Gp+MqZXmIZ9xn1QT3j379Tg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=VDXSUXZa; arc=none smtp.client-ip=95.215.58.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="VDXSUXZa" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1725898225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uMGpZzRVl3cnTirggChhJzILzss8nbtBZB80hg8Yk5I=; b=VDXSUXZaJtjoEYkXI6+e0AyWJ1BxqXymHllkD0Q8foYU3h9SHSCt20qSkug7p5t6JSmk/K zFtyfRtpmc6Ul28NRKYqFeq3CdJjA8DL5I0afYX4pDwmdU7LSW0KopS2d3bqv/9uAZHrVA xkvBYrgDoagwqWCgCjkiZXl97P4TiHc= From: Sean Anderson To: Radhey Shyam Pandey , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek , Sean Anderson , Simon Horman Subject: [PATCH net-next v2 2/4] net: xilinx: axienet: Enable NETIF_F_HW_CSUM for partial tx checksumming Date: Mon, 9 Sep 2024 12:10:14 -0400 Message-Id: <20240909161016.1149119-3-sean.anderson@linux.dev> In-Reply-To: <20240909161016.1149119-1-sean.anderson@linux.dev> References: <20240909161016.1149119-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Partial tx chechsumming is completely generic and does not depend on the L3/L4 protocol. Signal this to the net subsystem by enabling the more-generic offload feature (instead of restricting ourselves to TCP/UDP over IPv4 checksumming only like is necessary with full checksumming). Signed-off-by: Sean Anderson Reviewed-by: Simon Horman --- (no changes since v1) drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/ne= t/ethernet/xilinx/xilinx_axienet_main.c index 60ec430f3eb0..74fade5a95c2 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -2632,8 +2632,8 @@ static int axienet_probe(struct platform_device *pdev) switch (value) { case 1: lp->features |=3D XAE_FEATURE_PARTIAL_TX_CSUM; - /* Can checksum TCP/UDP over IPv4. */ - ndev->features |=3D NETIF_F_IP_CSUM; + /* Can checksum any contiguous range */ + ndev->features |=3D NETIF_F_HW_CSUM; break; case 2: lp->features |=3D XAE_FEATURE_FULL_TX_CSUM; --=20 2.35.1.1320.gc452695387.dirty From nobody Sat Nov 30 12:38:18 2024 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 801F91494BA; Mon, 9 Sep 2024 16:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898231; cv=none; b=nGGNYBCQIE219dfHWTGPjmsrLvnoA6IM0ezRyuX4as1nXLrleAfwcDMoeFbjIFmO44b+2VoNO/dRVQ52ycE8zIcEZ8FijK6aGeCWMiQg/6boR2l5a4sJPCPtU76NxuViCEreR3de+Wbgvp/R8G4dS+q4h66cpfX0m1M2QWX+ZA0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898231; c=relaxed/simple; bh=Q7PpYi7/+ndB8e5BYvLIv7xeoZYc3tbMmj33jNf78j4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MYPiCLKyPTSXZMdkAOLAe9dnBfGD18A54sJEhFUjubIql+YpDPD+A+eiztxklan5GOoJ2oSzyWDC0mq4wSnpsFEyed0Xf3EGrPvxysnT+NlfdFij/ilAxu74FoJYgZqu01MuTrLlIgR1sPlIWBDgSAdSfx2dyAEmtNdTS8r1Su4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=WMwpFzo0; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="WMwpFzo0" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1725898227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19quJ8EY+Cd/sjvlTdES6J8MCKiXC6Ag5+CEkCU5nos=; b=WMwpFzo0pw4JmPy1X46W/muKBh4whAMOfVtsKIzGGVe8CB6S1tZR2gvzgdGXNSEDmFxOBw BfdMByBIN0Fql23i1D/jaiyy4wb77jPzNdATlalFUontaQQdzq1AnFElzzML/TzxRJsAna m0OpznsksfqzjgbAlg5ZPnM+O+SunN4= From: Sean Anderson To: Radhey Shyam Pandey , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek , Sean Anderson Subject: [PATCH net-next v2 3/4] net: xilinx: axienet: Set RXCSUM in features Date: Mon, 9 Sep 2024 12:10:15 -0400 Message-Id: <20240909161016.1149119-4-sean.anderson@linux.dev> In-Reply-To: <20240909161016.1149119-1-sean.anderson@linux.dev> References: <20240909161016.1149119-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" When it is supported by hardware, we enable receive checksum offload unconditionally. Update features to reflect this. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/ne= t/ethernet/xilinx/xilinx_axienet_main.c index 74fade5a95c2..2f7ab0922aed 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -2647,9 +2647,11 @@ static int axienet_probe(struct platform_device *pde= v) switch (value) { case 1: lp->features |=3D XAE_FEATURE_PARTIAL_RX_CSUM; + ndev->features |=3D NETIF_F_RXCSUM; break; case 2: lp->features |=3D XAE_FEATURE_FULL_RX_CSUM; + ndev->features |=3D NETIF_F_RXCSUM; break; } } --=20 2.35.1.1320.gc452695387.dirty From nobody Sat Nov 30 12:38:18 2024 Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BB45139CFE for ; Mon, 9 Sep 2024 16:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898233; cv=none; b=fpJdBPOCpH+ikfhK4XHBvk62/MqB0/39IBvXgwEKxxP3DA8wBVsK4NNfR7OBiIIZuX2ApEvsEVFrcQ0ijOgpeMvjMWcoG/ePOOiZcyBA3uxZHzCeC2GHCLLkWw5LfIhzV9BOR3eQMXdbleNYIV84UFI9WhGXylyHMvboi06VhLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725898233; c=relaxed/simple; bh=2Kjk0w21kcQXy0DYQRZx0fZyS85YzXT+9u2Q3jHgQy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uve0iUKQ3H4OY8MXiOICAyLFSurotRIdFCqsDAAsjZpsLK06oo5FOvu3BnderrvEkweqxzOHRNilMU+BvvXAyYXjh4lMHWh+V2ghLgwj69kHbKUfGNfQvS42v0KbnJLVIgiOivIxG0+h7wvYmWXSNyOED/t/9cSkxtfTuNAEEPo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=T5/7VLwh; arc=none smtp.client-ip=95.215.58.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="T5/7VLwh" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1725898229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HYLjaJjab8lWILZwaUDKtxHDlmqX2R9MWPau9VCILks=; b=T5/7VLwhGGEvLhNjsfyIe+LzHATEMF010ZU8OMtFrSM2z6VgninQV+HPMNdauzWTsk4jUw qxWNEs3FZK4I8mkDV7pYmGdnmyC9b5YaAyubV/f4PvnyR1zySgs2ULqnAJ0W2TOZFBV89A 4SXKZnNml7VJZTYNvWxV4Lnyk46GTPw= From: Sean Anderson To: Radhey Shyam Pandey , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek , Sean Anderson , Simon Horman Subject: [PATCH net-next v2 4/4] net: xilinx: axienet: Relax partial rx checksum checks Date: Mon, 9 Sep 2024 12:10:16 -0400 Message-Id: <20240909161016.1149119-5-sean.anderson@linux.dev> In-Reply-To: <20240909161016.1149119-1-sean.anderson@linux.dev> References: <20240909161016.1149119-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The partial rx checksum feature computes a checksum over the entire packet, regardless of the L3 protocol. Remove the check for IPv4. Additionally, testing with csum.py (from kselftests) shows no anomalies with 64-byte packets, so we can remove that check as well. Signed-off-by: Sean Anderson Reviewed-by: Simon Horman --- Testing was performed with csum.py between two axienet netdevs. I also test= ed with a macb netdev, but I saw some errors due to 007e4ba3ee13 ("net: macb: initialize checksum when using checksum offloading"). I also tested manually with a dpaa netdev, but I wasn't set up for ssh. Changes in v2: - Expand commit message with testing methodology drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/ne= t/ethernet/xilinx/xilinx_axienet_main.c index 2f7ab0922aed..4185c5708742 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1188,9 +1188,7 @@ static int axienet_rx_poll(struct napi_struct *napi, = int budget) csumstatus =3D=3D XAE_IP_UDP_CSUM_VALIDATED) { skb->ip_summed =3D CHECKSUM_UNNECESSARY; } - } else if ((lp->features & XAE_FEATURE_PARTIAL_RX_CSUM) !=3D 0 && - skb->protocol =3D=3D htons(ETH_P_IP) && - skb->len > 64) { + } else if (lp->features & XAE_FEATURE_PARTIAL_RX_CSUM) { skb->csum =3D be32_to_cpu(cur_p->app3 & 0xFFFF); skb->ip_summed =3D CHECKSUM_COMPLETE; } --=20 2.35.1.1320.gc452695387.dirty