]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Skip calling .port_vlan_filtering on no change
authorVladimir Oltean <olteanv@gmail.com>
Sun, 28 Apr 2019 18:45:51 +0000 (21:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 03:05:29 +0000 (23:05 -0400)
commitf98113e1ee9d6b26825f3d158793a952c3dbf079
tree39e08f355cc23f18d682ea176c5bdd37d432be63
parentc76f7dca0705593e2180197974b8393a493a698e
net: dsa: Skip calling .port_vlan_filtering on no change

Even if VLAN filtering is global, DSA will call this callback once per
each port. Drivers should not have to compare the global state with the
requested change. So let DSA do it.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c