mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 701-net-0233-enetc-Enable-live-mac-addr-change-for-PF.patch
1 From 9a963c982be787902892354a6ad669a5644b8338 Mon Sep 17 00:00:00 2001
2 From: Claudiu Manoil <claudiu.manoil@nxp.com>
3 Date: Mon, 16 Sep 2019 19:22:08 +0300
4 Subject: [PATCH] enetc: Enable live mac addr change for PF
5
6 Use device flag IFF_LIVE_ADDR_CHANGE to signal that
7 the device supports changing the primary mac address
8 for a ENETC port, when the PF eth interface is running.
9 This capability is required by certain applications,
10 like bonding mode 6 (Adaptive Load Balancing).
11
12 Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
13 ---
14 drivers/net/ethernet/freescale/enetc/enetc_pf.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c
18 +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
19 @@ -744,7 +744,7 @@ static void enetc_pf_netdev_setup(struct
20 ndev->features &= ~NETIF_F_HW_CSUM;
21 }
22
23 - ndev->priv_flags |= IFF_UNICAST_FLT;
24 + ndev->priv_flags |= IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE;
25
26 if (si->hw_features & ENETC_SI_F_QBV)
27 priv->active_offloads |= ENETC_F_QBV;