aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-10-20 09:08:27 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-20 09:08:27 -0400
commit26440c835f8b1a491e2704118ac55bf87334366c (patch)
tree3c2d23b59fd49b252fdbf6c09efc41b354933fc6 /net/switchdev
parent371f1c7e0d854796adc622cc3bacfcc5fc638db1 (diff)
parent1099f86044111e9a7807f09523e42d4c9d0fb781 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/usb/asix_common.c net/ipv4/inet_connection_sock.c net/switchdev/switchdev.c In the inet_connection_sock.c case the request socket hashing scheme is completely different in net-next. The other two conflicts were overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
-rw-r--r--net/switchdev/switchdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 73e3895175cf..1eb76956b439 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -19,6 +19,7 @@
19#include <linux/if_bridge.h> 19#include <linux/if_bridge.h>
20#include <linux/list.h> 20#include <linux/list.h>
21#include <linux/workqueue.h> 21#include <linux/workqueue.h>
22#include <linux/if_vlan.h>
22#include <net/ip_fib.h> 23#include <net/ip_fib.h>
23#include <net/switchdev.h> 24#include <net/switchdev.h>
24 25
@@ -846,6 +847,8 @@ static int switchdev_port_br_afspec(struct net_device *dev,
846 if (nla_len(attr) != sizeof(struct bridge_vlan_info)) 847 if (nla_len(attr) != sizeof(struct bridge_vlan_info))
847 return -EINVAL; 848 return -EINVAL;
848 vinfo = nla_data(attr); 849 vinfo = nla_data(attr);
850 if (!vinfo->vid || vinfo->vid >= VLAN_VID_MASK)
851 return -EINVAL;
849 vlan.flags = vinfo->flags; 852 vlan.flags = vinfo->flags;
850 if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) { 853 if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) {
851 if (vlan.vid_begin) 854 if (vlan.vid_begin)