Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v7 0/2] selftests: openvswitch: SCTP flow key parsing
@ 2026-07-29  6:45 Minxi Hou
  2026-07-29  6:45 ` [PATCH 1/2] selftests/net/openvswitch: add SCTP flow key parsing to ovs-dpctl.py Minxi Hou
  2026-07-29  6:45 ` [PATCH 2/2] selftests/net/openvswitch: add SCTP flow key test Minxi Hou
  0 siblings, 2 replies; 3+ messages in thread
From: Minxi Hou @ 2026-07-29  6:45 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, aconole, echaudro, i.maximets, dev,
	linux-kselftest, shuah, horms, linux-kernel, Minxi Hou

Add OVS_KEY_ATTR_SCTP to the ovskey parse table in ovs-dpctl.py so
that SCTP flow strings carry the L4 key through to the kernel, and
add a matching selftest in openvswitch.sh.

The missing parse-table entry caused a selftest NIPA failure: the
flow string "sctp(dst=4443)" parsed without error but silently
dropped the L4 key, producing a flow with only ipv4(proto=132).
The kernel's match_validate() then rejected it with -EINVAL because
OVS_KEY_ATTR_SCTP was missing for IPPROTO_SCTP.

Changes from v6:
  - Trim unit tests to cover only the new SCTP key parser
    (removed tests for TCP/UDP/ICMP/IPv4/EthType which were out of
    scope for this patch); address Aaron's feedback that testing
    existing parsers was excessive for a selftest tool.
  - _parse_flow() now checks for unparsed remainder.

v6: https://lore.kernel.org/netdev/20260724150624.3457427-1-houminxi@gmail.com/
v5: https://lore.kernel.org/netdev/20260723215630.2502169-1-houminxi@gmail.com/
v4: https://lore.kernel.org/netdev/20260723162503.1790998-1-houminxi@gmail.com/
v3: https://lore.kernel.org/netdev/20260722214915.4128292-1-houminxi@gmail.com/
v2: https://lore.kernel.org/netdev/20260721190648.2713156-1-houminxi@gmail.com/
v1: https://lore.kernel.org/netdev/20260718215437.3257200-1-houminxi@gmail.com/

Minxi Hou (2):
  selftests/net/openvswitch: add SCTP flow key parsing to ovs-dpctl.py
  selftests/net/openvswitch: add SCTP flow key test

 .../testing/selftests/net/openvswitch/openvswitch.sh   | 121 +++++++++++++++++
 .../testing/selftests/net/openvswitch/ovs-dpctl.py     |  82 ++++++++++++
 2 files changed, 203 insertions(+)

--
2.55.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-29  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29  6:45 [PATCH net-next v7 0/2] selftests: openvswitch: SCTP flow key parsing Minxi Hou
2026-07-29  6:45 ` [PATCH 1/2] selftests/net/openvswitch: add SCTP flow key parsing to ovs-dpctl.py Minxi Hou
2026-07-29  6:45 ` [PATCH 2/2] selftests/net/openvswitch: add SCTP flow key test Minxi Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox