commit | 87aaf2caed8496404d3809edc30d38d4a4a5d273 | [log] [tgz] |
---|---|---|
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | Mon Oct 12 14:31:01 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 13 04:43:24 2015 -0700 |
tree | ed9ac3f950aca975ce8fc23c8b8fa047d41d05c6 | |
parent | 1f225031fee6c39cbbf2a6c79cb150ff63f0556c [diff] |
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: 47f8328bb1a4 ("switchdev: add new switchdev bridge setlink") Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Acked-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>