From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 3A9661B251A for ; Wed, 21 Aug 2024 14:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724251855; cv=none; b=qX2jEsnoXhVBT4GhVRJqrMsPQNoBKVYPJBGNKZ9Kr3W7F7zGUDUQvGdLpaW1J2h4tYtCYuyHpfn7Re43jctYf4JM3TL5SEnFpDN/7rCLLT/tSzweAtYBatavP7b/ppJy/o7f8xrE981JFKMw3jr6tpTd3gkZDufDy5zQEkLLXZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724251855; c=relaxed/simple; bh=Lz4JP4RGDLHi9RLgMyWvSGuFnZvOp5ENEyuoAWs/zpo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KTdM5UMy8mTwkDbENTSLMJgN61TDsRVhYzzH9PCXMuH+epj9lTU5E+va1b6cFRVrRZ49O7Pie5gmYx+UIbvwlhK0EjrYM6bhviXEj11eIT0UvrD6UbXN0OCkbj2uibb0kwK9v2hMfR3xdF2m8BQQwuWRRQUoCKE3J/+EK8n6G7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ecBKSrpl; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ecBKSrpl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724251852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y6RL4UN+IajAch5jP7ub0jIzRqoNQWJh8Odhf9HIiPk=; b=ecBKSrplnR/wvN3lB+9riYvk83SHHxOC9IBW/HKylT+8dGdXrnw6GtDiqrHMYq7a3H6/qm cEGqExBxigadVITNFIh7Gn7q/ECooja1ppUpzUogsTps5cr00oUYFa/OUTAT0jnlYZkFK4 BLkh+FyrvxOKIyn157yfrmarkpSUbws= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-8bQ28gR_NX6wEhzIBQXonA-1; Wed, 21 Aug 2024 10:50:51 -0400 X-MC-Unique: 8bQ28gR_NX6wEhzIBQXonA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42820c29a76so58680235e9.2 for ; Wed, 21 Aug 2024 07:50:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724251850; x=1724856650; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=y6RL4UN+IajAch5jP7ub0jIzRqoNQWJh8Odhf9HIiPk=; b=hJqWxgzUYDhemgrDakLcwtdeWt0TCoGYKNoAdJw8aD7Zf7u3ucCx/Mcv8DrmfJ0iC0 6RVDNldv8LFwSus6hNeYkUMmsmgG2tN0WYx0VQwVWfnJnrOjdQCWlWnHytnXQcmzZ6z8 vgskNitvYPlbctp7b0+q+HugvdBfp81EqD+XRcXFISFJvS1/KTxj2Nvs9sT/vT5GNgb8 CsirvIYYYORc+dKYEi4Iibs9U9Q5C4ldxsS616/ImqkWfjG5yioNFavkU5xEg47TC/R5 /DaYe1GVpicvr14R6cFYWHP/jDjRSgRK/ARUsEj3spyqb5kQNTMqZ0GDksq7rvX83AUP NTew== X-Gm-Message-State: AOJu0YxOOtNow+J3CCHULW0zqE/z1n/m+k5iL4qYhKf7qXUB56mIuLlK Qk/T/vuv9oZ6p9d6wpz2aqPMSWuL0F19HJvDjc4HZUOh7T9rr9QPZ/oi+dO4FgMCd/eAGtZJ48z 0VTrhAkEswzXIqF+w9WmFq05/lMAeaQ8GyXPDh5i0QsydSfr3RKG8vg== X-Received: by 2002:a05:600c:a0e:b0:427:ac40:d4b1 with SMTP id 5b1f17b1804b1-42abd244b8bmr17110535e9.27.1724251850378; Wed, 21 Aug 2024 07:50:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSJZTO+za0Tzl6ZmOTOOjQhPQJN9bYwFdrr8NJSzjsMoBaqfx4mSpjWqlRxORsBcqVfFoCkA== X-Received: by 2002:a05:600c:a0e:b0:427:ac40:d4b1 with SMTP id 5b1f17b1804b1-42abd244b8bmr17110235e9.27.1724251849543; Wed, 21 Aug 2024 07:50:49 -0700 (PDT) Received: from debian (2a01cb058d23d60064c1847f55561cf4.ipv6.abo.wanadoo.fr. [2a01:cb05:8d23:d600:64c1:847f:5556:1cf4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abee8bd36sm27422815e9.18.2024.08.21.07.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 07:50:49 -0700 (PDT) Date: Wed, 21 Aug 2024 16:50:47 +0200 From: Guillaume Nault To: Ido Schimmel Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, dsahern@kernel.org, fw@strlen.de, martin.lau@linux.dev, daniel@iogearbox.net, john.fastabend@gmail.com, ast@kernel.org, pablo@netfilter.org, kadlec@netfilter.org, willemdebruijn.kernel@gmail.com, bpf@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: [PATCH net-next 04/12] netfilter: rpfilter: Unmask upper DSCP bits Message-ID: References: <20240821125251.1571445-1-idosch@nvidia.com> <20240821125251.1571445-5-idosch@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240821125251.1571445-5-idosch@nvidia.com> On Wed, Aug 21, 2024 at 03:52:43PM +0300, Ido Schimmel wrote: > The rpfilter match performs a reverse path filter test on a packet by > performing a FIB lookup with the source and destination addresses > swapped. > > Unmask the upper DSCP bits of the DS field of the tested packet so that > in the future the FIB lookup could be performed according to the full > DSCP value. Reviewed-by: Guillaume Nault