Thread (3 messages) flat view 3 messages, 3 authors, 2021-01-18

Re: [PATCH v4 net-next] net: bridge: check vlan with eth_type_vlan() method

From: Nikolay Aleksandrov <hidden>
Date: 2021-01-18 12:11:21
Also in: bridge, lkml

On 17/01/2021 10:09, menglong8.dong@gmail.com wrote:
From: Menglong Dong <redacted>

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

Signed-off-by: Menglong Dong <redacted>
---
v4:
- remove unnecessary brackets.

v3:
- fix compile warning in br_vlan_set_proto() by casting 'val' to
  be16.

v2:
- use eth_type_vlan() in br_validate() and __br_vlan_set_proto()
  too.
---
 net/bridge/br_forward.c |  3 +--
 net/bridge/br_netlink.c | 12 +++---------
 net/bridge/br_vlan.c    |  2 +-
 3 files changed, 5 insertions(+), 12 deletions(-)
Acked-by: Nikolay Aleksandrov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help