Re: [Bridge] [PATCH net-next v3 0/2] bridge: mrp: Extend MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR

2020-06-26 Thread David Miller
From: Horatiu Vultur Date: Fri, 26 Jun 2020 09:33:47 +0200 > This patch series extends MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR. > To allow the userspace to clear all MRP instances when is started. The > second patch in the series fix different sparse warnings. > > v3: > - add the

[Bridge] [PATCH net-next v3 1/2] bridge: mrp: Extend MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR

2020-06-26 Thread Horatiu Vultur via Bridge
In case the userspace daemon dies, then when is restarted it doesn't know if there are any MRP instances in the kernel. Therefore extend the netlink interface to allow the daemon to clear all MRP instances when is started. Signed-off-by: Horatiu Vultur --- include/uapi/linux/if_bridge.h | 8

[Bridge] [PATCH net-next v3 2/2] bridge: mrp: Fix endian conversion and some other warnings

2020-06-26 Thread Horatiu Vultur via Bridge
The following sparse warnings are fixed: net/bridge/br_mrp.c:106:18: warning: incorrect type in assignment (different base types) net/bridge/br_mrp.c:106:18:expected unsigned short [usertype] net/bridge/br_mrp.c:106:18:got restricted __be16 [usertype] net/bridge/br_mrp.c:281:23: warning:

[Bridge] [PATCH net-next v3 0/2] bridge: mrp: Extend MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR

2020-06-26 Thread Horatiu Vultur via Bridge
This patch series extends MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR. To allow the userspace to clear all MRP instances when is started. The second patch in the series fix different sparse warnings. v3: - add the second patch to fix sparse warnings v2: - use list_for_each_entry_safe