diff options
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw_switchdev.c')
| -rw-r--r-- | drivers/net/ethernet/ti/cpsw_switchdev.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/net/ethernet/ti/cpsw_switchdev.c b/drivers/net/ethernet/ti/cpsw_switchdev.c index a72bb570756f..05a64fb7a04f 100644 --- a/drivers/net/ethernet/ti/cpsw_switchdev.c +++ b/drivers/net/ethernet/ti/cpsw_switchdev.c @@ -395,7 +395,7 @@ static void cpsw_switchdev_event_work(struct work_struct *work)  			fdb->addr, fdb->vid, fdb->added_by_user,  			fdb->offloaded, port); -		if (!fdb->added_by_user) +		if (!fdb->added_by_user || fdb->is_local)  			break;  		if (memcmp(priv->mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0)  			port = HOST_PORT_NUM; @@ -411,7 +411,7 @@ static void cpsw_switchdev_event_work(struct work_struct *work)  			fdb->addr, fdb->vid, fdb->added_by_user,  			fdb->offloaded, port); -		if (!fdb->added_by_user) +		if (!fdb->added_by_user || fdb->is_local)  			break;  		if (memcmp(priv->mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0)  			port = HOST_PORT_NUM; | 
