Skip to content

fix push_nsh() validation + silence selftest warnings

Adrian Yip linux-kernel-mentees stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests: openvswitch: Fix escape chars in regexp.tools/testing/selftests/net/openvswitch/ovs-dpctl.py+8 -80 replies
2/2net: openvswitch: fix middle attribute validation in push_nsh() actionnet/openvswitch/flow_netlink.c+10 -30 replies

Reviews trailers per patch

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

PatchAaron ConoleEelco Chaudron
1/2R-b
2/2R-b A-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 6.6.y 0/2] fix push_nsh() validation + silence selftest warnings

Hi maintainers,

This is a v6.6 backport mainly for an upstream commit `5ace7ef87f05 net:
openvswitch: fix middle attribute validation in push_nsh() action`.

I built the kernel then tested it with selftest. The selftest that ran with a a bunch of SyntaxWarning.

Example:
/ovs-dpctl.py:598: SyntaxWarning: invalid escape sequence '\d'

    actstr, ":", "(\d+)", int, False
  /ovs-dpctl.py:601: SyntaxWarning: invalid escape sequence '\d'
    actstr, "-", "(\d+)", int, False
  /ovs-dpctl.py:505: SyntaxWarning: invalid escape sequence '\d'
    elif parse_starts_block(actstr, "^(\d+)", False, True):

This error was then easily fixed with another minimal backport for the file tools/testing/selftests/net/openvswitch/ovs-dpctl.py. Hence the series.

Both patches was applied cleanly and was tested with selftest and passed though the timeout had to be increased for drop_reason to pass.

Adrian Moreno (1):
selftests: openvswitch: Fix escape chars in regexp.

Ilya Maximets (1):
net: openvswitch: fix middle attribute validation in push_nsh() action

 net/openvswitch/flow_netlink.c                   | 13 ++++++++++---
 .../selftests/net/openvswitch/ovs-dpctl.py       | 16 ++++++++--------
 2 files changed, 18 insertions(+), 11 deletions(-)
Signature · 1 line
2.52.0