[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1464600944-30782-1-git-send-email-Wojciech.Dubowik@neratec.com>
Date: Mon, 30 May 2016 11:35:44 +0200
From: Wojciech Dubowik <Wojciech.Dubowik@...atec.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
Wojciech Dubowik <Wojciech.Dubowik@...atec.com>
Subject: [PATCH net] net: dsa: mv88e6xxx: Fix port forwarding mask
Port's vlan table is specified by bit mask and not by number.
Only 4.4.x kernels are affected.
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@...atec.com>
---
drivers/net/dsa/mv88e6xxx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c
index 2dea39b..3e074d4 100644
--- a/drivers/net/dsa/mv88e6xxx.c
+++ b/drivers/net/dsa/mv88e6xxx.c
@@ -2150,7 +2150,7 @@ static int mv88e6xxx_setup_port(struct dsa_switch *ds, int port)
* database, and allow every port to egress frames on all other ports.
*/
reg = BIT(ps->num_ports) - 1; /* all ports */
- ret = _mv88e6xxx_port_vlan_map_set(ds, port, reg & ~port);
+ ret = _mv88e6xxx_port_vlan_map_set(ds, port, reg & ~BIT(port));
if (ret)
goto abort;
--
1.9.1
Powered by blists - more mailing lists