aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/virtio_net.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@gmail.com>2013-01-21 01:17:22 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-21 14:07:44 -0500
commitfa0879e37b59e8e3f130a30a9e6fa515717c5bdd (patch)
tree04a7a3b6464b582a86d8193692a1588bf7049e53 /include/uapi/linux/virtio_net.h
parentmove virtnet_send_command() above virtnet_set_mac_address() (diff)
downloadwireguard-linux-fa0879e37b59e8e3f130a30a9e6fa515717c5bdd.tar.xz
wireguard-linux-fa0879e37b59e8e3f130a30a9e6fa515717c5bdd.zip
net: split eth_mac_addr for better error handling
When we set mac address, software mac address in system and hardware mac address all need to be updated. Current eth_mac_addr() doesn't allow callers to implement error handling nicely. This patch split eth_mac_addr() to prepare part and real commit part, then we can prepare first, and try to change hardware address, then do the real commit if hardware address is set successfully. Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/virtio_net.h')
0 files changed, 0 insertions, 0 deletions