Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ipvlan: ipvlan_set_port_mode(): Add an extack argument

A follow-up patch will extend dev_change_flags() with an extack
argument. Extend ipvlan_set_port_mode() 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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Petr Machata and committed by
David S. Miller
cf7686a0 dc1aea1e

+4 -3
+4 -3
drivers/net/ipvlan/ipvlan_main.c
··· 71 71 ARRAY_SIZE(ipvl_nfops)); 72 72 } 73 73 74 - static int ipvlan_set_port_mode(struct ipvl_port *port, u16 nval) 74 + static int ipvlan_set_port_mode(struct ipvl_port *port, u16 nval, 75 + struct netlink_ext_ack *extack) 75 76 { 76 77 struct ipvl_dev *ipvlan; 77 78 struct net_device *mdev = port->dev; ··· 499 498 if (data[IFLA_IPVLAN_MODE]) { 500 499 u16 nmode = nla_get_u16(data[IFLA_IPVLAN_MODE]); 501 500 502 - err = ipvlan_set_port_mode(port, nmode); 501 + err = ipvlan_set_port_mode(port, nmode, extack); 503 502 } 504 503 505 504 if (!err && data[IFLA_IPVLAN_FLAGS]) { ··· 673 672 if (data && data[IFLA_IPVLAN_MODE]) 674 673 mode = nla_get_u16(data[IFLA_IPVLAN_MODE]); 675 674 676 - err = ipvlan_set_port_mode(port, mode); 675 + err = ipvlan_set_port_mode(port, mode, extack); 677 676 if (err) 678 677 goto unlink_netdev; 679 678