From nobody Sat Nov 30 16:36:39 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