Subject: Re: [PATCH net-next v3] selftests: openvswitch: add dec_ttl action support and test

From: Aaron Conole <[email-masked]>
Date: Thu, 28 May 2026 08:15:52 -0400

Minxi Hou <[email-masked]> writes:

> Add dec_ttl action support to the OVS kernel datapath selftest
> framework:
>
>   - Add dec_ttl nested NLA class to ovs-dpctl.py with proper
>     OVS_DEC_TTL_ATTR_ACTION sub-attribute handling
>   - Add parse support for dec_ttl(le_1(<inner_actions>)) action
>     string, consistent with the odp-util.c format where le_1()
>     holds the actions taken when TTL reaches 1
>   - Add dpstr output formatting for dec_ttl actions
>   - Add test_dec_ttl() to openvswitch.sh that verifies:
>     * Normal TTL packets are forwarded after decrement
>     * TTL=1 packets are dropped (TTL expiry)
>     * Graceful skip via ksft_skip if kernel lacks dec_ttl support
>
> The dec_ttl class uses late-binding type resolution to reference
> ovsactions for its inner action list, avoiding circular references
> at class definition time.
>
> Signed-off-by: Minxi Hou <[email-masked]>
> ---

Thanks Minxi - this case will be very helpful.

Reviewed-by: Aaron Conole <[email-masked]>