[PATCH V4 net-next 0/6] net: hns3: enhance tc flow offload support

Jijie Shao posted 6 patches 1 day, 1 hour ago
drivers/net/ethernet/hisilicon/hns3/Makefile  |    1 +
drivers/net/ethernet/hisilicon/hns3/hnae3.h   |    3 +-
.../ethernet/hisilicon/hns3/hns3_debugfs.c    |    6 +
.../net/ethernet/hisilicon/hns3/hns3_enet.c   |    3 +-
.../hisilicon/hns3/hns3pf/hclge_debugfs.c     |  155 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_fd.c | 2593 +++++++++++++++++
.../ethernet/hisilicon/hns3/hns3pf/hclge_fd.h |   33 +
.../hisilicon/hns3/hns3pf/hclge_main.c        | 2514 +---------------
.../hisilicon/hns3/hns3pf/hclge_main.h        |    6 +
9 files changed, 2840 insertions(+), 2474 deletions(-)
create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.h
[PATCH V4 net-next 0/6] net: hns3: enhance tc flow offload support
Posted by Jijie Shao 1 day, 1 hour ago
This patchset enhances the tc flow offload support for hns3 driver:

- Patch 1: Refactor hclge_add_cls_flower() to support more actions
- Patch 2: Improve unused_tuple parameter setting for separate src/dst configuration
- Patch 3: Add support for HCLGE_FD_ACTION_SELECT_QUEUE and HCLGE_FD_ACTION_DROP_PACKET actions
- Patch 4: Add support for FLOW_DISSECTOR_KEY_IP and FLOW_DISSECTOR_KEY_ENC_KEYID dissectors
- Patch 5: Add debugfs support for dumping FD rules
- Patch 6: Move FD code to a separate file (hclge_fd.c) for better code organization

---
v3 -> v4:
  - Fix issues pointed out by Jakub Kicinski:
    a) Fix byte order issue of KEY_OPT_VNI under big-endian architectures.
    b) Fix issue where match.mask->ttl was silently ignored in FLOW_DISSECTOR_KEY_IP.
  - Use NL_SET_ERR_MSG_MOD() and extack to return errors instead of dev_err(),
    as suggested by Jakub.
  - Links:
    v3: https://lore.kernel.org/all/20260602133337.2216918-1-shaojijie@huawei.com/
    AI report: https://sashiko.dev/#/patchset/20260602133337.2216918-1-shaojijie%40huawei.com

v2 -> v3:
  - Fix issues pointed out by Simon Horman and Paolo Abeni:
    a) Fix incorrect condition for identifying unused tuples when IP/MAC
       addresses are all-zero but masks are non-zero.
    b) Fix inappropriate log output in error paths.
    c) Fix issue where tc flower supported keys did not distinguish between
       different FD modes.
    d) Fix unnecessary distinction between IPv4 and IPv6 in debugfs.
  - Links:
    v2: https://lore.kernel.org/all/20260523105449.661848-1-shaojijie@huawei.com/
    AI report: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260523105449.661848-1-shaojijie%40huawei.com

v1 -> v2:
  - Fix "restricted __le32 degrades to integer" warnings, pointed out by Jakub.
  - Fix "diagnostic behavior may be improved by adding 'format(printf, 5, 7)'"
    warnings, pointed out by Jakub.
  - Link:
    v1: https://lore.kernel.org/all/20260518093526.1109595-1-shaojijie@huawei.com/
---

Jijie Shao (6):
  net: hns3: refactor add_cls_flower to prepare for multiple actions
  net: hns3: improve the unused_tuple parameter setting
  net: hns3: support two more actions for tc flow
  net: hns3: support IP and tunnel VNI dissectors for tc flow
  net: hns3: debugfs support for dumping fd rules
  net: hns3: move fd code to a separate file

 drivers/net/ethernet/hisilicon/hns3/Makefile  |    1 +
 drivers/net/ethernet/hisilicon/hns3/hnae3.h   |    3 +-
 .../ethernet/hisilicon/hns3/hns3_debugfs.c    |    6 +
 .../net/ethernet/hisilicon/hns3/hns3_enet.c   |    3 +-
 .../hisilicon/hns3/hns3pf/hclge_debugfs.c     |  155 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_fd.c | 2593 +++++++++++++++++
 .../ethernet/hisilicon/hns3/hns3pf/hclge_fd.h |   33 +
 .../hisilicon/hns3/hns3pf/hclge_main.c        | 2514 +---------------
 .../hisilicon/hns3/hns3pf/hclge_main.h        |    6 +
 9 files changed, 2840 insertions(+), 2474 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_fd.h


base-commit: 61abe5db23f0799e602352c796de6fcf76d23b41
-- 
2.33.0