Re: [PATCH net v1] net/mlx5: HWS: Reject unsupported remove-header action

From: Yevgeny Kliteynik

Date: Sun May 10 2026 - 04:11:01 EST


On 09-May-26 16:25, Simon Horman wrote:
On Wed, May 06, 2026 at 01:00:31AM +0100, Prathamesh Deshpande wrote:
mlx5_cmd_hws_packet_reformat_alloc() handles
MLX5_REFORMAT_TYPE_REMOVE_HDR by looking up a matching HWS remove-header
action.

If mlx5_fs_get_action_remove_header_vlan() returns NULL, the code only
logs an error and continues. The function then returns success with a NULL
HWS action stored in the packet-reformat object.

Return an error when no matching remove-header action is available.

Fixes: aecd9d1020e3 ("net/mlx5: fs, add HWS packet reformat API function")
Signed-off-by: Prathamesh Deshpande <prathameshdeshpande7@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>

Reviewed-by: Yevgeny Kliteynik <kliteyn@xxxxxxxxxx>