On Tue, Sep 28, 2021 at 7:49 AM Vladimir Oltean <vladimir.olt...@nxp.com> wrote: > > The Freescale TSEC can be a DSA master, and the ports of the attached > DSA switch can have different MAC addresses compared to the TSEC. > Nonetheless, the TSEC must receive the packets on behalf of those switch > ports. Therefore, implement the promiscuous mode method to allow DSA to > set this. > > Note that the init_registers() function called from eth_ops :: start > overwrites this setting. There is no reason why the RCTRL register > should be zero-initialized, so just stop clearing it so that the setting > we applied in eth_ops :: set_promisc sticks. > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> > --- > drivers/net/tsec.c | 20 ++++++++++++++++---- > include/tsec.h | 2 ++ > 2 files changed, 18 insertions(+), 4 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com>