From: Patrick McLean <chutzpah@gentoo.org>
To: netfilter@vger.kernel.org
Subject: Re: nftables offload doesn't seem to work
Date: Sun, 1 Mar 2020 15:15:04 -0800 [thread overview]
Message-ID: <20200301151504.78592af2@moya.linuxfreak.ca> (raw)
In-Reply-To: <20200301151148.44bd0e5e@moya.linuxfreak.ca>
On Sun, 1 Mar 2020 15:11:48 -0800
Patrick McLean <chutzpah@gentoo.org> wrote:
> Hi,
>
> I am trying to test the nftables offload support, as describe in
> https://lwn.net/Articles/810663/
>
> When I try to load the rules, or check a rules file, nft errors out, it
> appears that it does not understand "flags offload;":
>
> # nft --check --file test.nft
> test.nft:6:51-55: Error: syntax error, unexpected flags
> type filter hook ingress device if0 priority 0; flags offload;
>
> Here is the contents of the file I am trying to load:
>
> table netdev filter_test {
> chain ingress {
> type filter hook ingress device eth0 priority 0; flags offload;
>
> 192.168.0.10 tcp dport 22 drop
Oops, copy/paste error, this line is:
ip daddr 192.168.0.10 tcp dport 22 drop
> }
> }
>
> I am using the 5.4.22 kernel with nftables 0.9.3, the hardware is mlx5:
>
> # ethtool --driver eth0
> driver: mlx5_core
> version: 5.0-0
> firmware-version: 16.23.1020 (MT_0000000012)
> expansion-rom-version:
> bus-info: 0000:61:00.0
> supports-statistics: yes
> supports-test: yes
> supports-eeprom-access: no
> supports-register-dump: no
> supports-priv-flags: yes
>
> lspci reports it as:
> 61:00.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5]
next prev parent reply other threads:[~2020-03-01 23:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-01 23:11 nftables offload doesn't seem to work Patrick McLean
2020-03-01 23:15 ` Patrick McLean [this message]
2020-03-03 13:36 ` Pablo Neira Ayuso
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=20200301151504.78592af2@moya.linuxfreak.ca \
--to=chutzpah@gentoo.org \
--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