Article View: linux.kernel.netdev
Article #5490Re: [PATCH net-next 2/2] net: stmmac: disable TX checksum offload for jumbo frames on bugged cores
From: Andrew Lunn
Date: Tue, 20 Oct 2026 12:28
Date: Tue, 20 Oct 2026 12:28
23 lines
9880 bytes
9880 bytes
> > Here I want to query a generic rule from netdev maintainers: > > can XDP frame enable HW checksum on dwmac IP? Per my understanding, the > > dwmac can only do HW checksum for normal particular packets layouts, such as > > TCP, UDP. What about if XDP transmits a non-IP frame? > > or a generic XDP guide from netdev maintainers: > Since XDP can tranmist arbitrary Eth frames, so how does the eth driver cope > with HW checksum if the HW checksum is intended for supported IP packet > layouts rather than arbitrary layer2 frames? > > choices: > c1. Simply disabled HW checksum by default. Then XDP prog must provide > checksums themselves, lost the HW offload cap for IP packets. > > c2. detect the frame in eth driver's xdp code path, then enable/disable > HW checksum accordingly. Then how? Any example in exisiting eth drivers > is appreciated. Why is this specific to XDP? Cannot the network stack transmit arbitrary layer2 frames? Isn't this a generic problem? Andrew
Technical Details
Message-ID:
<3ca537e7-c9a3-4306-a2f4-9c7d57123bfc@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349280-linux-kernel-netdev=dewy.ruReferences:
<20261012-stmmac-xdp-tx-pre-fixes-v1-0-05fd0c90f7e1@oss.qualcomm.com> <20261012-stmmac-xdp-tx-pre-fixes-v1-2-05fd0c90f7e1@oss.qualcomm.com> <6d1d99b5-1c3c-4e59-a0b2-e4d671e594ce@bootlin.com> <ata8k2EVDCDTmeE6@xhacker> <atbbRqSJIJ_glwuf@xhacker>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349280-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 2/2] net: stmmac: disable TX checksum offload for jumbo frames on bugged cores Date: Tue, 20 Oct 2026 14:28:26 +0200 Organization: Usenet Network Message-ID: <3ca537e7-c9a3-4306-a2f4-9c7d57123bfc@lunn.ch> References: <20261012-stmmac-xdp-tx-pre-fixes-v1-0-05fd0c90f7e1@oss.qualcomm.com> <20261012-stmmac-xdp-tx-pre-fixes-v1-2-05fd0c90f7e1@oss.qualcomm.com> <6d1d99b5-1c3c-4e59-a0b2-e4d671e594ce@bootlin.com> <ata8k2EVDCDTmeE6@xhacker> <atbbRqSJIJ_glwuf@xhacker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3851177"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+xUV4zslaRRqz7XVTI57MhBsoNA= sha256:y2SzlYRTb6aVZcYZk7vBwQuKdGoEgLFQJBc7vfQlxYE= sha1:4+ZdE22wbxbOy5bNzmYqsH+NyZY= sha256:Zrm6cV8RoWYIrqQMmsrX3T9d7vBipNw9D3/ISTlRBl0= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 24CA8110CEA; Tue, 20 Oct 2026 15:35:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.04 X-Spam-Status: No, score=-3.04 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MgRbsc9goYxR; Tue, 20 Oct 2026 15:35:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349280-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 02872110CE4; Tue, 20 Oct 2026 15:34:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E636B29C52; Tue, 20 Oct 2026 12:29:02 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792499341; b=2CYo6q8kOQeBUcPLxQSVIVgIiepSXesgkPS4XeUZecga6z9JRebYob2Fw42lTFcyVNfe fzkoZvwDZVmoYaOwMD0mZipemifPSwgiIM0Y5FtzBUADjKJc6vZfqNS+fAQshOscQmOYN HWhcG3ncE1HH8tkb98ACzxm1FAuoZDQnIaDQIH/xEDmZNvoLiKR4aMLfyq10s/YR0PAMt AUNBtujXbC3jJjf9mT8gr+PSZ9PeyMbJ3oTpiZOFez1BKoLrDQnWoAu++uV0vAxRcig8+ 6NjdQ9P+4A9QTCAzwdNqJQUbWhXhYxUMaVC8Y9Vajp5doHlE6IIqfxXHe9RRz+ynouA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792499341; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=JNRVR38d3ey44exqQ8HnB3TSKDb0dhwLcVuiN0wut7A=; b=vKcG3WHP7H02I9ls/Q49un0SNF4Z3my3p9rw56LAolnmzk7C7sg31hGLUxF8Y1j5fU90 WoJL4ogcghELkOOYP3UTrG06oBAzk3rUN6B1NN4pWc2wp/StKTQKsAMdEEtrBqhPqwR1F xM7wUYQ4UMaSJ85oB2ZvYMhhHWzTkmO8h8ENUZplE39GUAOw4qFN03XAqO/nYCKvAyqB2 orcmZLuRWpEm9bA98pQi4Hq9gXddWEKmO9fVzhy8VYrPRXKZRe+/GPyFRvHsIFCT2u1H1 zM+6TG0z6ObWMUqw9c/UL8FWrkizRe22bar3eFbZ7tqPKb2IwXEXspbGI2jkBakL+vw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RsfrEJLC; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B063C606A325; Tue, 20 Oct 2026 12:29:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RsfrEJLC X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792499335; b=ZP+M8Jrq3gbakAQ9f5a96AmAE9FEEX2qJClMjl6gP1OdhcliW7a86sRrIRVjEgzo6WEo e2ls0Utxfc21f60ORqdrGtnINFXrsFzP/PeasIsLMDqQzMumoT0p5gXhSz91ZS/hoxh0t fXcsTQZ2PlO1LJgjjdRYY45/u4jnTMgixZzL6UF0KTelL4h42g44qrgLJQuD3/c2+5X4i gkgcKMt5RTp+7LGHpLBVEHkgJF4h1ms6z6INLlLCEuCEJb4fbRSJaRV2J7iyffSiSLQjl pq67NY6HTUviWlnE3wfCS1bAmx8oTslLlO/m5e2x/iZO9szR2dQJZqD/Ec84O8rfIEQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792499335; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=JNRVR38d3ey44exqQ8HnB3TSKDb0dhwLcVuiN0wut7A=; b=i30hlWYVZoUhQZ2V2jfthdQpRJYVjwtZREgqZglDw0b5TvwmGw31GFpHKuUhw0lgHP/S alNlXjMCPmHUKXKhWzDcHrAhNFBW4May/IMsaYLDqIxtgAl8iycEviJ5Uds+cqXQjEn2o YO2EWl1dIc4jfye+c1qxVDO9NYGa+TP+0sK7lb7zigeV1itc5/dgv5b78y/jZTywQghvt oO8+TV07YJMIiFWpgfgMu+29S6PLavJlBA74orkYxILqIIuhy2T11/uPEw0lL4+5kSR0r SlLnr9HW0HpllA0D2BhhF12QALBKi1NmY0V68PwLl0kjiLk0vlbvGChjCZTDXZDKemQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RsfrEJLC; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5661C606A31C; Tue, 20 Oct 2026 12:28:55 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5661C606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=JNRVR38d3ey44exqQ8HnB3TSKDb0dhwLcVuiN0wut7A=; b=RsfrEJLCHO5hSv/GDMbRHFTY/L vYL6IYeg0ApurcmouAUx8GR/SVM6grwYlMQEFsKs3n/bE0m8ohLoafSrkCe7G/kPSBL/ldA4JepEk MP1rcWc9TnjSZN3OhVpMfZyN5zVJwK38ldDujk0/wrXc4IdiEUPmOV2mdMDwW5XoOWBo=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xJ8x8-00Bqa9-R1; Tue, 20 Oct 2026 14:28:26 +0200 X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>, Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com>, Stanislav Fomichev <sdf@fomichev.me>, Ong Boon Leong <boon.leong.ong@intel.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <atbbRqSJIJ_glwuf@xhacker>