diff options
author | Peilin Ye <peilin.ye@bytedance.com> | 2021-07-19 16:41:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-20 07:13:51 -0700 |
commit | 727d6a8b7ef3d25080fad228b2c4a1d4da5999c6 (patch) | |
tree | 85a48b63269cf535d057218abe3beef267d60375 /scripts/gcc-goto.sh | |
parent | 7e777021780e9c373fc0c04d40b8407ce8c3b5d5 (diff) |
net/sched: act_skbmod: Skip non-Ethernet packets
Currently tcf_skbmod_act() assumes that packets use Ethernet as their L2
protocol, which is not always the case. As an example, for CAN devices:
$ ip link add dev vcan0 type vcan
$ ip link set up vcan0
$ tc qdisc add dev vcan0 root handle 1: htb
$ tc filter add dev vcan0 parent 1: protocol ip prio 10 \
matchall action skbmod swap mac
Doing the above silently corrupts all the packets. Do not perform skbmod
actions for non-Ethernet packets.
Fixes: 86da71b57383 ("net_sched: Introduce skbmod action")
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gcc-goto.sh')
0 files changed, 0 insertions, 0 deletions