mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 01:59:51 +02:00
Add hardware offloading for L2 switching on R-Car S4. On S4 brdev is limited to one per-device (not per port). Reasoning is that hw L2 forwarding support lacks any sort of source port based filtering, which makes it unusable to offload more than one bridge device. Either you allow hardware to forward destination MAC to a port, or you have to send it to CPU. You can't make it forward only if src and dst ports are in the same brdev. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Signed-off-by: Michael Dege <michael.dege@renesas.com> Link: https://patch.msgid.link/20250901-add_l2_switching-v5-3-5f13e46860d5@renesas.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
15 lines
374 B
C
15 lines
374 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Renesas Ethernet Switch device driver
|
|
*
|
|
* Copyright (C) 2025 Renesas Electronics Corporation
|
|
*/
|
|
|
|
#ifndef __RSWITCH_L2_H__
|
|
#define __RSWITCH_L2_H__
|
|
|
|
void rswitch_update_l2_offload(struct rswitch_private *priv);
|
|
|
|
int rswitch_register_notifiers(void);
|
|
void rswitch_unregister_notifiers(void);
|
|
|
|
#endif /* #ifndef __RSWITCH_L2_H__ */
|