]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitf317297aab6c34f104c6f5eb427e64515de6c960
tree8083d0877358fd32050950e5c0dda0d8d57b2acf
parent7d3097a9c15dd3a0a1fc84e1b6aaad7cba0e74c9
net: bcmgenet: use promisc for unsupported filters

BugLink: https://bugs.launchpad.net/bugs/1839036
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/broadcom/genet/bcmgenet.c