aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-dpaa2/ethsw
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2019-08-13 15:42:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-14 16:46:24 +0200
commit9d8cfa9d5346b133487a2466b0ebd405c3eb6d07 (patch)
tree11e2ac9772ba83cbccc16b887c3537ed92d6ec74 /drivers/staging/fsl-dpaa2/ethsw
parentstaging: rtl8723bs: remove redundant assignment to ret (diff)
downloadlinux-dev-9d8cfa9d5346b133487a2466b0ebd405c3eb6d07.tar.xz
linux-dev-9d8cfa9d5346b133487a2466b0ebd405c3eb6d07.zip
staging: fsl-dpaa2/ethsw: remove IGMP default address
Do not add an IGMP multicast address by default since we do not support Rx/Tx ar the moment. Reported-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/1565700187-16048-2-git-send-email-ioana.ciornei@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2/ethsw')
-rw-r--r--drivers/staging/fsl-dpaa2/ethsw/ethsw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c
index aac98ece2335..8032314d5cae 100644
--- a/drivers/staging/fsl-dpaa2/ethsw/ethsw.c
+++ b/drivers/staging/fsl-dpaa2/ethsw/ethsw.c
@@ -1506,7 +1506,6 @@ err_close:
static int ethsw_port_init(struct ethsw_port_priv *port_priv, u16 port)
{
- const char def_mcast[ETH_ALEN] = {0x01, 0x00, 0x5e, 0x00, 0x00, 0x01};
struct net_device *netdev = port_priv->netdev;
struct ethsw_core *ethsw = port_priv->ethsw_data;
struct dpsw_vlan_if_cfg vcfg;
@@ -1532,12 +1531,10 @@ static int ethsw_port_init(struct ethsw_port_priv *port_priv, u16 port)
err = dpsw_vlan_remove_if(ethsw->mc_io, 0, ethsw->dpsw_handle,
DEFAULT_VLAN_ID, &vcfg);
- if (err) {
+ if (err)
netdev_err(netdev, "dpsw_vlan_remove_if err %d\n", err);
- return err;
- }
- return ethsw_port_fdb_add_mc(port_priv, def_mcast);
+ return err;
}
static void ethsw_unregister_notifier(struct device *dev)