]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: check vlan with eth_type_vlan() method
authorMenglong Dong <dong.menglong@zte.com.cn>
Sun, 17 Jan 2021 08:09:50 +0000 (16:09 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 18 Jan 2021 22:27:33 +0000 (14:27 -0800)
commite4df315a86fa120701e6d297c4d9e23b7aed1e65
tree61770e8c5befaf4ecc6aa0f2e556e05e6485b7be
parent81ffc3fac1719521a3926336d741b4f8f5ec325a
net: bridge: check vlan with eth_type_vlan() method

Replace some checks for ETH_P_8021Q and ETH_P_8021AD with
eth_type_vlan().

Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://lore.kernel.org/r/20210117080950.122761-1-dong.menglong@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_forward.c
net/bridge/br_netlink.c
net/bridge/br_vlan.c