]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: control qtnfmac wireless interfaces bridging
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Thu, 9 Jan 2020 13:17:53 +0000 (16:17 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:44:00 +0000 (17:44 +0200)
commit8dc74815db1b79ea125e6da9bba95a7ddf468867
treed2bfcb6f00eed779796965b4b43284ffaab66653
parent6dc58feff18b9d86058dc38a9e59e0eb0a4e4bdb
qtnfmac: control qtnfmac wireless interfaces bridging

Bridging qtnfmac interfaces is possible only if the following two
conditions are fulfilled:
- firmware advertises proper support with QLINK_HW_CAPAB_HW_BRIDGE
- kernel is built with CONFIG_NET_SWITCHDEV support

Otherwise adding qtnfmac wireless interfaces into the same bridge
should not be allowed since packets flooded by kernel may break
internal forwarding rules between interfaces.

This patch disables adding qtnfmac wireless interfaces into the
same bridge if no support is provided either by card or by kernel.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/core.c