]> git.dujemihanovic.xyz Git - linux.git/commit
net: ti: icssg-prueth: Add support for HSR frame forward offload
authorMD Danish Anwar <danishanwar@ti.com>
Wed, 11 Sep 2024 08:16:01 +0000 (13:46 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Sep 2024 22:14:07 +0000 (15:14 -0700)
commit95540ad6747c09225e21800d9ce325921645dda2
tree8fdbfd20aca8420e9f7f8b78f696360725dbd0c3
parent4ebe0599fc36ea3ff51e76e8554a2127e8126778
net: ti: icssg-prueth: Add support for HSR frame forward offload

Add support for offloading HSR port-to-port frame forward to hardware.
When the slave interfaces are added to the HSR interface, the PRU cores
will be stopped and ICSSG HSR firmwares will be loaded to them.

Similarly, when HSR interface is deleted, the PRU cores will be
restarted and the last used firmwares will be reloaded. PRUeth
interfaces will be back to the last used mode.

This commit also renames some APIs that are common between switch and
hsr mode with '_fw_offload' suffix.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://patch.msgid.link/20240911081603.2521729-4-danishanwar@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_classifier.c
drivers/net/ethernet/ti/icssg/icssg_config.c
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h