浏览代码

Revert "bridge: also trigger RTM_NEWLINK when interface is released from bridge"

This reverts commit 00ba4cb36da682c68dc87d1703a8aaffe2b4e9c5.

Discussion with David Ahern determined that this change is
actually not needed.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 8 年之前
父节点
当前提交
eccaa9e51b
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      net/bridge/br_ioctl.c

+ 1 - 3
net/bridge/br_ioctl.c

@@ -99,10 +99,8 @@ static int add_del_if(struct net_bridge *br, int ifindex, int isadd)
 
 	if (isadd)
 		ret = br_add_if(br, dev);
-	else {
+	else
 		ret = br_del_if(br, dev);
-		rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_MASTER, GFP_KERNEL);
-	}
 
 	return ret;
 }