Nicolas Dichtel c4383d669c net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
commit a4f39c9f14a634e4cd35fcd338c239d11fcc73fc upstream.

The goal is to support a bpf_redirect() from an ethernet device (ingress)
to a ppp device (egress).
The l2 header is added automatically by the ppp driver, thus the ethernet
header should be removed.

CC: stable@vger.kernel.org
Fixes: 27b29f63058d ("bpf: add bpf_redirect() helper")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Siwar Zitouni <siwar.zitouni@6wind.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-23 10:47:01 +02:00
..
2022-10-26 13:17:05 +02:00
2017-09-22 16:16:41 -10:00
2018-02-22 15:42:23 +01:00
2023-08-08 19:48:23 +02:00
2018-08-03 07:50:38 +02:00
2019-11-24 08:22:48 +01:00
2021-12-08 08:46:55 +01:00
2020-04-02 16:34:21 +02:00
2018-02-22 15:42:24 +01:00
2022-10-26 13:17:08 +02:00
2019-12-17 20:38:50 +01:00
2021-03-03 18:22:46 +01:00
2022-08-25 11:11:25 +02:00
2021-02-07 14:47:41 +01:00
2021-11-26 11:40:20 +01:00
2019-12-31 12:37:21 +01:00
2021-07-11 12:48:09 +02:00
2018-02-22 15:42:23 +01:00
2023-06-21 15:38:58 +02:00
2017-09-25 08:56:05 -06:00
2023-03-17 08:30:38 +01:00
2020-03-20 10:54:12 +01:00
2019-06-11 12:21:48 +02:00
2020-04-02 16:34:36 +02:00
2018-11-13 11:15:11 -08:00
2020-04-02 16:34:36 +02:00
2021-12-14 10:16:55 +01:00