2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-31 22:47:21 +01:00
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-19 09:41:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-11 14:05:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-11 18:09:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-01 07:11:00 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-12 12:23:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-18 14:18:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-09-08 10:16:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
2019-06-19 09:41:04 +03:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-14 21:18:12 +01:00
|
|
|
|
|
|
|
|
|
2022-11-11 14:05:14 +01:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-11 18:09:07 +03:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
2023-08-01 07:11:00 +05:30
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-12 12:23:13 +02:00
|
|
|
|
|
|
|
|
|
2022-07-18 14:18:12 +02:00
|
|
|
|
|
|
|
|
|
2022-09-08 10:16:43 -07:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 16:09:06 +01:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-04 16:09:04 +01:00
|
|
|
|
2020-03-19 15:47:21 +02:00
|
|
|
|
2022-10-21 00:58:39 -07:00
|
|
|
|
2019-02-02 12:50:50 +01:00
|
|
|
|
|
|
|
|
|
2019-05-04 04:46:16 -07:00
|
|
|
|
2019-05-04 04:46:22 -07:00
|
|
|
|
2019-07-09 10:30:48 +03:00
|
|
|
|
2020-03-12 12:23:06 +02:00
|
|
|
|
2019-07-23 15:33:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-01 08:53:16 +08:00
|
|
|
|
2021-03-24 02:30:49 +01:00
|
|
|
|
2022-02-24 10:29:07 +00:00
|
|
|
|
|
|
|
|
|
2022-03-15 13:02:09 +02:00
|
|
|
|
|
|
|
|
|
2022-07-04 22:44:04 +02:00
|
|
|
|
2019-06-27 10:55:02 +00:00
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
2020-05-06 20:34:50 +02:00
|
|
|
|
2020-05-20 19:18:10 +01:00
|
|
|
|
|
|
|
|
|
2020-03-10 16:49:08 +01:00
|
|
|
|
|
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-06 20:34:50 +02:00
|
|
|
|
|
|
|
|
|
2020-05-20 19:18:10 +01:00
|
|
|
|
2020-03-10 16:49:08 +01:00
|
|
|
|
2020-03-07 12:40:11 +01:00
|
|
|
|
2019-09-13 18:28:39 +03:00
|
|
|
|
|
|
|
|
|
2020-02-25 11:45:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-06 15:54:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
2021-12-17 19:16:19 +01:00
|
|
|
|
2023-02-18 00:36:13 +02:00
|
|
|
|
2023-02-18 00:36:14 +02:00
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2019-09-13 18:28:39 +03:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-15 13:02:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-26 16:01:09 +02:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-13 18:28:39 +03:00
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
2019-08-04 16:09:04 +01:00
|
|
|
|
2022-10-21 00:58:39 -07:00
|
|
|
|
2020-03-19 15:47:21 +02:00
|
|
|
|
2019-02-02 12:50:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-04 04:46:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-06 15:54:21 +08:00
|
|
|
|
2019-07-09 10:30:48 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-12 12:23:09 +02:00
|
|
|
|
2019-07-09 10:30:48 +03:00
|
|
|
|
2020-03-12 12:23:06 +02:00
|
|
|
|
net/sched: act_ct: Support restoring conntrack info on skbs
Provide an API to restore the ct state pointer.
This may be used by drivers to restore the ct state if they
miss in tc chain after they already did the hardware connection
tracking action (ct_metadata action).
For example, consider the following rule on chain 0 that is in_hw,
however chain 1 is not_in_hw:
$ tc filter add dev ... chain 0 ... \
flower ... action ct pipe action goto chain 1
Packets of a flow offloaded (via nf flow table offload) by the driver
hit this rule in hardware, will be marked with the ct metadata action
(mark, label, zone) that does the equivalent of the software ct action,
and when the packet jumps to hardware chain 1, there would be a miss.
CT was already processed in hardware. Therefore, the driver's miss
handling should restore the ct state on the skb, using the provided API,
and continue the packet processing in chain 1.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-12 12:23:07 +02:00
|
|
|
|
2020-03-12 12:23:06 +02:00
|
|
|
|
|
|
|
|
|
2021-01-27 16:32:46 +02:00
|
|
|
|
2020-03-12 12:23:06 +02:00
|
|
|
|
2019-07-23 15:33:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-01 08:53:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-24 02:30:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
2023-02-18 00:36:13 +02:00
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-03 16:18:33 -07:00
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-04 04:46:18 -07:00
|
|
|
|
2021-08-03 11:40:18 +02:00
|
|
|
|
2019-05-04 04:46:18 -07:00
|
|
|
|
|
|
|
|
|
2024-04-10 11:47:17 +00:00
|
|
|
|
2019-05-04 04:46:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-24 10:29:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-10 11:11:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
treewide: Remove uninitialized_var() usage
Using uninitialized_var() is dangerous as it papers over real bugs[1]
(or can in the future), and suppresses unrelated compiler warnings
(e.g. "unused variable"). If the compiler thinks it is uninitialized,
either simply initialize the variable or make compiler changes.
In preparation for removing[2] the[3] macro[4], remove all remaining
needless uses with the following script:
git grep '\buninitialized_var\b' | cut -d: -f1 | sort -u | \
xargs perl -pi -e \
's/\buninitialized_var\(([^\)]+)\)/\1/g;
s:\s*/\* (GCC be quiet|to make compiler happy) \*/$::g;'
drivers/video/fbdev/riva/riva_hw.c was manually tweaked to avoid
pathological white-space.
No outstanding warnings were found building allmodconfig with GCC 9.3.0
for x86_64, i386, arm64, arm, powerpc, powerpc64le, s390x, mips, sparc64,
alpha, and m68k.
[1] https://lore.kernel.org/lkml/20200603174714.192027-1-glider@google.com/
[2] https://lore.kernel.org/lkml/CA+55aFw+Vbj0i=1TGqCR5vQkCzWJ0QxK6CernOU6eedsudAixw@mail.gmail.com/
[3] https://lore.kernel.org/lkml/CA+55aFwgbgqhbp1fkxvRKEpzyR5J8n1vKT1VZdz9knmPuXhOeg@mail.gmail.com/
[4] https://lore.kernel.org/lkml/CA+55aFz2500WfbKXAx8s67wrm9=yVJu65TpLgN_ybYNv0VEOKA@mail.gmail.com/
Reviewed-by: Leon Romanovsky <leonro@mellanox.com> # drivers/infiniband and mlx4/mlx5
Acked-by: Jason Gunthorpe <jgg@mellanox.com> # IB
Acked-by: Kalle Valo <kvalo@codeaurora.org> # wireless drivers
Reviewed-by: Chao Yu <yuchao0@huawei.com> # erofs
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-06-03 13:09:38 -07:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-19 13:58:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2021-08-19 13:58:42 +03:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2020-05-06 20:34:50 +02:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2020-05-20 19:18:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-06 20:34:50 +02:00
|
|
|
|
2020-03-10 16:49:09 +01:00
|
|
|
|
2020-05-20 19:18:10 +01:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
2020-03-10 16:49:09 +01:00
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-10 16:49:09 +01:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
2020-03-19 16:26:23 -07:00
|
|
|
|
2020-03-10 16:49:09 +01:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
2020-03-10 16:49:09 +01:00
|
|
|
|
|
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
|
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
2020-03-16 18:42:11 -07:00
|
|
|
|
2020-03-07 12:40:13 +01:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 10:52:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-09 17:33:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 10:52:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-09 17:33:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 10:52:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-04 13:28:35 +08:00
|
|
|
|
2024-04-11 10:52:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-19 14:01:07 +08:00
|
|
|
|
2019-02-02 12:50:47 +01:00
|
|
|
|
2020-03-28 16:37:43 +01:00
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-19 14:01:07 +08:00
|
|
|
|
|
|
|
|
|
2020-03-28 16:37:43 +01:00
|
|
|
|
2019-02-02 12:50:47 +01:00
|
|
|
|
2019-02-13 00:23:52 +00:00
|
|
|
|
|
|
|
|
|
2020-06-19 14:01:07 +08:00
|
|
|
|
2019-02-13 00:23:52 +00:00
|
|
|
|
2020-03-28 16:37:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-02 12:50:47 +01:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
2019-07-09 22:55:40 +02:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-27 01:45:28 +03:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:46 +02:00
|
|
|
|
2019-08-26 16:45:01 +03:00
|
|
|
|
2019-07-09 22:55:43 +02:00
|
|
|
|
2019-07-19 18:20:16 +02:00
|
|
|
|
2019-07-09 22:55:43 +02:00
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
2020-07-11 00:55:03 +03:00
|
|
|
|
2021-08-17 20:05:18 +03:00
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 00:55:03 +03:00
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
|
|
|
|
|
2020-06-18 20:49:10 +08:00
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
2019-07-09 22:55:43 +02:00
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
|
|
|
|
|
2020-06-18 20:49:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 00:55:03 +03:00
|
|
|
|
|
|
|
|
|
2020-06-18 20:49:10 +08:00
|
|
|
|
2020-06-18 20:49:08 +08:00
|
|
|
|
2019-07-09 22:55:42 +02:00
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:16 +02:00
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
2019-07-09 22:55:43 +02:00
|
|
|
|
2019-07-09 22:55:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-18 20:49:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
2019-07-09 22:55:48 +02:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
2019-07-19 18:20:15 +02:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:39 +02:00
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: sched: propagate "skip_sw" flag to struct flow_cls_common_offload
Background: switchdev ports offload the Linux bridge, and most of the
packets they handle will never see the CPU. The ports between which
there exists no hardware data path are considered 'foreign' to switchdev.
These can either be normal physical NICs without switchdev offload, or
incompatible switchdev ports, or virtual interfaces like veth/dummy/etc.
In some cases, an offloaded filter can only do half the work, and the
rest must be handled by software. Redirecting/mirroring from the ingress
of a switchdev port towards a foreign interface is one example of
combined hardware/software data path. The most that the switchdev port
can do is to extract the matching packets from its offloaded data path
and send them to the CPU. From there on, the software filter runs
(a second time, after the first run in hardware) on the packet and
performs the mirred action.
It makes sense for switchdev drivers which allow this kind of "half
offloading" to sense the "skip_sw" flag of the filter/action pair, and
deny attempts from the user to install a filter that does not run in
software, because that simply won't work.
In fact, a mirred action on a switchdev port towards a dummy interface
appears to be a valid way of (selectively) monitoring offloaded traffic
that flows through it. IFF_PROMISC was also discussed years ago, but
(despite initial disagreement) there seems to be consensus that this
flag should not affect the destination taken by packets, but merely
whether or not the NIC discards packets with unknown MAC DA for local
processing.
[1] https://lore.kernel.org/netdev/20190830092637.7f83d162@ceranb/
[2] https://lore.kernel.org/netdev/20191002233750.13566-1-olteanv@gmail.com/
Suggested-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/netdev/ZxUo0Dc0M5Y6l9qF@shredder.mtl.com/
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20241023135251.1752488-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-23 16:52:46 +03:00
|
|
|
|
2019-07-09 22:55:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-12 15:25:16 +02:00
|
|
|
|
2019-07-09 22:55:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-17 19:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-12 15:25:15 +02:00
|
|
|
|
2021-12-17 19:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-09 22:55:49 +02:00
|
|
|
|
2026-02-04 13:28:35 +08:00
|
|
|
|
2019-07-09 22:55:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-19 18:20:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 00:55:03 +03:00
|
|
|
|
2020-06-18 20:49:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-07 09:13:52 +08:00
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
|
|
|
|
|
2020-06-18 20:49:10 +08:00
|
|
|
|
2020-07-11 00:55:03 +03:00
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-06 17:31:29 +02:00
|
|
|
|
2020-05-29 02:25:35 +02:00
|
|
|
|
2019-02-02 12:50:43 +01:00
|
|
|
|