net: enetc: use eth_broadcast_addr() to assign broadcast
authorXu Wang <vulab@iscas.ac.cn>
Thu, 9 Jul 2020 06:48:55 +0000 (06:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 19:33:36 +0000 (12:33 -0700)
This patch is to use eth_broadcast_addr() to assign broadcast address
insetad of memset().

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc_qos.c

index b8b336179d826f8ac62f445aa10a2913fbd38e05..a9939550fa8f16dd25032e69f637c77696d1e8f3 100644 (file)
@@ -511,7 +511,7 @@ static int enetc_streamid_hw_set(struct enetc_ndev_priv *priv,
 
        cbd.addr[0] = lower_32_bits(dma);
        cbd.addr[1] = upper_32_bits(dma);
-       memset(si_data->dmac, 0xff, ETH_ALEN);
+       eth_broadcast_addr(si_data->dmac);
        si_data->vid_vidm_tg =
                cpu_to_le16(ENETC_CBDR_SID_VID_MASK
                            + ((0x3 << 14) | ENETC_CBDR_SID_VIDM));