From: Edward Cree <ecree.xilinx@gmail.com>
To: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>,
edward.cree@amd.com
Cc: linux-net-drivers@amd.com, davem@davemloft.net, kuba@kernel.org,
pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org,
habetsm.xilinx@gmail.com
Subject: Re: [PATCH net-next 5/5] sfc: add offloading of 'foreign' TC (decap) rules
Date: Wed, 22 Mar 2023 22:35:44 +0000 [thread overview]
Message-ID: <b3ec1f69-eeb0-9c5c-7fdc-e520bd63385f@gmail.com> (raw)
In-Reply-To: <4553b684-56ec-fe81-1692-b11e10914941@gmail.com>
On 15/03/2023 14:43, Edward Cree wrote:
> On 15/03/2023 10:11, Michal Swiatkowski wrote:
>> On Tue, Mar 14, 2023 at 05:35:25PM +0000, edward.cree@amd.com wrote:
>>> +enum efx_encap_type efx_tc_indr_netdev_type(struct net_device *net_dev)
>>> +{
>>> + if (netif_is_vxlan(net_dev))
>>> + return EFX_ENCAP_TYPE_VXLAN;
>>> + if (netif_is_geneve(net_dev))
>>> + return EFX_ENCAP_TYPE_GENEVE;
>> netif_is_gretap or NVGRE isn't supported?
>
> It should be supported, the hardware can handle it.
> I'll add it in v2, and test to make sure it actually works ;)
Fun discovery: while the hardware supports NVGRE, it can *only*
match on the VSID field, not the whole GRE Key.
TC flower, meanwhile, neither knows nor cares about NVGRE; gretap
decap rules expect to match on the full 32-bit Key field, and you
can't even mask them (there's no TCA_FLOWER_KEY_ENC_KEY_ID_MASK
in the uAPI), meaning the driver can't just require the FlowID is
masked out and shift the rest.
So enabling this support is nontrivial; I've decided to leave it
out of the series and just remove all mention of NVGRE for now.
prev parent reply other threads:[~2023-03-22 22:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 17:35 [PATCH net-next 0/5] sfc: support TC decap rules edward.cree
2023-03-14 17:35 ` [PATCH net-next 1/5] sfc: add notion of match on enc keys to MAE machinery edward.cree
2023-03-15 6:19 ` Michal Swiatkowski
2023-03-15 13:45 ` Edward Cree
2023-03-14 17:35 ` [PATCH net-next 2/5] sfc: handle enc keys in efx_tc_flower_parse_match() edward.cree
2023-03-15 9:01 ` Michal Swiatkowski
2023-03-15 13:48 ` Edward Cree
2023-03-14 17:35 ` [PATCH net-next 3/5] sfc: add functions to insert encap matches into the MAE edward.cree
2023-03-15 9:23 ` Michal Swiatkowski
2023-03-15 13:58 ` Edward Cree
2023-03-14 17:35 ` [PATCH net-next 4/5] sfc: add code to register and unregister encap matches edward.cree
2023-03-15 9:43 ` Michal Swiatkowski
2023-03-15 14:01 ` Edward Cree
2023-03-14 17:35 ` [PATCH net-next 5/5] sfc: add offloading of 'foreign' TC (decap) rules edward.cree
2023-03-14 20:29 ` kernel test robot
2023-03-15 10:11 ` Michal Swiatkowski
2023-03-15 14:43 ` Edward Cree
2023-03-22 22:35 ` Edward Cree [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3ec1f69-eeb0-9c5c-7fdc-e520bd63385f@gmail.com \
--to=ecree.xilinx@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=edward.cree@amd.com \
--cc=habetsm.xilinx@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=michal.swiatkowski@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).