]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: bcmgenet: use promisc for unsupported filters
authorJustin Chen <justinpopo6@gmail.com>
Wed, 17 Jul 2019 21:58:53 +0000 (14:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:26 +0000 (08:28 +0200)
commit17f782cc4039d48436587b897658937158c2ef33
treebd6f4633cf1edd30b0c528fc74dde5f4d4d132b8
parent847b4237cfa6512dad7117207f1c5dcebeba35ec
net: bcmgenet: use promisc for unsupported filters

[ Upstream commit 35cbef9863640f06107144687bd13151bc2e8ce3 ]

Currently we silently ignore filters if we cannot meet the filter
requirements. This will lead to the MAC dropping packets that are
expected to pass. A better solution would be to set the NIC to promisc
mode when the required filters cannot be met.

Also correct the number of MDF filters supported. It should be 17,
not 16.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/genet/bcmgenet.c