Skip to content

sfc: bare bones TC offload

[email protected] netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 11 repliesApplied 6/6
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Add missing 'static' on declarations (kernel test robot, sparse)

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6sfc: bind blocks for TC offload on EF100drivers/net/ethernet/sfc/Makefile drivers/net/ethernet/sfc/ef100_netdev.c drivers/net/ethernet/sfc/ef100_nic.c +5 more+224 -21 replyApplied
2/6sfc: bind indirect blocks for TC offload on EF100drivers/net/ethernet/sfc/tc.c drivers/net/ethernet/sfc/tc_bindings.c drivers/net/ethernet/sfc/tc_bindings.h+84 -10 repliesApplied
3/6sfc: optional logging of TC offload errorsdrivers/net/ethernet/sfc/ef100_ethtool.c drivers/net/ethernet/sfc/ethtool_common.c drivers/net/ethernet/sfc/ethtool_common.h +2 more+61 -010 repliesApplied
4/6sfc: add a hashtable for offloaded TC rulesdrivers/net/ethernet/sfc/ef100_rep.c drivers/net/ethernet/sfc/ef100_rep.h drivers/net/ethernet/sfc/tc.c +1 more+123 -20 repliesApplied
5/6sfc: interrogate MAE capabilities at probe timedrivers/net/ethernet/sfc/mae.c drivers/net/ethernet/sfc/mae.h drivers/net/ethernet/sfc/tc.c +1 more+93 -00 repliesApplied
6/6sfc: bare bones TC offload on EF100drivers/net/ethernet/sfc/mae.c drivers/net/ethernet/sfc/mae.h drivers/net/ethernet/sfc/mcdi.h +2 more+397 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/6] sfc: bare bones TC offload

From: Edward Cree <[email protected]>

This series begins the work of supporting TC flower offload on EF100 NICs. This is the absolute minimum viable TC implementation to get traffic to
VFs and allow them to be tested; it supports no match fields besides ingress port, no actions besides mirred and drop, and no stats.
More matches, actions, and counters will be added in subsequent patches.

Changed in v2:
- Add missing 'static' on declarations (kernel test robot, sparse)

Edward Cree (6):
sfc: bind blocks for TC offload on EF100
sfc: bind indirect blocks for TC offload on EF100
sfc: optional logging of TC offload errors
sfc: add a hashtable for offloaded TC rules
sfc: interrogate MAE capabilities at probe time
sfc: bare bones TC offload on EF100

 drivers/net/ethernet/sfc/Makefile         |   2 +-
 drivers/net/ethernet/sfc/ef100_ethtool.c  |   2 +
 drivers/net/ethernet/sfc/ef100_netdev.c   |   4 +
 drivers/net/ethernet/sfc/ef100_nic.c      |   3 +
 drivers/net/ethernet/sfc/ef100_rep.c      |  18 +-
 drivers/net/ethernet/sfc/ef100_rep.h      |   1 +
 drivers/net/ethernet/sfc/ethtool_common.c |  37 ++
 drivers/net/ethernet/sfc/ethtool_common.h |   2 +
 drivers/net/ethernet/sfc/mae.c            | 165 +++++++++
 drivers/net/ethernet/sfc/mae.h            |  14 +
 drivers/net/ethernet/sfc/mcdi.h           |  10 +
 drivers/net/ethernet/sfc/net_driver.h     |   2 +
 drivers/net/ethernet/sfc/tc.c             | 430 +++++++++++++++++++++-
 drivers/net/ethernet/sfc/tc.h             |  36 ++
 drivers/net/ethernet/sfc/tc_bindings.c    | 228 ++++++++++++
 drivers/net/ethernet/sfc/tc_bindings.h    |  29 ++
 16 files changed, 980 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/ethernet/sfc/tc_bindings.c
 create mode 100644 drivers/net/ethernet/sfc/tc_bindings.h