ath79/mikrotik: use routerbootpart partitions
[oweals/openwrt.git] / target / linux / layerscape / patches-5.4 / 809-jailhouse-0015-ivshmem-net-add-MAC-changing-interface.patch
1 From f5dbd1fdd5bf0a85bda432066855f563105fbf9d Mon Sep 17 00:00:00 2001
2 From: Henning Schild <henning.schild@siemens.com>
3 Date: Wed, 27 Sep 2017 12:59:49 +0200
4 Subject: [PATCH] ivshmem-net: add MAC changing interface
5
6 Allow ifconfig, ip and other such tools to change the MAC of the
7 virtual NIC.
8
9 Signed-off-by: Henning Schild <henning.schild@siemens.com>
10 Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
11 (cherry picked from commit 7744d59d11101f75afaa6f550cabba38c2c0d260)
12 ---
13  drivers/net/ivshmem-net.c | 12 +++++++-----
14  1 file changed, 7 insertions(+), 5 deletions(-)
15
16 --- a/drivers/net/ivshmem-net.c
17 +++ b/drivers/net/ivshmem-net.c
18 @@ -685,12 +685,14 @@ static void ivshm_net_poll_controller(st
19  #endif
20  
21  static const struct net_device_ops ivshm_net_ops = {
22 -       .ndo_open       = ivshm_net_open,
23 -       .ndo_stop       = ivshm_net_stop,
24 -       .ndo_start_xmit = ivshm_net_xmit,
25 -       .ndo_change_mtu = ivshm_net_change_mtu,
26 +       .ndo_open               = ivshm_net_open,
27 +       .ndo_stop               = ivshm_net_stop,
28 +       .ndo_start_xmit         = ivshm_net_xmit,
29 +       .ndo_change_mtu         = ivshm_net_change_mtu,
30 +       .ndo_set_mac_address    = eth_mac_addr,
31 +       .ndo_validate_addr      = eth_validate_addr,
32  #ifdef CONFIG_NET_POLL_CONTROLLER
33 -       .ndo_poll_controller = ivshm_net_poll_controller,
34 +       .ndo_poll_controller    = ivshm_net_poll_controller,
35  #endif
36  };
37