]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 18:45:57 +0000 (11:45 -0700)
commit37f1af4bc3a73cc59b46ec7f3e0f17364d3f642b
tree442ffe5c0037750c23a3c3956820ca09516bbf32
parentd0963c113b34c0dfc4fe28a19a03581e10922c25
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