Skip to content

Ensure egress un/bind are relayed with indirect blocks

John Hurley netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: core: rename indirect block ingress cb functioninclude/net/flow_offload.h net/core/flow_offload.c net/netfilter/nf_tables_offload.c +1 more+34 -360 replies
2/2net: sched: allow indirect blocks to bind to clsact in TCnet/sched/cls_api.c+33 -190 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJakub Kicinski
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] Ensure egress un/bind are relayed with indirect blocks

On register and unregister for indirect blocks, a command is called that sends a bind/unbind event to the registering driver. This command assumes that the bind to indirect block will be on ingress. However, drivers such as NFP have allowed binding to clsact qdiscs as well as ingress qdiscs from mainline Linux 5.2. A clsact qdisc binds to an ingress and an egress block.

Rather than assuming that an indirect bind is always ingress, modify the function names to remove the ingress tag (patch 1). In cls_api, which is used by NFP to offload TC flower, generate bind/unbind message for both ingress and egress blocks on the event of indirectly registering/unregistering from that block. Doing so mimics the behaviour of both ingress and clsact qdiscs on initialise and destroy.

This now ensures that drivers such as NFP receive the correct binder type for the indirect block registration.

John Hurley (2):
net: core: rename indirect block ingress cb function
net: sched: allow indirect blocks to bind to clsact in TC

 include/net/flow_offload.h        | 15 ++++++-----
 net/core/flow_offload.c           | 45 +++++++++++++++++----------------
 net/netfilter/nf_tables_offload.c |  6 ++---
 net/sched/cls_api.c               | 52 +++++++++++++++++++++++++--------------
 4 files changed, 65 insertions(+), 53 deletions(-)
Signature · 1 line
2.7.4