Skip to content

several fixes for indirect flow_blocks offload

[email protected] netdev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 3 repliesIn review
  2. v44 patches 2 repliesSuperseded
  3. v3 posting 2/24 patches 19 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/24 patches1 replySuperseded
v3 posting 1/22 patches1 replySuperseded
v2 posting 1/21 patch2 repliesSuperseded

Changes in v5 from the cover letter

patch1: place flow_indr_block_cb_alloc() right before flow_indr_dev_setup_offload() to avoid moving flow_block_indr_init()

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4flow_offload: add flow_indr_block_cb_alloc/remove functioninclude/net/flow_offload.h net/core/flow_offload.c+34 -00 replies
2/4flow_offload: use flow_indr_block_cb_alloc/remove functiondrivers/net/ethernet/broadcom/bnxt/bnxt_tc.c drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c drivers/net/ethernet/netronome/nfp/flower/main.h +3 more+44 -440 replies
3/4net: flow_offload: fix flow_indr_dev_unregister pathdrivers/net/ethernet/broadcom/bnxt/bnxt_tc.c drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c drivers/net/ethernet/netronome/nfp/flower/main.c +7 more+27 -180 replies
4/4net/sched: cls_api: fix nooffloaddevcnt warning dmesg lognet/sched/cls_api.c+14 -100 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon Horman
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v5 thread

Cover letter [PATCH net v5 0/4] several fixes for indirect flow_blocks offload

From: wenxu <[email protected]>

v2:
patch2: store the cb_priv of representor to the flow_block_cb->indr.cb_priv in the driver. And make the correct check with the statments this->indr.cb_priv == cb_priv

patch4: del the driver list only in the indriect cleanup callbacks

v3:
add the cover letter and changlogs.

v4:
collapsed 1/4, 2/4, 4/4 in v3 to one fix
Add the prepare patch 1 and 2

v5:
patch1: place flow_indr_block_cb_alloc() right before flow_indr_dev_setup_offload() to avoid moving flow_block_indr_init()

This series fixes commit 1fac52da5942 ("net: flow_offload: consolidate indirect flow_block infrastructure") that revists the flow_block infrastructure.

patch #1 #2: prepare for fix patch #3
add and use flow_indr_block_cb_alloc/remove function

patch #3: fix flow_indr_dev_unregister path
If the representor is removed, then identify the indirect flow_blocks that need to be removed by the release callback and the port representor structure. To identify the port representor structure, a new indr.cb_priv field needs to be introduced. The flow_block also needs to be removed from the driver list from the cleanup path

patch#4 fix block->nooffloaddevcnt warning dmesg log.
When a indr device add in offload success. The block->nooffloaddevcnt should be 0. After the representor go away. When the dir device go away the flow_block UNBIND operation with -EOPNOTSUPP which lead the warning demesg log.
The block->nooffloaddevcnt should always count for indr block. even the indr block offload successful. The representor maybe gone away and the ingress qdisc can work in software mode.

wenxu (4):
flow_offload: add flow_indr_block_cb_alloc/remove function
flow_offload: use flow_indr_block_cb_alloc/remove function
net: flow_offload: fix flow_indr_dev_unregister path net/sched: cls_api: fix nooffloaddevcnt warning dmesg log

 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c       | 21 +++---
 .../net/ethernet/mellanox/mlx5/core/en/rep/tc.c    | 24 ++++---
 drivers/net/ethernet/netronome/nfp/flower/main.c   |  2 +-
 drivers/net/ethernet/netronome/nfp/flower/main.h   |  7 +-
 .../net/ethernet/netronome/nfp/flower/offload.c    | 24 ++++---
 include/net/flow_offload.h                         | 21 +++++-
 net/core/flow_offload.c                            | 79 ++++++++++++----------
 net/netfilter/nf_flow_table_offload.c              |  1 +
 net/netfilter/nf_tables_offload.c                  |  1 +
 net/sched/cls_api.c                                | 25 ++++---
 10 files changed, 126 insertions(+), 79 deletions(-)
Signature · 1 line
1.8.3.1