Vlad Buslov 9bc64bd0cd net/sched: act_ct: Always fill offloading tuple iifidx
Referenced commit doesn't always set iifidx when offloading the flow to
hardware. Fix the following cases:

- nf_conn_act_ct_ext_fill() is called before extension is created with
nf_conn_act_ct_ext_add() in tcf_ct_act(). This can cause rule offload with
unspecified iifidx when connection is offloaded after only single
original-direction packet has been processed by tc data path. Always fill
the new nf_conn_act_ct_ext instance after creating it in
nf_conn_act_ct_ext_add().

- Offloading of unidirectional UDP NEW connections is now supported, but ct
flow iifidx field is not updated when connection is promoted to
bidirectional which can result reply-direction iifidx to be zero when
refreshing the connection. Fill in the extension and update flow iifidx
before calling flow_offload_refresh().

Fixes: 9795ded7f924 ("net/sched: act_ct: Fill offloading tuple iifidx")
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: 6a9bad0069cf ("net/sched: act_ct: offload UDP NEW connections")
Link: https://lore.kernel.org/r/20231103151410.764271-1-vladbu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-11-08 17:47:08 -08:00
..
2023-03-17 08:56:37 +00:00
2022-08-09 22:14:02 -07:00
2023-10-24 13:08:14 -07:00
2023-10-25 18:04:29 -07:00
2021-12-16 07:18:35 -08:00
2023-11-02 09:31:02 +01:00
2023-08-15 15:01:03 -07:00
2021-10-15 11:33:08 +01:00
2023-09-06 06:05:59 +01:00
2023-04-22 01:39:41 +02:00
2023-10-30 14:36:57 -07:00
2021-10-13 09:40:46 -07:00
2023-08-22 17:31:18 -07:00
2022-05-11 12:43:10 +01:00
2023-07-14 20:39:30 -07:00
2023-10-01 13:20:36 +01:00
2023-11-01 11:16:34 -10:00
2023-10-04 11:49:20 -07:00
2023-02-16 09:27:07 +01:00
2023-10-27 10:35:46 +01:00
2023-10-23 15:01:53 -07:00
2023-07-28 14:07:59 -07:00
2022-12-12 15:04:39 -08:00
2023-09-14 16:16:36 +02:00
2023-08-02 10:58:26 +01:00
2023-07-19 09:56:49 -07:00
2023-07-19 09:56:49 -07:00