|
@@ -543,7 +543,7 @@ int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
|
|
afspec, RTM_SETLINK);
|
|
afspec, RTM_SETLINK);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!(flags & BRIDGE_FLAGS_SELF)) {
|
|
|
|
|
|
|
+ if (p && !(flags & BRIDGE_FLAGS_SELF)) {
|
|
|
/* set bridge attributes in hardware if supported
|
|
/* set bridge attributes in hardware if supported
|
|
|
*/
|
|
*/
|
|
|
ret_offload = netdev_switch_port_bridge_setlink(dev, nlh,
|
|
ret_offload = netdev_switch_port_bridge_setlink(dev, nlh,
|
|
@@ -583,7 +583,7 @@ int br_dellink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
|
|
|
*/
|
|
*/
|
|
|
br_ifinfo_notify(RTM_NEWLINK, p);
|
|
br_ifinfo_notify(RTM_NEWLINK, p);
|
|
|
|
|
|
|
|
- if (!(flags & BRIDGE_FLAGS_SELF)) {
|
|
|
|
|
|
|
+ if (p && !(flags & BRIDGE_FLAGS_SELF)) {
|
|
|
/* del bridge attributes in hardware
|
|
/* del bridge attributes in hardware
|
|
|
*/
|
|
*/
|
|
|
ret_offload = netdev_switch_port_bridge_dellink(dev, nlh,
|
|
ret_offload = netdev_switch_port_bridge_dellink(dev, nlh,
|