diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-04-11 10:46:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-12 01:59:38 -0400 |
commit | cec9ae50ccb1491efee90dc8e9998e29e43652b6 (patch) | |
tree | a22563a221ae67e36797ac16af46403e60396df5 /drivers/tc | |
parent | 0af764e3f79afe7c758856a2a9376e8ee4f812d7 (diff) | |
download | linux-cec9ae50ccb1491efee90dc8e9998e29e43652b6.tar.gz linux-cec9ae50ccb1491efee90dc8e9998e29e43652b6.tar.bz2 linux-cec9ae50ccb1491efee90dc8e9998e29e43652b6.zip |
net: sun4i-emac: add promiscuous support
The sun4i-emac driver is rather primitive, and doesn't support
promiscuous mode. This makes usage such as bridging impossible,
which is a shame on virtualization capable HW such as the
Allwinner A20.
The fix is fairly simple: move the RX setup code to the ndo_set_rx_mode
vector, and add the required HW configuration when IFF_PROMISC is passed
by the core code.
This has been tested on a generic A20 box running a few virtual
machines hanging off a bridge with the EMAC chip as the link to the
outside world.
Cc: Stefan Roese <sr@denx.de>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions