]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: mrp: Rework the MRP netlink interface
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 27 May 2020 12:34:30 +0000 (12:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:30:43 +0000 (11:30 -0700)
commit2ab7ba44ea4aa408e8fd58d9776f68f1d44f62e4
tree829dc3b600b771048c5a70c7a43bf12a4ad5d5d1
parent00e9d3f30b43971b7c98abdfbeb3b21202910dc7
bridge: mrp: Rework the MRP netlink interface

This patch reworks the MRP netlink interface. Before, each attribute
represented a binary structure which made it hard to be extended.
Therefore update the MRP netlink interface such that each existing
attribute to be a nested attribute which contains the fields of the
binary structures.
In this way the MRP netlink interface can be extended without breaking
the backwards compatibility. It is also using strict checking for
attributes under the MRP top attribute.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_bridge.h
net/bridge/br_mrp.c
net/bridge/br_mrp_netlink.c
net/bridge/br_private_mrp.h