[PATCH 1/9] net: tsec: add support for promiscuous mode

Bin Meng bmeng.cn at gmail.com
Wed Sep 29 04:32:44 CEST 2021


On Tue, Sep 28, 2021 at 7:49 AM Vladimir Oltean <vladimir.oltean at 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.oltean at nxp.com>
> ---
>  drivers/net/tsec.c | 20 ++++++++++++++++----
>  include/tsec.h     |  2 ++
>  2 files changed, 18 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list