From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796473443; b=K/yoSYl+ZyMVEf3oUfwQ5SZAqAa/3JzT86766YA91whLrYE5samN6R+YiRbgkLcPqaoq HS/yu4RcUK06RDzthNqFI/wNtf63BubQcL+JleRCET38atKnT5qwIKfn1WuSAcTkHvLhx iNFZjZkQ+jvmxWZ4OZ7/hImoYZYxSrY1m7aIw+0gAvBGp3BA1nLmgtGxpky7WCDhlLn9N GgfYg1qkte20cubTN3j94PmNWZ77ji537/6Q4hayde3KpVjFzGFXMpR8oUhJZ55Ncb4By OcPZZUVPfQ7nYQxzfIqij6UErLYnorX/g6h0QgT1iE1Y/qVUGOBoP7KGeHLQDOjFH4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796473443; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=cN2j4NDUswqZSXhGhwUZvZX7ju2+Rh3Kn5+4QGxYIEM=; b=mG5XyRxiVviCqOlM7VxgXpGwPJNOgu2XENFCaWecHk0qxUFWIpP4lLIxAln4ONk7m+dy vSJM/+VULO4Irp/0jeUxIlXZFOpqP23tO7HZrXNpMQLNDFC26c28P9/OAo/GCenFFxxbr 6MyZzyxBUSTkrupeFQw8oDvQxth9O/0MDM5o37cPHMfmkicqxf/Idhp9VOT3s6pn1Jbzl 8uLiZXiNA1mVnIxy9KAUloGeUYTEG5h4CuG6Bxh5jv31g/QrQ/XhlatBAUJbpEyyMHHoH FaU5rxANwzZBUrmkXJ6588BX3ZhKhvPV/89Wp314zN1SDzMdPeCnYbqmcpnZho9WtQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=ts7BdXam; arc=none smtp.remote-ip=194.13.80.246 Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78C4F606A333 for ; Sat, 5 Dec 2026 12:24:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78C4F606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=ts7BdXam Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0654BA2B82; Sat, 05 Dec 2026 13:23:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1796473439; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=cN2j4NDUswqZSXhGhwUZvZX7ju2+Rh3Kn5+4QGxYIEM=; b=ts7BdXamI+FaEpGZ3NHr0g9gqL4wOInHwL4KoJozsiHp6tlyNdPHDuoQei699eflLw6kr+ YVWd/TZzO2dz4jPoveWif9rboMM5DTN4FjrLtSYbFtjODE/Gvh+JPNcafRjc43OF6sMnjV 5MFVoU1t2hrwBVOOqL/fiJaRWzRTdvoXno03l+Fijf+8bWmz8OmlaT2gnNiIEXbC1FS2oF 8g9Kf4ufYAEG40fCiNobvKCDgjF9hp/GXO1WX8nJ3el0sgPEkTLUhFhQ3ytqhGnWOekJXB 89SfS5W1eKKIjPbsAtf3kyY+lcEOl9y/GAxbUY6G7sfM5SfLAL5MmdRzuWnJsA== X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Sat, 05 Dec 2026 13:23:58 +0100 From: Nicolai Buchwitz To: Florian Fainelli Cc: netdev@vger.kernel.org, Doug Berger , Broadcom internal kernel review list , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net-next 2/2] net: bcmgenet: add support for NETIF_F_RXFCS In-Reply-To: <20261204230048.3554713-3-florian.fainelli@broadcom.com> References: <20261204230048.3554713-1-florian.fainelli@broadcom.com> <20261204230048.3554713-3-florian.fainelli@broadcom.com> Message-ID: X-Sender: nb@tipi-net.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi Florian On 5.12.2026 00:00, Florian Fainelli wrote: > [...] > @@ -814,14 +814,40 @@ static int bcmgenet_set_features(struct > net_device *dev, > u32 reg; > int ret; > > + /* Frames already queued in the RX rings were written with the old > FCS > + * setting and cannot be told apart from new ones, so refuse a live > + * change. The request stays in wanted_features and is applied by > + * bcmgenet_close(). Re-applying the current features from open and > + * resume does not change the flag and is not affected. > + */ > + if (netif_running(dev) && ((features ^ dev->features) & > NETIF_F_RXFCS)) > + return -EBUSY; -EBUSY never reaches userspace? ethtool reports OK, but dmesg an error. The change shows up at the next ifdown. Every other ethtool -K fails too. Maybe pin RXFCS in ndo_fix_features() while running instead? > [...] > return ret; > @@ -2461,12 +2487,15 @@ static unsigned int bcmgenet_desc_rx(struct > bcmgenet_rx_ring *ring, > skb_reserve(skb, GENET_RSB_PAD); > __skb_put(skb, len - GENET_RSB_PAD); > > - if (priv->crc_fwd_en) { > + /* Strip the FCS unless the user asked to receive it */ > + if (priv->crc_fwd_en && !(dev->features & NETIF_F_RXFCS)) Can this still hit? crc_fwd_en mirrors RXFCS now, so it could probably go away? > skb_trim(skb, skb->len - ETH_FCS_LEN); > - } > > - /* Set up checksum offload */ > - if (dev->features & NETIF_F_RXCSUM) { > + /* Set up checksum offload. The hardware checksum excludes the > + * FCS, so it cannot be used when the FCS is passed up. > + */ > + if ((dev->features & NETIF_F_RXCSUM) && > + !(dev->features & NETIF_F_RXFCS)) { Nit: ethtool -k still shows rx-checksumming on here. Clear RXCSUM in ndo_fix_features() while RXFCS is set (or csum_block_add() the FCS)? > [...] Thanks, Nicolai