Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switchdev: check if the vlan id is in the proper vlan range
VLANs 0 and 4095 are reserved and shouldn't be used, add checks to switchdev similar to the bridge. Also make sure ids above 4095 cannot be passed either. Fixes: 47f8328 ("switchdev: add new switchdev bridge setlink") Signed-off-by: Nikolay Aleksandrov <[email protected]> Acked-by: Scott Feldman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information