]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Simplify-DSA-handling-of-VLAN-subinterface-offload'
authorDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:46:26 +0000 (20:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:46:26 +0000 (20:46 -0700)
commit675737b76dccf563b792b1a7a464dbed2049eec7
tree12d6d044df23a3c2e8361cf4ff94df97467ac567
parenta5cfba9f35a7a2111880d52d44a92142066e5ea8
parent6246ffbe76246f6c6713d7de03948691d714c36f
Merge branch 'Simplify-DSA-handling-of-VLAN-subinterface-offload'

Vladimir Oltean says:

====================
Simplify DSA handling of VLAN subinterface offload

Depends on Vivien Didelot's patchset:
https://patchwork.ozlabs.org/project/netdev/list/?series=127197&state=*

This patchset removes a few strange-looking guards for -EOPNOTSUPP in
dsa_slave_vlan_rx_add_vid and dsa_slave_vlan_rx_kill_vid, making that
code path no longer possible.

It also disables the code path for the sja1105 driver, which does
support editing the VLAN table, but not hardware-accelerated VLAN
sub-interfaces, therefore the check in the DSA core would be wrong.
There was no better DSA callback to do this than .port_enable, i.e.
at ndo_open time.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>