From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796510738; b=wPVGW2f/eC0LYYrwqPf9CMGs1R9JiXJLWj9G+POknjZ65QviBYCrhcZpeKXyhzX+/TsT Tt+jFWy5mOGWDjtse33qUpJL+NuHOjpwFb3zfZsxkT+pJQJhSA4QyU2r8xqTqEh4zGBc0 ASOOa5/PlznmDXPZXbq5YEA6pvm6upl4tGxClvPgJtcnLw+VLcEjZ/NdWmIPjHzFi90pR wZmm8MEXQp92VZMOlz24emAgzC6EpDmC6RidMnyqeXrEwWoOh7aRY8SOyYeTWEfnRcMHf OGcvuLeQblZM93l5QWJvCPciwPQ+nmX4wQIIKXxfuA1/XG0C9XRl4Eib/3UhFHoNj5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796510738; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=YjbXzzfgGv+x7rGCAgl+oMCLWQAO2ilpCaoKza0/h2M=; b=MOC9O4b5c8lR4H2gIyl+84viK3jjiZKUAOcRt4G04dcFMWzEh9De8KtAUxj+pBelE/uN UR3slrTptmxHhOQMoJlWLcGAnAwKVHE+CSbcTQKVEic5BfML5bDE8pAC8ch9x+yDkqSqK WkgjmoWAB56eUT7irDCe5IFxHbYDHG+LYeNqLMF1tyn4hUd4pAi+VpQa1Gb3vOJM8M+E2 uhi0fZvu5XFgY0PjwrIrnFEfi+4cJx0lMFDYT3FSFjqXsTRJvNqjkUdKjD+zqbDnMVSlU nCb3nMqtnYwOr+zxzU1V8g1A1/+W0YgT9J+ci+DAP1qQPIg2/wAR9gh/QNpFovPR+LA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GzYlCu0q; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 21C17606A335; Sat, 5 Dec 2026 22:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GzYlCu0q Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC3601F00936; Sat, 5 Dec 2026 22:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796510737; bh=YjbXzzfgGv+x7rGCAgl+oMCLWQAO2ilpCaoKza0/h2M=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GzYlCu0qhsQRQvbpTdwLKvFCnx+HNbn8UrtdN6b5SFwlMZx48K+LhnlkiNtWQpRSB Lnz+MkUwGVAUSZ1H4d0yTKdIx8hkk3Wjs0wB52quQOLW4EVF236XTY2waEQviWMvvO Ho0WBqF9kCopxq68v3B/rsNlWoAbLyNOO+cY3TMEpeZlymGkPR+fRQgIjcdcN4i000 N1LEcc8H+yrqtIwVnaYc+otoaD1hWu/ieRN00cfxVIhNllsta8xgotxRiOdadZqe49 JMfv5re4FTmTtsKjpIaKhIZxIAvSqCJOpQ/FJ8WlpdUFg6CSWRGKRqIsPz89p7RcHf g8HRvkGO4L3/Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v5 2/2] selftests: net: check TCP IP IDs across tunnels after GRO and GSO Reply-To: sashiko-reviews@lists.linux.dev To: "Julius Bairaktaris" Cc: linux-rdma@vger.kernel.org, bpf@vger.kernel.org In-Reply-To: <6580073c5293d9335859765d104213f255c64222.1796423663.git.julius@bairaktaris.de> References: <6580073c5293d9335859765d104213f255c64222.1796423663.git.julius@bairaktaris.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 22:45:37 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] selftests: net: tcp_fixedid.sh log_test_skip() calls omit skip reasons - [Low] selftests: net: tcp_fixedid main() misorders AF_PACKET ETH_P_ALL bind() -- commit 21a7a0a4ebf6a70ecb61c1ce948c930ffa3b36d6 Author: Julius Bairaktaris selftests: net: check TCP IP IDs across tunnels after GRO and GSO This commit adds a networking selftest (tcp_fixedid.c and tcp_fixedid.sh) that sends TCP segments with fixed or incrementing IPv4 IDs through GRO and software GSO across IPIP, GRE, VXLAN, 6in4, and netdevsim-offloaded ESP tunnels and verifies the resulting inner and outer IPv4 IDs. > diff --git a/tools/testing/selftests/net/tcp_fixedid.c b/tools/testing/se= lftests/net/tcp_fixedid.c > new file mode 100644 > index 0000000000000..6013d4606de7b > --- /dev/null > +++ b/tools/testing/selftests/net/tcp_fixedid.c [ ... ] > + fd =3D socket(AF_PACKET, SOCK_RAW, htons(tx ? 0 : ETH_P_ALL)); > + if (fd < 0) > + error(1, errno, "socket"); > + sll.sll_family =3D AF_PACKET; > + sll.sll_protocol =3D htons(ETH_P_ALL); > + sll.sll_ifindex =3D if_nametoindex(ifname); > + if (!sll.sll_ifindex) > + error(1, errno, "%s", ifname); > + if (rx) > + rx_setup(fd); > + if (bind(fd, (struct sockaddr *)&sll, sizeof(sll))) > + error(1, errno, "bind"); [Severity: Low] Does setting sll.sll_protocol to htons(ETH_P_ALL) and calling bind() unconditionally defeat passing protocol 0 to socket() in TX mode? In packet_do_bind(), the non-zero sll_protocol registers an ETH_P_ALL receive hook on ifname for TX sockets as well, queuing unrelated ingress frames into the unread receive queue until close() and invoking dev_queue_xmit_nit() on every sent frame. In RX mode, passing ETH_P_ALL to socket() before rx_setup() and bind() also opens a brief wildcard receive window across all interfaces before PACKET_IGNORE_OUTGOING and bind() restrict the socket. Because packet_set_ring() re-registers that active wildcard hook and tp_drops is not cleared on bind(), an oversized frame or drop on another interface during setup can cause a spurious failure in do_rx(). Opening the socket with protocol 0 in both modes, running rx_setup(), and calling bind() with htons(ETH_P_ALL) only in RX mode avoids both issues. > diff --git a/tools/testing/selftests/net/tcp_fixedid.sh b/tools/testing/s= elftests/net/tcp_fixedid.sh > new file mode 100755 > index 0000000000000..3d30459747196 > --- /dev/null > +++ b/tools/testing/selftests/net/tcp_fixedid.sh [ ... ] > +run_encap() { > + local type=3D$1 family=3D$2 want=3D$3 > + local r0mac t0 laddr=3D10.2.0.1 raddr=3D10.2.0.2 > + local f=3D"" > + > + setup || { log_test_skip "encap $type IPv$family"; return; } > + if [ "$family" =3D 6 ]; then > + laddr=3Dfd02::1 > + raddr=3Dfd02::2 > + fi > + if ! tunnel "$NRTR" tun0 "$type" "$family" "$laddr" "$raddr"; then > + log_test_skip "encap $type IPv$family" [Severity: Low] Should these log_test_skip() calls include the reason for skipping (such as setup or tunnel creation failure), as the later skips in run_esp() do? log_test_skip() in lib.sh clears retmsg and prints only its arguments, so a skipped subtest gives no indication of which prerequisite was missing. The same applies to the setup and link creation skips in run_decap(), run_encap_decap(), run_6in4(), and run_esp(). In addition, run_encap(), run_decap(), and run_6in4() omit their variant ($want, $fixed, and $outer) from these skip labels, producing identical skip lines for distinct subtests. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796423662.gi= t.julius@bairaktaris.de?part=3D2