Nicolas Dichtel
ff70202b2d
dev_forward_skb: do not scrub skb mark within the same name space
...
The goal is to keep the mark during a bpf_redirect(), like it is done for
legacy encapsulation / decapsulation, when there is no x-netns.
This was initially done in commit 213dd74aee ("skbuff: Do not scrub skb
mark within the same name space").
When the call to skb_scrub_packet() was added in dev_forward_skb() (commit
8b27f27797 ("skb: allow skb_scrub_packet() to be used by tunnels")), the
second argument (xnet) was set to true to force a call to skb_orphan(). At
this time, the mark was always cleanned up by skb_scrub_packet(), whatever
xnet value was.
This call to skb_orphan() was removed later in commit
9c4c325252 ("skbuff: preserve sock reference when scrubbing the skb.").
But this 'true' stayed here without any real reason.
Let's correctly set xnet in ____dev_forward_skb(), this function has access
to the previous interface and to the new interface.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-06-25 11:04:39 -07:00
..
2021-04-26 16:32:11 -07:00
2021-06-04 07:37:49 -07:00
2021-04-27 14:10:15 -07:00
2021-04-30 13:04:30 -07:00
2021-05-05 12:39:29 -07:00
2021-04-26 12:30:36 -07:00
2021-06-08 09:41:16 -07:00
2021-06-03 14:19:53 -03:00
2021-06-16 15:36:47 -07:00
2021-04-26 18:16:56 +02:00
2021-05-03 23:04:01 +02:00
2021-04-26 18:16:56 +02:00
2021-04-26 18:16:56 +02:00
2021-05-18 10:11:06 +03:00
2021-05-21 06:12:52 -10:00
2021-05-18 17:24:52 +01:00
2021-05-26 06:36:13 -04:00
2021-05-19 15:24:52 +02:00
2021-06-04 13:24:16 +02:00
2021-04-26 17:04:27 +02:00
2021-05-06 19:24:11 -07:00
2021-06-14 15:55:02 +02:00
2021-05-07 00:26:33 -07:00
2021-05-08 21:49:48 -06:00
2021-05-07 00:34:51 -07:00
2021-05-06 19:24:12 -07:00
2021-05-22 15:09:07 -10:00
2021-05-15 08:52:30 -07:00
2021-05-03 11:56:23 +02:00
2021-04-29 11:57:23 -07:00
2021-05-05 11:27:24 -07:00
2021-05-24 12:45:26 -04:00
2021-05-24 12:45:26 -04:00
2021-05-01 10:14:08 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-05-21 06:12:52 -10:00
2021-05-12 20:18:46 +02:00
2021-04-30 11:20:35 -07:00
2021-05-07 00:26:34 -07:00
2021-05-13 11:00:18 -07:00
2021-05-22 15:09:07 -10:00
2021-05-05 22:54:12 +02:00
2021-05-04 11:24:46 -07:00
2021-04-29 11:41:43 -07:00
2021-05-06 19:24:12 -07:00
2021-05-06 19:24:11 -07:00
2021-05-07 00:26:32 -07:00
2021-05-21 22:12:09 +02:00
2021-05-13 20:50:23 +02:00
2021-05-11 08:12:14 -06:00
2021-05-31 10:14:49 +02:00
2021-05-25 12:21:14 +02:00
2021-06-01 17:38:40 +02:00
2021-05-07 00:26:34 -07:00
2021-05-10 16:22:27 +02:00
2021-05-20 07:59:35 -06:00
2021-05-07 00:26:34 -07:00
2021-05-07 00:26:34 -07:00
2021-05-07 00:26:33 -07:00
2021-05-05 15:52:34 +02:00
2021-05-05 11:27:27 -07:00
2021-05-17 12:31:05 +02:00
2021-06-16 09:24:42 -07:00
2021-06-16 09:24:42 -07:00
2021-04-28 17:22:10 -07:00
2021-05-06 19:24:11 -07:00
2021-05-24 15:24:33 -07:00
2021-05-07 00:26:33 -07:00
2021-04-30 11:20:39 -07:00
2021-04-30 11:20:40 -07:00
2021-05-04 08:54:29 -07:00
2021-04-26 15:03:23 -07:00
2021-04-26 10:25:03 -07:00
2021-05-05 12:39:29 -07:00
2021-04-30 11:20:41 -07:00
2021-05-09 00:29:45 +09:00
2021-05-08 10:00:11 -07:00
2021-06-09 01:49:13 -04:00
2021-05-12 12:37:14 -07:00
2021-04-28 12:37:53 -07:00
2021-05-01 18:50:44 -07:00
2021-05-01 18:50:44 -07:00
2021-04-27 14:13:24 -07:00
2021-05-05 11:27:23 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-05-22 15:09:07 -10:00
2021-06-12 13:28:50 -07:00
2021-06-16 09:24:42 -07:00
2021-05-07 00:26:33 -07:00
2021-06-25 11:04:39 -07:00
2021-05-07 11:23:41 -07:00
2021-04-26 08:51:23 -07:00
2021-04-30 11:20:42 -07:00
2021-05-14 19:41:32 -07:00
2021-04-30 11:20:41 -07:00
2021-05-25 18:37:37 -05:00
2021-05-01 10:14:08 -07:00
2021-06-05 08:58:11 -07:00
2021-05-26 13:15:55 -07:00
2021-05-10 19:14:01 +02:00
2021-04-28 15:43:58 -07:00
2021-05-06 19:24:11 -07:00
2021-05-06 19:24:11 -07:00
2021-06-15 10:59:46 -07:00
2021-05-11 09:56:11 +02:00
2021-04-28 12:00:13 -07:00
2021-05-05 13:24:11 -07:00
2021-06-16 09:24:42 -07:00
2021-06-09 19:10:22 +02:00
2021-06-03 15:47:23 +02:00
2021-05-01 18:50:44 -07:00
2021-04-27 15:50:15 -07:00
2021-05-05 11:27:23 -07:00
2021-05-21 06:12:52 -10:00
2021-06-21 16:48:11 +02:00
2021-05-09 13:07:03 -07:00
2021-06-12 13:13:08 -07:00
2021-04-28 12:37:53 -07:00
2021-05-06 19:24:11 -07:00
2021-06-16 09:24:42 -07:00
2021-05-01 18:50:44 -07:00
2021-05-31 10:14:49 +02:00
2021-04-26 22:55:12 +01:00
2021-04-29 11:06:13 -07:00
2021-05-05 11:27:22 -07:00
2021-05-03 04:55:53 -04:00
2021-05-04 04:19:59 -04:00
2021-05-05 11:27:25 -07:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:37 -07:00
2021-05-03 04:55:53 -04:00
2021-05-05 22:54:11 +02:00