]> 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)
commitd823a0ce52a5b0e39fe8d006393afb1a9304fcd3
tree442ffe5c0037750c23a3c3956820ca09516bbf32
parentc3d950ee2e74b68083db726bff8651482d0f15c8
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