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

Nikolay Aleksandrov nikolay at nvidia.com
Mon Jan 18 11:55:11 UTC 2021


On 17/01/2021 10:09, menglong8.dong at gmail.com wrote:
> From: Menglong Dong <dong.menglong at zte.com.cn>
> 
> Replace some checks for ETH_P_8021Q and ETH_P_8021AD with
> eth_type_vlan().
> 
> Signed-off-by: Menglong Dong <dong.menglong at zte.com.cn>
> ---
> 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 <nikolay at nvidia.com>



More information about the Bridge mailing list