net: dev: Add extack argument to dev_set_mac_address()
authorPetr Machata <petrm@mellanox.com>
Thu, 13 Dec 2018 11:54:30 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 02:41:38 +0000 (18:41 -0800)
commit3a37a9636cf3a1af2621a33f7eef8a2a3da81030
tree39d632745b9834d8297856b8900b793ec43c45d7
parent95302c394c3de19bdf24fff5e44a2bf935eadf74
net: dev: Add extack argument to dev_set_mac_address()

A follow-up patch will add a notifier type NETDEV_PRE_CHANGEADDR, which
allows vetoing of MAC address changes. One prominent path to that
notification is through dev_set_mac_address(). Therefore give this
function an extack argument, so that it can be packed together with the
notification. Thus a textual reason for rejection (or a warning) can be
communicated back to the user.

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>
13 files changed:
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/macvlan.c
drivers/net/tap.c
drivers/net/team/team.c
drivers/net/tun.c
drivers/usb/gadget/function/u_ether.c
include/linux/netdevice.h
net/core/dev.c
net/core/dev_ioctl.c
net/core/rtnetlink.c
net/ieee802154/nl-phy.c