OSDN Git Service

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, 4 Aug 2019 07:34:54 +0000 (09:34 +0200)
commit7165159ddd608d6d057db85c44f67d5d0f4e874a
tree2ea57ad145e356af30b690bc826c76b2caccff32
parent0efd6f2ec0475212e446afc1d930412e586059eb
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