summaryrefslogtreecommitdiffstats
path: root/net/compat.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-03-01 10:37:25 -0800
committerDavid S. Miller <davem@davemloft.net>2019-03-03 20:45:52 -0800
commitd6af21a4fb5fff2f6640feb011902212e658414d (patch)
tree9f5fd31dafddf37ef48d165db35e01e823c0ed22 /net/compat.c
parenta5f1512d0b860ce0dfea684d953898a4803e6b4a (diff)
downloadlinux-stable-d6af21a4fb5fff2f6640feb011902212e658414d.tar.gz
linux-stable-d6af21a4fb5fff2f6640feb011902212e658414d.tar.bz2
linux-stable-d6af21a4fb5fff2f6640feb011902212e658414d.zip
net: dsa: Use prepare/commit phase in dsa_slave_vlan_rx_add_vid()
We were skipping the prepare phase which causes some problems with at least a couple of drivers: - mv88e6xxx chooses to skip programming VID = 0 with -EOPNOTSUPP in the prepare phase, but we would still try to force this VID since we would only call the commit phase and so we would get the driver to return -EINVAL instead - qca8k does not currently have a port_vlan_add() callback implemented, yet we would try to call that unconditionally leading to a NPD Fix both issues by conforming to the current model doing a prepare/commit phase, this makes us consistent throughout the code and assumptions. Reported-by: Heiner Kallweit <hkallweit1@gmail.com> Reported-by: Michal Vokáč <michal.vokac@ysoft.com> Fixes: 061f6a505ac3 ("net: dsa: Add ndo_vlan_rx_{add, kill}_vid implementation") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions