From cec9ae50ccb1491efee90dc8e9998e29e43652b6 Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Fri, 11 Apr 2014 10:46:17 +0100 Subject: [PATCH] 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 Cc: Maxime Ripard Signed-off-by: Marc Zyngier Acked-by: Stefan Roese Signed-off-by: David S. Miller --- Reading git-format-patch failed