Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [net v2 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port
@ 2020-08-21 13:49 Murali Karicheri
2020-08-21 13:49 ` [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: " Murali Karicheri
2020-08-21 19:59 ` [net v2 PATCH 1/2] net: ethernet: ti: cpsw: " Jesse Brandeburg
0 siblings, 2 replies; 5+ messages in thread
From: Murali Karicheri @ 2020-08-21 13:49 UTC (permalink / raw)
To: davem, kuba, grygorii.strashko, nsekhar, linux-omap, netdev,
linux-kernel
To flush the vid + mc entries from ALE, which is required when a VLAN
interface is removed, driver needs to call cpsw_ale_flush_multicast()
with ALE_PORT_HOST for port mask as these entries are added only for
host port. Without this, these entries remain in the ALE table even
after removing the VLAN interface. cpsw_ale_flush_multicast() calls
cpsw_ale_flush_mcast which expects a port mask to do the job.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
---
v2: Dropped 3/3 and re-sending as it need more work
drivers/net/ethernet/ti/cpsw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 9b17bbbe102f..4a65edc5a375 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -1116,7 +1116,7 @@ static int cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev,
HOST_PORT_NUM, ALE_VLAN, vid);
ret |= cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast,
0, ALE_VLAN, vid);
- ret |= cpsw_ale_flush_multicast(cpsw->ale, 0, vid);
+ ret |= cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid);
err:
pm_runtime_put(cpsw->dev);
return ret;
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port
2020-08-21 13:49 [net v2 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port Murali Karicheri
@ 2020-08-21 13:49 ` Murali Karicheri
2020-08-21 20:00 ` Jesse Brandeburg
2020-08-21 19:59 ` [net v2 PATCH 1/2] net: ethernet: ti: cpsw: " Jesse Brandeburg
1 sibling, 1 reply; 5+ messages in thread
From: Murali Karicheri @ 2020-08-21 13:49 UTC (permalink / raw)
To: davem, kuba, grygorii.strashko, nsekhar, linux-omap, netdev,
linux-kernel
To flush the vid + mc entries from ALE, which is required when a VLAN
interface is removed, driver needs to call cpsw_ale_flush_multicast()
with ALE_PORT_HOST for port mask as these entries are added only for
host port. Without this, these entries remain in the ALE table even
after removing the VLAN interface. cpsw_ale_flush_multicast() calls
cpsw_ale_flush_mcast which expects a port mask to do the job.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
---
v2: Dropped 3/3 and re-sending as it need more work
drivers/net/ethernet/ti/cpsw_new.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/cpsw_new.c b/drivers/net/ethernet/ti/cpsw_new.c
index 1247d35d42ef..8d0a2bc7128d 100644
--- a/drivers/net/ethernet/ti/cpsw_new.c
+++ b/drivers/net/ethernet/ti/cpsw_new.c
@@ -1044,7 +1044,7 @@ static int cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev,
HOST_PORT_NUM, ALE_VLAN, vid);
cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast,
0, ALE_VLAN, vid);
- cpsw_ale_flush_multicast(cpsw->ale, 0, vid);
+ cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid);
err:
pm_runtime_put(cpsw->dev);
return ret;
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port
2020-08-21 13:49 ` [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: " Murali Karicheri
@ 2020-08-21 20:00 ` Jesse Brandeburg
2020-08-24 11:09 ` Murali Karicheri
0 siblings, 1 reply; 5+ messages in thread
From: Jesse Brandeburg @ 2020-08-21 20:00 UTC (permalink / raw)
To: Murali Karicheri
Cc: davem, kuba, grygorii.strashko, nsekhar, linux-omap, netdev,
linux-kernel
Murali Karicheri wrote:
> To flush the vid + mc entries from ALE, which is required when a VLAN
> interface is removed, driver needs to call cpsw_ale_flush_multicast()
> with ALE_PORT_HOST for port mask as these entries are added only for
> host port. Without this, these entries remain in the ALE table even
> after removing the VLAN interface. cpsw_ale_flush_multicast() calls
> cpsw_ale_flush_mcast which expects a port mask to do the job.
>
> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Patch looks good but please resend with a Fixes: tag.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port
2020-08-21 20:00 ` Jesse Brandeburg
@ 2020-08-24 11:09 ` Murali Karicheri
0 siblings, 0 replies; 5+ messages in thread
From: Murali Karicheri @ 2020-08-24 11:09 UTC (permalink / raw)
To: Jesse Brandeburg
Cc: davem, kuba, grygorii.strashko, nsekhar, linux-omap, netdev,
linux-kernel
On 8/21/20 4:00 PM, Jesse Brandeburg wrote:
> Murali Karicheri wrote:
>
>> To flush the vid + mc entries from ALE, which is required when a VLAN
>> interface is removed, driver needs to call cpsw_ale_flush_multicast()
>> with ALE_PORT_HOST for port mask as these entries are added only for
>> host port. Without this, these entries remain in the ALE table even
>> after removing the VLAN interface. cpsw_ale_flush_multicast() calls
>> cpsw_ale_flush_mcast which expects a port mask to do the job.
>>
>> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
>
> Patch looks good but please resend with a Fixes: tag.
>
Sure will do
--
Murali Karicheri
Texas Instruments
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [net v2 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port
2020-08-21 13:49 [net v2 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port Murali Karicheri
2020-08-21 13:49 ` [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: " Murali Karicheri
@ 2020-08-21 19:59 ` Jesse Brandeburg
1 sibling, 0 replies; 5+ messages in thread
From: Jesse Brandeburg @ 2020-08-21 19:59 UTC (permalink / raw)
To: Murali Karicheri
Cc: davem, kuba, grygorii.strashko, nsekhar, linux-omap, netdev,
linux-kernel
Murali Karicheri wrote:
> To flush the vid + mc entries from ALE, which is required when a VLAN
> interface is removed, driver needs to call cpsw_ale_flush_multicast()
> with ALE_PORT_HOST for port mask as these entries are added only for
> host port. Without this, these entries remain in the ALE table even
> after removing the VLAN interface. cpsw_ale_flush_multicast() calls
> cpsw_ale_flush_mcast which expects a port mask to do the job.
>
> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Patch makes sense. Please resend with a Fixes: tag.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-24 11:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21 13:49 [net v2 PATCH 1/2] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port Murali Karicheri
2020-08-21 13:49 ` [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: " Murali Karicheri
2020-08-21 20:00 ` Jesse Brandeburg
2020-08-24 11:09 ` Murali Karicheri
2020-08-21 19:59 ` [net v2 PATCH 1/2] net: ethernet: ti: cpsw: " Jesse Brandeburg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).