Mostly simple overlapping changes. For example, David Ahern's adjacency list revamp in 'net-next' conflicted with an adjacency list traversal bug fix in 'net'.
Showing the changes to net/switchdev/switchdev.c (1 of 1707 files). Show all
Unified · Split
| @@ -768,6 +768,9 @@ int switchdev_port_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, · 767 unmodified lines | ||
| 768 | 768 | u32 mask = BR_LEARNING | BR_LEARNING_SYNC | BR_FLOOD; |
| 769 | 769 | int err; |
| 770 | 770 | |
| 771 | + if (!netif_is_bridge_port(dev)) | |
| 772 | + return -EOPNOTSUPP; | |
| 773 | + | |
| 771 | 774 | err = switchdev_port_attr_get(dev, &attr); |
| 772 | 775 | if (err && err != -EOPNOTSUPP) |
| 773 | 776 | return err; |
| @@ -923,6 +926,9 @@ int switchdev_port_bridge_setlink(struct net_device *dev, · 149 unmodified lines | ||
| 923 | 926 | struct nlattr *afspec; |
| 924 | 927 | int err = 0; |
| 925 | 928 | |
| 929 | + if (!netif_is_bridge_port(dev)) | |
| 930 | + return -EOPNOTSUPP; | |
| 931 | + | |
| 926 | 932 | protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), |
| 927 | 933 | IFLA_PROTINFO); |
| 928 | 934 | if (protinfo) { |
| @@ -956,6 +962,9 @@ int switchdev_port_bridge_dellink(struct net_device *dev, · 27 unmodified lines | ||
| 956 | 962 | { |
| 957 | 963 | struct nlattr *afspec; |
| 958 | 964 | |
| 965 | + if (!netif_is_bridge_port(dev)) | |
| 966 | + return -EOPNOTSUPP; | |
| 967 | + | |
| 959 | 968 | afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), |
| 960 | 969 | IFLA_AF_SPEC); |
| 961 | 970 | if (afspec) |