From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796153722; b=lhtn4dE7vsdNKi2YHFTdFqvfkJB9cSKTmLE1DUZlw6Dm025BR+5/uEX+dwBF58Iu5PDZ y7rgVR8MNwC0n1+S0dtfEOqw88xAk88Rplotf3LbbWkTM8Wd9pq3MwGg8RpXHlqy1hRkl a4VlnX+wBFqdqFF+aPBNPJUiuN3RlpOL2EF2uLQ5odDPU9xTqJwaFQavgZr+oW5aRPw0A qpYzTWRS6wIMlrqmJ2iKy0naTUSBd9adrlIwYo0LmQBNy5aBK6SPi/H0IpTBxO554SsTL FHI0GKxNch1ZBNZrYnzRekGOpD9qfn38Ctttz2RKwt7VL9ff3FBBL8+sn4nsJIV4EGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153722; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=u1xrWIa1w7NYzs5qb1magNwJP2nrX+qrf4qknIwtAgg=; b=mJcaaIBXOj57PcXKt3kUqnrdtQPmjIc+U7UDNxAi0iBZ3cUuWKY99HRlUXiDtN/lXVvX tuPlICq07N9Ju1oYRX49pUOG7DRKZueld5MoEKN3jIbf+kxdLAAl7cKcfvX6LLvSVDL6g BSMjBhlbArtzw3WdOrobCjjMDMFYEyrNWacQVEUcQV0UESIGGATcExv0NltpuOEfF22I1 0Hq8Y258o0d0G9T8JR1elqQA3m7NE/tzUFvyhvSjbH/BMNqHAzT1wDoS7B/Y2NTW5OKoY /aSxxjibSzpJIkF31V2BmKRD8/AqBH8JkR4TYNNRwNBKuQ68iA9rxzZny2zSHn83wGQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=dama.to; spf=none smtp.mailfrom=dama.to; dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=gO11IBEY; arc=none smtp.remote-ip=209.85.210.173 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73148606A31A for ; Tue, 1 Dec 2026 19:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 73148606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=gO11IBEY Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-8a06e79e152so5915042b3a.0 for ; Tue, 01 Dec 2026 11:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dama-to.20260707.gappssmtp.com; s=20260707; t=1796153720; x=1796758520; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=u1xrWIa1w7NYzs5qb1magNwJP2nrX+qrf4qknIwtAgg=; b=gO11IBEYzB/iguRgz6icnj3pLwbEyaMais5gRLBv5vRR1F1J5DZGi7vcMBHp6RiA7O 57ZTmM375kRATBQGUoqAQsYFUxV+JAi09tOdRUT3CMHYHIKWg6Hh1vNxurQmSjEQicUw rlKSi+nmdd6e5JNNY1GEoxPlVr9rUIf9UiL6VB+i+yHDTGpNfbZEYSbvIe0ruvOD95Zc 7jI1dVH0Sub3tCOhG7Dj5d2XLR5l7oO3sIU6B7W4MULt2o2G20G0KUcJtywner/zxHHl FPjCzlmJfmDwOljp3iAH6ARxjrdtPZyAhTQN5+2pm9AjvfvYVV//XDwqjEE3QcwqCY/B KPBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796153720; x=1796758520; h=in-reply-to:content-disposition:content-type:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=u1xrWIa1w7NYzs5qb1magNwJP2nrX+qrf4qknIwtAgg=; b=znNkjsDqP6qM6P3mmialRdVrNg3MDXw+dSadBY+AzeEyaJwkrwEvcLcmw9zsDGUMyD VsnENf0+/U4VntM0yK6t7P4UTcj2k1amhmL55RB9TJf8OfajrR5QkUmwBP2AuM2OS9qL WMyfXOvd7khaWpt9dkw9Xt0yp5vKnKx9uimgdHTUyFrtOUx+znf3wFm/3EXScA6DUia3 AaC8JYXQiCQ1xFpprNt5DcyhhA0LfU1aQv6hHg0S1qJ83ES7pmkDXIyQc9SD9V5vUYKv FPIcerlQVMD1SQatqFSW7UfYxasuiNpvNjZbsJuZgxzRgQrVKyis096QSMKhAlQteA8C Mc/Q== X-Forwarded-Encrypted: i=1; AL+hErHmAy7GdyWfTMImQtnA+wUI5+lzksEI6jkPp4rHH7i9HIGu29AAId2S8uIWacJAI0KBKsqgh/Q=@vger.kernel.org X-Gm-Message-State: APuU4Z+lKE7HQyD25BEI2hVWRT5T4c0C7B9avZt1G+VrcW33/7s41d7x TIJCYDPERDC/i+jbxKOwvSwzx3D+d0AqQgZLZ3QAGAar8oMWAGgooSUJqi3v7BPnpplJhVz4/tZ idDD5 X-Gm-Gg: AZFdTZf2l+/08S7aot6L6EwktjqOzgE4ocOSrQl5C7JG6yekgT+jQYn2abqHr8Yg7BG Vwb6e8tZSyh+Rj54TmJqTQnDxysWVMbNziOebLYP4DaeXEjWRdEaav2aDhcst3qE071hvfDt2TJ eXPkqdBXJBcnkQOcTBN4lUKBVSal1VtJegqkcKcFVs5zXOAocBTN1NdCIIaXmywR+FzjctHtENf dBHugQHAFJj575jo8tgJPIaKYf+tlnTgqqWzmf5MJEKpbqX80b9Y2curl7huDRJ6dpcOHX8yohK Z7YK4Tp2oRhhhB6i4imwGoUXKYsmcp9rZ0fwCU8q4hOi4B33bNTjUJIco2AUzXUAB2hDsfh7q30 oVhHJEZ7Lcp5RxxBjHreWm/l8Y6WjTIbInnJApnPBtnd70UhlLM5NkMKgkE5UZb9I6WfcN6OXpg PeohFz7qpdYDw1LOsLo4oguMupt+W/6AlYf/s53Z/2ZirlNUxVZ6+Mq7t5XYJzuGYHz5qQDMnr0 g41X8KtrHqv1ze6rDDiZE5n1AdMvv/VdMxlDX2Z7kEWz2qHTZPbi7WcQ2ehQBh2P7FELzPuQONd ZECbebBo4U52tYv1ov9ww5PlboPqYy7LBOEt7GfoGA== X-Received: by 2002:a05:6a00:14cc:b0:89f:9ea6:1ddb with SMTP id d2e1a72fcca58-8c87c09e5c9mr34387740b3a.23.1796153720533; Tue, 01 Dec 2026 11:35:20 -0800 (PST) Received: from localhost ([2a03:2880:2ff:43::]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87285ccf4sm19749870b3a.12.2026.12.01.11.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 11:35:19 -0800 (PST) Date: Tue, 1 Dec 2026 11:35:19 -0800 From: Joe Damato To: Narcisa Vasile Cc: Michael Chan , Pavan Chebbi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Coco Li , Stanislav Fomichev , netdev@vger.kernel.org Subject: Re: [PATCH net v2] eth: bnxt: split TX buffers that don't fit in a single BD Message-ID: Mail-Followup-To: Joe Damato , Narcisa Vasile , Michael Chan , Pavan Chebbi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Coco Li , Stanislav Fomichev , netdev@vger.kernel.org References: <20261201030158.28732-1-narcisav.kernel@gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201030158.28732-1-narcisav.kernel@gmail.com> On Mon, Nov 30, 2026 at 07:01:58PM -0800, Narcisa Vasile wrote: > The TX BD length field is 16 bits wide. Since BIG TCP raised > tso_max_size to GSO_MAX_SIZE, skbs can exceed 64KB. > A single frag can be 64KB or larger, e.g. with MSG_ZEROCOPY from a huge > page or in the case of a frag filling a whole 64KB page on arm64. > > The driver silently truncates the length of these oversized buffers. > For example, a 65536 byte frag becomes a zero length BD, so the NIC sends > malformed LSO packets or stalls the TX queue. > > Split these buffers over multiple BDs, at the largest 4KB multiple that > fits a BD (0xF000), so that a 64KB frag (e.g. a full page on 64KB-page > systems) becomes 60KB + 4KB rather than ending with a 1-byte BD. > > Splitting can add up to 8 BDs to a GSO_MAX_SIZE skb. Raise the minimum > TX ring size (BNXT_MIN_TX_DESC_CNT) and the point at which the TX queue > is stopped, so that a packet of the largest size always fits. With > MAX_SKB_FRAGS at 17, the minimum TX ring size grows from 19 to 27 BDs. > > With CONFIG_MAX_SKB_FRAGS raised above the default, an skb can need more > data BDs than a packet can have, either because splitting added BDs or > because it has more than TX_MAX_FRAGS frags. Clear the GSO features of > such skbs in bnxt_features_check() so the stack segments them, instead > of dropping or linearizing them in bnxt_start_xmit(). nit: is the commit message above stale since the v2 removed the check? > Found by enabling BIG TCP on a Broadcom NIC host. > Tested on x86_64 with the tso.py selftest and with tcp_mmap sending > MSG_ZEROCOPY BIG TCP traffic with frags larger than 64KB. > > Fixes: b6488b161ab2 ("bnxt: Use generic HBH removal helper in tx path") idk how backports work but IIUC the patch relies on behavior introduced by commit 3cb430e62c83 ("net: bnxt: Use dma_unmap_len for TX completion unmapping"), so i think if this is backported to trees before that commit it might introduce a new bug. so i think (?) it can only be backported to 7.1 but not further back. maybe the commit message should say that and add a CC line for stable to let them know it can only be backported as far back as 7.1. As an example check [1]. [1]: https://lore.kernel.org/netdev/20260518-b4-unix-recv-wait-hotfix-v2-1-83e29ce8ad31@google.com/ All the above said: Reviewed-by: Joe Damato