net: netcp: ethss: k2g: add promiscuous mode support
authorWingMan Kwok <w-kwok2@ti.com>
Tue, 17 Apr 2018 21:30:42 +0000 (17:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:00:58 +0000 (21:00 -0400)
commit8585661b1a4c6924c4c7e7abe9beec0bcf53eab7
tree628a9a38b2cd2be982bdfa7df64093f76018eace
parent0542a87c546726510e7a572b16c5493ca42024c4
net: netcp: ethss: k2g: add promiscuous mode support

This patch adds support for promiscuous mode in k2g's network
driver. When upper layer instructs to transition from
non-promiscuous mode to promiscuous mode or vice versa
K2G network driver needs to configure ALE accordingly
so that in case of non-promiscuous mode, ALE will not flood
all unicast packets to host port, while in promiscuous
mode, it will pass all received unicast packets to
host port.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c