]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/sched: cls_api: Fix flow action initialization
authorOz Shlomo <ozsh@nvidia.com>
Tue, 19 Jul 2022 12:24:09 +0000 (15:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2022 09:54:27 +0000 (10:54 +0100)
commitc0f47c2822aadeb8b2829f3e4c3792f184c7be33
tree0627944e9f924c863319ac5b55c384564578b32d
parent3b15b3e93e405828c0b38df15439d9a851468d98
net/sched: cls_api: Fix flow action initialization

The cited commit refactored the flow action initialization sequence to
use an interface method when translating tc action instances to flow
offload objects. The refactored version skips the initialization of the
generic flow action attributes for tc actions, such as pedit, that allocate
more than one offload entry. This can cause potential issues for drivers
mapping flow action ids.

Populate the generic flow action fields for all the flow action entries.

Fixes: c54e1d920f04 ("flow_offload: add ops to tc_action_ops for flow action setup")
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
----
v1 -> v2:
 - coalese the generic flow action fields initialization to a single loop
Reviewed-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c