lkml.org 
[lkml]   [2016]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.2.y-ckt 114/218] net: mvneta: enable change MAC address when interface is up
    Date
    4.2.8-ckt7 -stable review patch.  If anyone has any objections, please let me know.

    ---8<------------------------------------------------------------

    From: Dmitri Epshtein <dima@marvell.com>

    commit 928b6519afeb2a5e2dc61154380b545ed66c476a upstream.

    Function eth_prepare_mac_addr_change() is called as part of MAC
    address change. This function check if interface is running.
    To enable change MAC address when interface is running:
    IFF_LIVE_ADDR_CHANGE flag must be set to dev->priv_flags field

    Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP
    network unit")
    Signed-off-by: Dmitri Epshtein <dima@marvell.com>
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    drivers/net/ethernet/marvell/mvneta.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
    index 060af9b..37abcde 100644
    --- a/drivers/net/ethernet/marvell/mvneta.c
    +++ b/drivers/net/ethernet/marvell/mvneta.c
    @@ -3163,7 +3163,7 @@ static int mvneta_probe(struct platform_device *pdev)
    dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
    dev->hw_features |= dev->features;
    dev->vlan_features |= dev->features;
    - dev->priv_flags |= IFF_UNICAST_FLT;
    + dev->priv_flags |= IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE;
    dev->gso_max_segs = MVNETA_MAX_TSO_SEGS;

    err = register_netdev(dev);
    --
    2.7.4
    \
     
     \ /
      Last update: 2016-03-31 23:21    [W:2.773 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site