netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Davíð Steinn Geirsson" <david@dsg.is>
To: netfilter@vger.kernel.org
Subject: Hardware flowtable offload from multiple tables?
Date: Fri, 22 Aug 2025 01:58:56 +0000	[thread overview]
Message-ID: <aKfO4E3RwYl0hlIp@mailstore> (raw)

Hi all,

Please CC me on replies as I'm not subscribed to the list.

I've been trying to get hardware flowtable offload going on a ConnectX-6 DX
card. I have managed to create the flowtable (needed to create a SF interface
and apply the flowtable to that - using the PF directly does not work).

However, it seems that a device can only be referenced from one flowtable,
and the scope of the flowtable is only the current table. So if I have separate
`ip` and `ip6` table types, I can't do hardware flowtable offload from both. Is
my understanding correct? Are there any workarounds (other than changing
everything over to a combined `inet` table) available?

I can create either an `ip` or `ip6` table with offloaded flowtable, but doing
both gives "Device or resource busy" error: 
```
david@vyos01:~$ sudo nft add 'table ip test  { flowtable fttest { hook ingress priority 0; devices =  { en1f0pf1sf88 }; flags offload; }; }'
david@vyos01:~$ 
david@vyos01:~$ sudo nft add 'table ip6 test  { flowtable fttest { hook ingress priority 0; devices =  { en1f0pf1sf88 }; flags offload; }; }'
Error: Could not process rule: Device or resource busy
add table ip6 test  { flowtable fttest { hook ingress priority 0; devices =  { en1f0pf1sf88 }; flags offload; }; }
                                ^^^^^^
```

Thanks,
Davíð


                 reply	other threads:[~2025-08-22  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=aKfO4E3RwYl0hlIp@mailstore \
    --to=david@dsg.is \
    --cc=netfilter@vger.kernel.org \
    /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).