net: ethernet: ti: am65-cpsw-nuss: restore vlan configuration while down/up
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Jun 2020 18:17:04 +0000 (21:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:06:18 +0000 (17:06 -0700)
commit7bcffde02152dd3cb180f6f3aef27e8586b2a905
tree2a4f82105fc9a8050d2d2280a8e4990bfab817b6
parentb8483ecaf72ee9059dcca5de969781028a550f89
net: ethernet: ti: am65-cpsw-nuss: restore vlan configuration while down/up

The vlan configuration is not restored after interface down/up sequence.

Steps to check:
 # ip link add link eth0 name eth0.100 type vlan id 100
 # ifconfig eth0 down
 # ifconfig eth0 up

This patch fixes it, restoring vlan ALE entries on .ndo_open().

Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-nuss.c