[Bridge] [PATCH net-next v7 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration set information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances. SETLINK: IFLA_BRIDGE_CFM: Indicate that the following attributes are CFM.

[Bridge] [PATCH net-next v7 09/10] bridge: cfm: Netlink GET status Interface.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink status get information interface. Add new nested netlink attributes. These attributes are used by the user space to get status information. GETLINK: Request filter RTEXT_FILTER_CFM_STATUS: Indicating that CFM status information must be delivered.

[Bridge] [PATCH net-next v7 10/10] bridge: cfm: Netlink Notifications.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [PATCH net-next v7 01/10] net: bridge: extend the process of special frames

2020-10-27 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [PATCH net-next v7 05/10] bridge: cfm: Kernel space implementation of CFM. CCM frame TX added.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [PATCH net-next v7 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [PATCH net-next v7 02/10] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h

[Bridge] [PATCH net-next v7 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. It contains MEP instance create, delete and configuration. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual

[Bridge] [PATCH net-next v7 03/10] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Bridge] [PATCH net-next v7 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-27 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration get information interface. Add new nested netlink attributes. These attributes are used by the user space to get configuration information. GETLINK: Request filter RTEXT_FILTER_CFM_CONFIG: Indicating that CFM configuration

[Bridge] [PATCH net-next v7 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-27 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple independent

Re: [Bridge] [PATCH net-next v6 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-21 Thread Henrik Bjoernlund via Bridge
Thank you for the review. Comments below. The 10/19/2020 09:21, Jakub Kicinski wrote:> > On Mon, 19 Oct 2020 08:51:04 + Henrik Bjoernlund wrote: > > Thank you for the review. Comments below. > > > > The 10/15/2020 10:34, Jakub Kicinski wrote: > > > > > > On Thu, 15 Oct 2020 11:54:15 +

Re: [Bridge] [PATCH net-next v6 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-19 Thread Henrik Bjoernlund via Bridge
Thank you for the review. Comments below. The 10/15/2020 10:34, Jakub Kicinski wrote: > > On Thu, 15 Oct 2020 11:54:15 + Henrik Bjoernlund wrote: > > + [IFLA_BRIDGE_CFM_MEP_CONFIG_MDLEVEL] = { > > + .type = NLA_U32, .validation_type = NLA_VALIDATE_MAX, .max = 7 }, > >

[Bridge] [PATCH net-next v6 10/10] bridge: cfm: Netlink Notifications.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [PATCH net-next v6 09/10] bridge: cfm: Netlink GET status Interface.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink status get information interface. Add new nested netlink attributes. These attributes are used by the user space to get status information. GETLINK: Request filter RTEXT_FILTER_CFM_STATUS: Indicating that CFM status information must be delivered.

[Bridge] [PATCH net-next v6 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration get information interface. Add new nested netlink attributes. These attributes are used by the user space to get configuration information. GETLINK: Request filter RTEXT_FILTER_CFM_CONFIG: Indicating that CFM configuration

[Bridge] [PATCH net-next v6 05/10] bridge: cfm: Kernel space implementation of CFM. CCM frame TX added.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [PATCH net-next v6 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration set information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances. SETLINK: IFLA_BRIDGE_CFM: Indicate that the following attributes are CFM.

[Bridge] [PATCH net-next v6 03/10] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Bridge] [PATCH net-next v6 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [PATCH net-next v6 02/10] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h

[Bridge] [PATCH net-next v6 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-15 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. It contains MEP instance create, delete and configuration. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual

[Bridge] [PATCH net-next v6 01/10] net: bridge: extend the process of special frames

2020-10-15 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [PATCH net-next v5 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-15 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple independent

Re: [Bridge] [PATCH net-next v5 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 15:58, Jakub Kicinski wrote:> > On Mon, 12 Oct 2020 14:04:18 + Henrik Bjoernlund wrote: > > Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. > > > > Connectivity Fault Management (CFM) comprises

Re: [Bridge] [PATCH net-next v5 05/10] bridge: cfm: Kernel space implementation of CFM. CCM frame TX added.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 15:59, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:23 + Henrik Bjoernlund wrote: > > + skb =

Re: [Bridge] [PATCH net-next v5 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 16:16, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:24 + Henrik Bjoernlund wrote: > > +struct br_cfm_status_tlv { > > +

Re: [Bridge] [PATCH net-next v5 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 16:26, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:24 + Henrik Bjoernlund wrote: > > + /* This CCM related status

Re: [Bridge] [PATCH net-next v5 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 16:00, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:22 + Henrik Bjoernlund wrote: > > with restricted management access

Re: [Bridge] [PATCH net-next v5 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comments below. Regards Henrik The 10/14/2020 16:30, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:22 + Henrik Bjoernlund wrote: > > + if (config->mdlevel > 7) {

Re: [Bridge] [PATCH net-next v5 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-15 Thread Henrik Bjoernlund via Bridge
Thanks for your review. Comment below. Regards Henrik The 10/14/2020 16:33, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Mon, 12 Oct 2020 14:04:26 + Henrik Bjoernlund wrote: > > + if (nla_put_u32(skb,

[Bridge] [PATCH net-next v5 01/10] net: bridge: extend the process of special frames

2020-10-12 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [PATCH net-next v5 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-12 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple

[Bridge] [PATCH net-next v5 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. It contains MEP instance create, delete and configuration. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual

[Bridge] [PATCH net-next v5 09/10] bridge: cfm: Netlink GET status Interface.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink status get information interface. Add new nested netlink attributes. These attributes are used by the user space to get status information. GETLINK: Request filter RTEXT_FILTER_CFM_STATUS: Indicating that CFM status information must be delivered.

[Bridge] [PATCH net-next v5 05/10] bridge: cfm: Kernel space implementation of CFM. CCM frame TX added.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [PATCH net-next v5 10/10] bridge: cfm: Netlink Notifications.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [PATCH net-next v5 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration set information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances. SETLINK: IFLA_BRIDGE_CFM: Indicate that the following attributes are CFM.

[Bridge] [PATCH net-next v5 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [PATCH net-next v5 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration get information interface. Add new nested netlink attributes. These attributes are used by the user space to get configuration information. GETLINK: Request filter RTEXT_FILTER_CFM_CONFIG: Indicating that CFM configuration

[Bridge] [PATCH net-next v5 02/10] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h

[Bridge] [PATCH net-next v5 03/10] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-12 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [Bridge] [PATCH net-next v4 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-12 Thread Henrik Bjoernlund via Bridge
Thanks for the review. Comments below. The 10/09/2020 18:45, Jakub Kicinski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On Fri, 9 Oct 2020 14:35:27 + Henrik Bjoernlund wrote: > > +static inline struct mac_addr nla_get_mac(const

[Bridge] [PATCH net-next v4 09/10] bridge: cfm: Netlink GET status Interface.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink status get information interface. Add new nested netlink attributes. These attributes are used by the user space to get status information. GETLINK: Request filter RTEXT_FILTER_CFM_STATUS: Indicating that CFM status information must be delivered.

[Bridge] [PATCH net-next v4 01/10] net: bridge: extend the process of special frames

2020-10-09 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [PATCH net-next v4 06/10] bridge: cfm: Kernel space implementation of CFM. CCM frame RX added.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [PATCH net-next v4 03/10] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Bridge] [PATCH net-next v4 05/10] bridge: cfm: Kernel space implementation of CFM. CCM frame TX added.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [PATCH net-next v4 07/10] bridge: cfm: Netlink SET configuration Interface.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration set information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances. SETLINK: IFLA_BRIDGE_CFM: Indicate that the following attributes are CFM.

[Bridge] [PATCH net-next v4 04/10] bridge: cfm: Kernel space implementation of CFM. MEP create/delete.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. It contains MEP instance create, delete and configuration. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual

[Bridge] [PATCH net-next v4 10/10] bridge: cfm: Netlink Notifications.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [PATCH net-next v4 02/10] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h | 3 +++ 3 files changed, 17

[Bridge] [PATCH net-next v4 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-09 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple

[Bridge] [PATCH net-next v4 08/10] bridge: cfm: Netlink GET configuration Interface.

2020-10-09 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration get information interface. Add new nested netlink attributes. These attributes are used by the user space to get configuration information. GETLINK: Request filter RTEXT_FILTER_CFM_CONFIG: Indicating that CFM configuration

[Bridge] [PATCH net] bridge: Netlink interface fix.

2020-10-07 Thread Henrik Bjoernlund via Bridge
This commit is correcting NETLINK br_fill_ifinfo() to be able to handle 'filter_mask' with multiple flags asserted. Fixes: 36a8e8e265420 ("bridge: Extend br_fill_ifinfo to return MPR status") Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Suggested-by: Nikolay Aleksandrov

[Bridge] [net-next v3 7/9] bridge: cfm: Netlink Interface.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration and status information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances and get status. Also they are used by the kernel to notify the user space when changes

[Bridge] [net-next v3 6/9] bridge: cfm: Kernel space implementation of CFM.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [net-next v3 3/9] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur Acked-by: Nikolay Aleksandrov --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Bridge] [net-next v3 9/9] bridge: cfm: Bridge port remove.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is addition of CFM functionality to delete MEP instances on a port that is removed from the bridge. A MEP can only exist on a port that is related to a bridge. Signed-off-by: Henrik Bjoernlund m Reviewed-by: Horatiu Vultur --- net/bridge/br_cfm.c | 13 +

[Bridge] [net-next v3 5/9] bridge: cfm: Kernel space implementation of CFM.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [net-next v3 8/9] bridge: cfm: Netlink Notifications.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [net-next v3 0/9] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-06 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple

[Bridge] [net-next v3 2/9] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund Reviewed-by: Horatiu Vultur --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h | 3 +++ 3 files changed, 17

[Bridge] [net-next v3 4/9] bridge: cfm: Kernel space implementation of CFM.

2020-10-06 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks

[Bridge] [net-next v3 1/9] net: bridge: extend the process of special frames

2020-10-06 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [net-next v2 09/11] bridge: cfm: Bridge port remove.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is addition of CFM functionality to delete MEP instances on a port that is removed from the bridge. A MEP can only exist on a port that is related to a bridge. Reviewed-by: Horatiu Vultur Signed-off-by: Henrik Bjoernlund m --- net/bridge/br_cfm.c | 13 +

[Bridge] [net-next v2 06/11] bridge: cfm: Kernel space implementation of CFM.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the third commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame reception. The MEP instance now contains CCM based status information. Most important is the CCM defect status indicating if correct CCM frames are

[Bridge] [net-next v2 07/11] bridge: cfm: Netlink Interface.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration and status information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances and get status. Also they are used by the kernel to notify the user space when changes

[Bridge] [net-next v2 08/11] bridge: cfm: Netlink Notifications.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

[Bridge] [net-next v2 11/11] bridge: cfm: Added CFM switchdev utilization.

2020-10-01 Thread Henrik Bjoernlund via Bridge
The CFM kernel implementation is now trying to offload functionallity in HW by utilizing the switchdev interface. MEP instances are created/deleted and CCM frames are transmitted in HW. Also handling of received CCM frames and the defect calculation is dome in HW. Reviewed-by: Horatiu Vultur

[Bridge] [net-next v2 10/11] bridge: switchdev: cfm: switchdev interface implementation

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the definition of the CFM switchdev interface. The interface consist of these objects: SWITCHDEV_OBJ_ID_MEP_CFM, SWITCHDEV_OBJ_ID_MEP_CONFIG_CFM, SWITCHDEV_OBJ_ID_CC_CONFIG_CFM, SWITCHDEV_OBJ_ID_CC_PEER_MEP_CFM, SWITCHDEV_OBJ_ID_CC_CCM_TX_CFM,

[Bridge] [net-next v2 01/11] net: bridge: extend the process of special frames

2020-10-01 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [net-next v2 02/11] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Reviewed-by: Horatiu Vultur Signed-off-by: Henrik Bjoernlund --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h | 3 +++ 3 files changed, 17

[Bridge] [net-next v2 05/11] bridge: cfm: Kernel space implementation of CFM.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the second commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Functionality is extended with CCM frame transmission. Interface is extended with these functions: br_cfm_cc_rdi_set() br_cfm_cc_ccm_tx() br_cfm_cc_config_set() A MEP Continuity Check feature

[Bridge] [net-next v2 03/11] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Acked-by: Nikolay Aleksandrov Reviewed-by: Horatiu Vultur Signed-off-by: Henrik Bjoernlund --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Bridge] [net-next v2 00/11] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-01 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple

[Bridge] [net-next v2 04/11] bridge: cfm: Kernel space implementation of CFM.

2020-10-01 Thread Henrik Bjoernlund via Bridge
This is the first commit of the implementation of the CFM protocol according to 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks

[Bridge] [PATCH RFC 4/7] bridge: cfm: Kernel space implementation of CFM.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This is the implementation of the CFM protocol according to 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple

[Bridge] [PATCH RFC 3/7] bridge: uapi: cfm: Added EtherType used by the CFM protocol.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This EtherType is used by all CFM protocal frames transmitted according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund --- include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index

[Bridge] [PATCH RFC 2/7] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This makes it possible to include or exclude the CFM protocol according to 802.1Q section 12.14. Signed-off-by: Henrik Bjoernlund --- net/bridge/Kconfig | 11 +++ net/bridge/br_device.c | 3 +++ net/bridge/br_private.h | 3 +++ 3 files changed, 17 insertions(+) diff --git

[Bridge] [PATCH RFC 5/7] bridge: cfm: Netlink Interface.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This is the implementation of CFM netlink configuration and status information interface. Add new nested netlink attributes. These attributes are used by the user space to create/delete/configure CFM instances and get status. Also they are used by the kernel to notify the user space when changes

[Bridge] [PATCH RFC 0/7] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-09-17 Thread Henrik Bjoernlund via Bridge
Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. Connectivity Fault Management (CFM) comprises capabilities for detecting, verifying, and isolating connectivity failures in Virtual Bridged Networks. These capabilities can be used in networks operated by multiple independent

[Bridge] [PATCH RFC 7/7] bridge: cfm: Bridge port remove.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This is addition of CFM functionality to delete MEP instances on a port that is removed from the bridge. A MEP can only exist on a port that is related to a bridge. Signed-off-by: Henrik Bjoernlund --- net/bridge/br_cfm.c | 13 + net/bridge/br_if.c | 1 +

[Bridge] [PATCH RFC 1/7] net: bridge: extend the process of special frames

2020-09-17 Thread Henrik Bjoernlund via Bridge
This patch extends the processing of frames in the bridge. Currently MRP frames needs special processing and the current implementation doesn't allow a nice way to process different frame types. Therefore try to improve this by adding a list that contains frame types that need special processing.

[Bridge] [PATCH RFC 6/7] bridge: cfm: Netlink Notifications.

2020-09-17 Thread Henrik Bjoernlund via Bridge
This is the implementation of Netlink notifications out of CFM. Notifications are initiated whenever a state change happens in CFM. IFLA_BRIDGE_CFM: Points to the CFM information. IFLA_BRIDGE_CFM_MEP_STATUS_INFO: This indicate that the MEP instance status are following.

Re: [Bridge] [PATCH RFC 4/7] bridge: cfm: Kernel space implementation of CFM.

2020-09-17 Thread Henrik Bjoernlund via Bridge
Thanks for the review. Comments below. The 09/04/2020 08:02, Jakub Kicinski wrote: > > On Fri, 4 Sep 2020 09:15:24 + Henrik Bjoernlund wrote: > > + rcu_read_lock(); > > + b_port = rcu_dereference(mep->b_port); > > + if (!b_port) > > + return NULL; > > + skb =