net: bcmgenet: use promisc for unsupported filters
authorJustin Chen <justinpopo6@gmail.com>
Wed, 17 Jul 2019 21:58:53 +0000 (14:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 18:45:57 +0000 (11:45 -0700)
commit35cbef9863640f06107144687bd13151bc2e8ce3
tree442ffe5c0037750c23a3c3956820ca09516bbf32
parent49d05fe2c9d1b4a27761c9807fec39b8155bef9e
net: bcmgenet: use promisc for unsupported filters

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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c