netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] netfilter: payload mangling offload support
@ 2019-08-20 10:48 Pablo Neira Ayuso
  2019-08-20 19:22 ` Jakub Kicinski
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira Ayuso @ 2019-08-20 10:48 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, netdev, jakub.kicinski, jiri, vladbu

Hi,

This patchset adds payload mangling offload support for Netfilter:

1) Adapt existing drivers to allow for mangling up to four 32-bit words
   with one single flow_rule action. Hence, once single action can be
   used to mangle an IPv6 address.

2) Add support for netfilter packet mangling.

Please, apply.

Pablo Neira Ayuso (2):
  net: flow_offload: mangle 128-bit packet field with one action
  netfilter: nft_payload: packet mangling offload support

 .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c   | 44 ++++++++----
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c    | 50 +++++++++----
 drivers/net/ethernet/netronome/nfp/flower/action.c | 69 ++++++++++++------
 include/net/flow_offload.h                         |  9 ++-
 net/netfilter/nft_payload.c                        | 82 ++++++++++++++++++++++
 net/sched/cls_api.c                                |  7 +-
 6 files changed, 207 insertions(+), 54 deletions(-)

-- 
2.11.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next 0/2] netfilter: payload mangling offload support
  2019-08-20 10:48 [PATCH net-next 0/2] netfilter: payload mangling offload support Pablo Neira Ayuso
@ 2019-08-20 19:22 ` Jakub Kicinski
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2019-08-20 19:22 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel, davem, netdev, jiri, vladbu

On Tue, 20 Aug 2019 12:48:05 +0200, Pablo Neira Ayuso wrote:
> Hi,
> 
> This patchset adds payload mangling offload support for Netfilter:
> 
> 1) Adapt existing drivers to allow for mangling up to four 32-bit words
>    with one single flow_rule action. Hence, once single action can be
>    used to mangle an IPv6 address.
> 
> 2) Add support for netfilter packet mangling.

Why pick 128b as a unit, because that's nftables' word size? :/

Reality is unless core coalesces _all_ consecutive rewrites drivers 
will have to do their own coalescing, anyway.

We suffered through enough haphazard "updates", I don't like this either.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-20 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-20 10:48 [PATCH net-next 0/2] netfilter: payload mangling offload support Pablo Neira Ayuso
2019-08-20 19:22 ` Jakub Kicinski

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).