From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Subject: [PATCHv2 net-next 0/3] bonding: void calling rtmsg_ifinfo for netlink notifications Date: Mon, 23 Oct 2017 18:44:49 +0800 Message-ID: Cc: davem@davemloft.net, Jiri Pirko To: network dev Return-path: Received: from mail-pg0-f66.google.com ([74.125.83.66]:48630 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbdJWKpB (ORCPT ); Mon, 23 Oct 2017 06:45:01 -0400 Received: by mail-pg0-f66.google.com with SMTP id v78so11456438pgb.5 for ; Mon, 23 Oct 2017 03:45:00 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: It's better to send notifications to userspace by the events in rtnetlink_event, instead of calling rtmsg_ifinfo directly. This patcheset is to remove rtmsg_ifinfo called in bonding, the notifications can be handled by NETDEV_CHANGEUPPER and NETDEV_CHANGELOWERSTATE events in rtnetlink_event. It could also fix some redundant notifications from bonding. v1->v2: - post to net-next.git instead of net.git, for it's more like an improvement for bonding Xin Long (3): bonding: remove rtmsg_ifinfo called in bond_master_upper_dev_link rtnetlink: bring NETDEV_CHANGELOWERSTATE event process back to rtnetlink_event bonding: remove rtmsg_ifinfo called after bond_lower_state_changed drivers/net/bonding/bond_main.c | 11 +++-------- include/net/bonding.h | 4 ---- net/core/rtnetlink.c | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) -- 2.1.0