bridge: mrp: Connect MRP API with the switchdev API
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sun, 26 Apr 2020 13:22:05 +0000 (15:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 18:40:25 +0000 (11:40 -0700)
commit9a9f26e8f7ea300e8efffcae036dbef239be433a
tree894587a79fb7d95c0aa53d936dc317eee5c002ae
parentfadd409136f0f21192d80816edd9529f27d88c17
bridge: mrp: Connect MRP API with the switchdev API

Implement the MRP API.

In case the HW can't generate MRP Test frames then the SW will try to generate
the frames. In case that also the SW will fail in generating the frames then a
error is return to the userspace. The userspace is responsible to generate all
the other MRP frames regardless if the test frames are generated by HW or SW.

The forwarding/termination of MRP frames is happening in the kernel and is done
by the MRP instance. The userspace application doesn't do the forwarding.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/Makefile
net/bridge/br_mrp.c [new file with mode: 0644]
net/bridge/br_mrp_netlink.c [new file with mode: 0644]