Fernando Fernandez Mancera
8c2da73302
netfilter: nf_conncount: rework API to use sk_buff directly
...
[ Upstream commit be102eb6a0 ]
When using nf_conncount infrastructure for non-confirmed connections a
duplicated track is possible due to an optimization introduced since
commit d265929930 ("netfilter: nf_conncount: reduce unnecessary GC").
In order to fix this introduce a new conncount API that receives
directly an sk_buff struct. It fetches the tuple and zone and the
corresponding ct from it. It comes with both existing conncount variants
nf_conncount_count_skb() and nf_conncount_add_skb(). In addition remove
the old API and adjust all the users to use the new one.
This way, for each sk_buff struct it is possible to check if there is a
ct present and already confirmed. If so, skip the add operation.
Fixes: d265929930 ("netfilter: nf_conncount: reduce unnecessary GC")
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-12-18 14:00:02 +01:00
..
2025-12-07 06:27:31 +09:00
2024-10-08 15:33:49 -07:00
2024-12-09 14:44:59 -08:00
2025-07-23 17:46:56 -07:00
2025-07-01 19:17:53 -07:00
2025-12-18 14:00:02 +01:00
2025-09-10 20:30:37 +02:00
2025-11-13 15:37:12 -05:00
2025-08-08 12:54:42 -07:00
2024-10-24 16:03:40 +02:00
2025-07-25 15:29:58 -07:00
2025-07-11 16:01:17 -07:00
2025-07-11 16:01:15 -07:00
2025-01-20 12:16:04 -08:00
2025-04-24 17:03:45 -07:00
2025-07-08 18:05:25 -07:00
2025-07-07 16:55:54 -07:00
2025-07-02 14:22:02 -07:00
2025-03-24 10:26:53 +00:00
2025-08-21 09:35:20 +02:00
2025-07-08 10:59:41 +02:00
2025-10-15 12:04:13 +02:00
2025-02-27 14:03:14 +01:00
2024-10-02 17:23:23 -04:00
2025-11-13 15:37:45 -05:00
2025-05-30 19:53:51 -07:00
2024-10-02 17:23:23 -04:00
2025-11-13 15:37:21 -05:00
2025-08-12 13:23:39 -07:00
2025-07-23 17:52:07 -07:00
2025-02-11 11:58:17 +01:00
2025-06-17 17:52:01 -07:00
2025-09-14 14:28:12 -07:00
2025-10-15 12:03:48 +02:00
2024-11-13 18:49:50 -08:00
2024-10-11 15:35:05 -07:00
2025-04-15 17:54:56 -07:00
2024-10-30 17:33:53 -07:00
2025-04-29 16:22:25 +02:00
2024-12-09 14:44:59 -08:00
2025-07-24 18:34:55 -07:00
2025-03-24 13:58:22 -07:00
2024-10-25 10:44:41 +01:00
2025-03-24 12:10:13 -07:00
2025-07-02 14:32:30 -07:00
2025-11-13 15:37:29 -05:00
2025-03-18 13:18:36 +01:00
2025-11-13 15:37:29 -05:00
2025-01-06 13:49:38 -08:00
2025-11-13 15:37:29 -05:00
2024-12-17 19:37:00 -08:00
2025-04-24 09:29:56 +02:00
2025-10-15 12:03:49 +02:00
2025-07-02 14:32:30 -07:00
2025-04-29 16:22:25 +02:00
2025-10-23 16:24:29 +02:00
2025-08-13 08:34:33 +02:00
2025-10-15 12:03:54 +02:00
2025-03-21 17:36:49 +08:00
2025-03-18 13:18:36 +01:00
2025-03-25 07:31:24 -07:00
2024-10-09 08:53:01 +02:00
2025-08-13 18:18:33 -07:00
2025-04-15 17:54:56 -07:00
2024-12-06 17:43:08 -08:00
2025-07-02 14:32:30 -07:00
2025-07-22 10:43:19 +02:00
2024-10-02 17:23:23 -04:00
2025-01-20 12:20:42 +00:00
2025-07-15 12:08:39 +02:00
2024-11-09 09:04:54 -08:00
2025-04-15 08:21:46 -07:00
2025-07-10 15:27:32 -07:00
2024-11-09 13:22:57 -08:00
2025-07-17 16:25:22 -07:00
2024-11-30 13:41:50 -08:00
2025-04-14 17:08:45 -07:00
2024-10-10 08:30:22 -07:00
2025-05-22 09:42:41 -07:00
2025-03-12 13:32:35 -07:00
2025-06-10 15:27:18 -07:00
2025-04-09 17:01:51 -07:00
2024-11-21 08:28:08 -08:00
2025-07-02 15:39:04 -07:00
2025-07-23 17:46:54 -07:00
2025-04-24 09:29:56 +02:00
2025-06-13 18:17:08 -07:00
2025-01-20 09:21:27 +00:00
2025-07-10 11:08:35 +02:00
2025-06-27 15:34:19 -07:00
2025-08-27 07:43:08 -07:00
2025-10-15 12:03:49 +02:00
2025-11-13 15:37:08 -05:00
2025-04-11 18:58:10 -07:00
2025-02-21 15:28:03 -08:00
2025-08-14 17:52:29 -07:00
2025-07-04 09:32:35 +02:00
2025-04-11 18:58:10 -07:00
2025-03-16 22:05:53 -07:00
2025-12-18 13:59:19 +01:00
2025-05-05 16:48:12 -07:00
2024-11-03 12:10:11 -08:00
2025-08-06 07:32:52 +03:00
2025-07-11 11:00:57 -07:00
2025-12-01 11:46:04 +01:00
2025-06-24 16:31:36 -07:00
2025-08-01 15:14:51 -07:00
2025-06-17 18:18:46 -07:00
2025-07-14 17:19:13 -07:00
2025-02-20 15:13:45 -08:00
2025-07-10 14:48:29 +02:00
2025-11-13 15:36:53 -05:00
2025-12-01 11:45:51 +01:00
2025-04-24 17:11:52 -07:00