net: ftmac100: handle netdev flags IFF_PROMISC and IFF_ALLMULTI
authorSergei Antonov <saproj@gmail.com>
Mon, 16 Jan 2023 18:27:16 +0000 (21:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 13:03:40 +0000 (13:03 +0000)
commit75943bc9701bdd438aa0513c4fcb51923e020289
treefc67bd22a01542ea4e88475791cc283021abd662
parent9259f6b573cf17c00f50c4b626983a5347b1abe9
net: ftmac100: handle netdev flags IFF_PROMISC and IFF_ALLMULTI

When netdev->flags has IFF_PROMISC or IFF_ALLMULTI, set the
corresponding bits in the MAC Control Register (MACCR).

This change is based on code from the ftgmac100 driver, see
ftgmac100_start_hw() in ftgmac100.c

Signed-off-by: Sergei Antonov <saproj@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftmac100.c