Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (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 4BC4B342146 for ; Wed, 3 Dec 2025 16:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.145.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777834; cv=none; b=khm6DoO4Zb88CpvImJzafJsMHjzU3kyzjvVu97wqGC0mIB0GatHOo3L9E1xeLKEuZDZMX4Vg71lqxIvpCffGVpN7zUHsXve9guFW3HXRIjgrsfPvJBXDruNRrlu9WaI5hHvFCla9/fjZrwwmTmaS6KcYHzGrwC6tHUkQpYAs/eU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777834; c=relaxed/simple; bh=7KkKG378b9JRT4tvDmQ33QUe8ZhTeAld66ZSp25iBfE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bkgoT51VhZz+JftlIdS0Jhkg5ms1lpuKrhBEgTRXtn6K/UXugPBAJXbHZ2ZPVcmn03+DXx0dbxQYTR/IIk/jSmayTQSCKyyXdBqaQ8p1pJ11GH4ZGi52xTowPg3sGu+6SFVJtK53F466TMXEHI3PeR9XlC5njlWd6zc21AJSlzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com; spf=pass smtp.mailfrom=meta.com; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b=q41PqCVO; arc=none smtp.client-ip=67.231.145.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b="q41PqCVO" Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5B3FX3gP3744841; Wed, 3 Dec 2025 08:03:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=s2048-2025-q2; bh=775/ur+2F/qbl+aiP52Hbr40OQpK7M+56CdVzCXg/yo=; b=q41PqCVO1SiG 8d3DnVo/hMi5MIumHoLfWugBsYDTUDF5P+aArAcuzqP4G9cepuFLcFYm3tk+kg3M gGgRGk6X4lrD9gurd+Smefo9KJRGC5HOm8udItpbh7RCetqzPb5XiXQkGzL2a/oJ 7lUhvq7xqmcc4BLOIj/DR85cQWq4OkIBEGrQvnpA/mwbr4ceOaxhW6Yl8SuICSrp WnS3/XxDfl7qJotmR+IzjbBlLWwyF8XNBwtybukG5DZ1kE4mO3/QPkDJobRrdGCV R0rArpdyAsOzyo1Z5kxJFox7N4oFSalcRWKRmwatTUItxe/9aBphOoXq/YWBvhnL 1UiEbNO3hQ== Received: from maileast.thefacebook.com ([163.114.135.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 4atf69un7q-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 03 Dec 2025 08:03:46 -0800 (PST) Received: from devbig003.atn7.facebook.com (2620:10d:c0a8:1b::30) by mail.thefacebook.com (2620:10d:c0a9:6f::8fd4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.29; Wed, 3 Dec 2025 16:03:44 +0000 From: Chris Mason To: "Michael S. Tsirkin" CC: Chris Mason , Simon Horman , "Daniel Jurgens" , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v13 11/12] virtio_net: Add support for TCP and UDP ethtool rules Date: Wed, 3 Dec 2025 08:02:48 -0800 Message-ID: <20251203160252.516141-1-clm@meta.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251203083305-mutt-send-email-mst@kernel.org> References: Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjAzMDEyNyBTYWx0ZWRfX/wRHnxwjtw0/ pJx0R2uGJAylMH7GIJ9/s860XWCwysrp5A547tHfUecO2eYJWd/S+fp6YOKHKUX+tt7dbHWOIWf 2CFTz1Z32bR6BL/9uaO+jWdmaFDft6aOiuBxd7iGrb+NInQJ8wEmvJ0rZA0lJAdlF3e2a0CBqgm cH0+6EZQeJRxs6rVkzb2+pn6EQUmpg+Nqoq4LAHvCJc1LBp/BiEdAgD8ArIHpOZ+who0Lipwc04 mOZXVWpXMyb+766AjGx0L2a4/VIAw7xEkG+tSMDb+qVdxQWRRfaG2yK2NuTvfpg6GXuj6o08Ncl 3VwP3USbN+4TgT6wGXpzDohmX78CEFqYFt1BQZXl/dyQ9AbNBa7XBS5kQ8WP4rjya+TGtpMwUpz 0MoL5qatpvwafx061uQWp+j4bUCAvA== X-Proofpoint-GUID: DHimFOAyM1mpklZCE5b7PZFA_n2XuQNQ X-Authority-Analysis: v=2.4 cv=IrYTsb/g c=1 sm=1 tr=0 ts=69305f62 cx=c_pps a=MfjaFnPeirRr97d5FC5oHw==:117 a=MfjaFnPeirRr97d5FC5oHw==:17 a=wP3pNCr1ah4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=9R54UkLUAAAA:8 a=NEAV23lmAAAA:8 a=20KFwNOVAAAA:8 a=NvQyTCM08Br6FijgrkcA:9 a=5hNPEnYuNAgA:10 a=YTcpBFlVQWkNscrzJ_Dz:22 X-Proofpoint-ORIG-GUID: DHimFOAyM1mpklZCE5b7PZFA_n2XuQNQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-03_02,2025-11-27_02,2025-10-01_01 On Wed, 3 Dec 2025 08:33:53 -0500 "Michael S. Tsirkin" wrote: > On Tue, Dec 02, 2025 at 03:55:39PM +0000, Simon Horman wrote: > > On Wed, Nov 26, 2025 at 01:35:38PM -0600, Daniel Jurgens wrote: > > > > ... > > > > > @@ -6005,6 +6085,11 @@ static void parse_ip4(struct iphdr *mask, struct iphdr *key, > > > mask->tos = l3_mask->tos; > > > key->tos = l3_val->tos; > > > } > > > + > > > + if (l3_mask->proto) { > > > + mask->protocol = l3_mask->proto; > > > + key->protocol = l3_val->proto; > > > + } > > > } > > > > Hi Daniel, > > > > Claude Code with review-prompts flags an issue here, > > which I can't convince myself is not the case. > > > > If parse_ip4() is called for a IP_USER_FLOW, which use ethtool_usrip4_spec, > > as does this function, then all is well. > > > > However, it seems that it may also be called for TCP_V4_FLOW and UDP_V4_FLOW > > flows, in which case accessing .proto will overrun the mask and key which > > are actually struct ethtool_tcpip4_spec. > > > > https://netdev-ai.bots.linux.dev/ai-review.html?id=51d97b85-5ca3-4cb8-a96a-0d6eab5e7196#patch-10 > > > Oh I didn't know about this one. Is there any data on how does it work? > Which model/prompt/etc? I'm not actually sure if the netdev usage is written up somewhere? The automation is running claude, but (hopefully) there's nothing specific to claude in the prompts, it's just what I've been developing against. The prompts are: https://github.com/masoncl/review-prompts Jakub also wired up semcode indexing, which isn't required but does make it easier for claude to find code: https://github.com/facebookexperimental/semcode I'm still working on docs and easy setup for semcode and the review prompts, but please feel free to send questions. -chris