Skip to content

sfc: more flexible encap matches on TC decap rules

[email protected] netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied 4/4
  2. v14 patches 2 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4sfc: release encap match in efx_tc_flow_free()drivers/net/ethernet/sfc/tc.c+15 -170 repliesApplied
2/4sfc: populate enc_ip_tos matches in MAE outer rulesdrivers/net/ethernet/sfc/mae.c drivers/net/ethernet/sfc/mae.h drivers/net/ethernet/sfc/tc.c +1 more+20 -70 repliesApplied
3/4sfc: support TC decap rules matching on enc_ip_tosdrivers/net/ethernet/sfc/tc.c drivers/net/ethernet/sfc/tc.h+133 -362 repliesApplied
4/4sfc: support TC decap rules matching on enc_src_portdrivers/net/ethernet/sfc/mae.c drivers/net/ethernet/sfc/mae.h drivers/net/ethernet/sfc/tc.c +1 more+41 -160 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/4] sfc: more flexible encap matches on TC decap rules

From: Edward Cree <[email protected]>

This series extends the TC offload support on EF100 to support optionally
matching on the IP ToS and UDP source port of the outer header in rules performing tunnel decapsulation. Both of these fields allow masked matches if the underlying hardware supports it (current EF100 hardware supports masking on ToS, but only exact-match on source port).
Given that the source port is typically populated from a hash of inner
header entropy, it's not clear whether filtering on it is useful, but since we can support it we may as well expose the capability.

Edward Cree (4):
sfc: release encap match in efx_tc_flow_free()
sfc: populate enc_ip_tos matches in MAE outer rules
sfc: support TC decap rules matching on enc_ip_tos
sfc: support TC decap rules matching on enc_src_port

 drivers/net/ethernet/sfc/mae.c |  28 ++++-
 drivers/net/ethernet/sfc/mae.h |   1 +
 drivers/net/ethernet/sfc/tc.c  | 205 +++++++++++++++++++++++----------
 drivers/net/ethernet/sfc/tc.h  |  27 +++++
 4 files changed, 197 insertions(+), 64 deletions(-)