net: ethernet: ti: ale: use define for host port in cpsw_ale_set_allmulti()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Apr 2019 17:12:32 +0000 (20:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:11:49 +0000 (17:11 -0400)
Use ALE_PORT_HOST define for host port in cpsw_ale_set_allmulti() instead
of constants.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_ale.c

index 17c59fa..67dc769 100644 (file)
@@ -491,9 +491,9 @@ void cpsw_ale_set_allmulti(struct cpsw_ale *ale, int allmulti)
                        cpsw_ale_get_vlan_unreg_mcast(ale_entry,
                                                      ale->vlan_field_bits);
                if (allmulti)
-                       unreg_mcast |= 1;
+                       unreg_mcast |= ALE_PORT_HOST;
                else
-                       unreg_mcast &= ~1;
+                       unreg_mcast &= ~ALE_PORT_HOST;
                cpsw_ale_set_vlan_unreg_mcast(ale_entry, unreg_mcast,
                                              ale->vlan_field_bits);
                cpsw_ale_write(ale, idx, ale_entry);