All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Machata <petrm@mellanox.com>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>,
	Jiri Pirko <jiri@mellanox.com>,
	Ido Schimmel <idosch@mellanox.com>,
	David Ahern <dsa@cumulusnetworks.com>
Subject: [PATCH net-next v2 2/8] net: vrf: cycle_netdev(): Add an extack argument
Date: Thu, 6 Dec 2018 17:05:38 +0000	[thread overview]
Message-ID: <b1c4676fdf9e1343b7b962f52bda443103d061b5.1544115501.git.petrm@mellanox.com> (raw)
In-Reply-To: <cover.1544115501.git.petrm@mellanox.com>

A follow-up patch will extend dev_change_flags() with an extack
argument. Extend cycle_netdev() to have that argument available for the
conversion.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
---
 drivers/net/vrf.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 21ad4b1d7f03..1e9f2dc0de07 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -747,7 +747,8 @@ static int vrf_rtable_create(struct net_device *dev)
 /**************************** device handling ********************/
 
 /* cycle interface to flush neighbor cache and move routes across tables */
-static void cycle_netdev(struct net_device *dev)
+static void cycle_netdev(struct net_device *dev,
+			 struct netlink_ext_ack *extack)
 {
 	unsigned int flags = dev->flags;
 	int ret;
@@ -785,7 +786,7 @@ static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev,
 	if (ret < 0)
 		goto err;
 
-	cycle_netdev(port_dev);
+	cycle_netdev(port_dev, extack);
 
 	return 0;
 
@@ -815,7 +816,7 @@ static int do_vrf_del_slave(struct net_device *dev, struct net_device *port_dev)
 	netdev_upper_dev_unlink(port_dev, dev);
 	port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE;
 
-	cycle_netdev(port_dev);
+	cycle_netdev(port_dev, NULL);
 
 	return 0;
 }
-- 
2.4.11

  parent reply	other threads:[~2018-12-06 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06 17:05 [PATCH net-next v2 0/8] Pass extack to NETDEV_PRE_UP Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 1/8] net: core: dev: Add extack argument to dev_open() Petr Machata
2018-12-06 17:05 ` Petr Machata [this message]
2018-12-06 17:05 ` [PATCH net-next v2 3/8] net: ipvlan: ipvlan_set_port_mode(): Add an extack argument Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 4/8] net: core: dev: Add extack argument to dev_change_flags() Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 5/8] net: core: dev: Add extack argument to __dev_change_flags() Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 6/8] net: core: dev: Add call_netdevice_notifiers_extack() Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 7/8] net: core: dev: Attach extack to NETDEV_PRE_UP Petr Machata
2018-12-06 17:05 ` [PATCH net-next v2 8/8] selftests: mlxsw: Add a new test extack.sh Petr Machata
2018-12-06 21:31 ` [PATCH net-next v2 0/8] Pass extack to NETDEV_PRE_UP David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1c4676fdf9e1343b7b962f52bda443103d061b5.1544115501.git.petrm@mellanox.com \
    --to=petrm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=dsa@cumulusnetworks.com \
    --cc=idosch@mellanox.com \
    --cc=jiri@mellanox.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.