[PATCH net-next v7 1/4] net core: Add protodown support.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah This patch introduces the proto_down flag that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a phys down on the associated switch port. Signed-

[PATCH net-next v7 3/4] rocker: Handle protodown notifications.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. Signed-off-by: Anuradha Karuppiah Signed-off-

[PATCH net-next v7 0/4] net: Introduce protodown flag.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doing

[PATCH iproute2 v7 4/4] ip link: proto_down config and display.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display protodown on a switch port. The switch driver can handle this error state by doing a phys down on the port. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation

[PATCH net-next v7 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson Kok --- include/uapi/linux/if_link.h |1 + net/core/rtnetlink.c | 16 ++-- 2 files changed, 15 insertions(+), 2 deletions(-)

[PATCH iproute2 v6 4/4] ip link: proto_down config and display.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display protodown on a switch port. The switch driver can handle this error state by doing a phys down on the port. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation

[PATCH net-next v6 3/4] rocker: Handle protodown notifications.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. Signed-off-by: Anuradha Karuppiah Signed-off-

[PATCH net-next v6 1/4] net core: Add protodown support.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah This patch introduces the proto_down flag that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a phys down on the associated switch port. Signed-

[PATCH net-next v6 0/4] net: Introduce protodown flag.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doing

[PATCH net-next v6 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-14 Thread anuradhak
From: Anuradha Karuppiah Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson Kok --- include/uapi/linux/if_link.h |1 + net/core/rtnetlink.c | 16 ++-- 2 files changed, 15 insertions(+), 2 deletions(-)

[PATCH net-next v5 3/4] rocker: Handle protodown notifications.

2015-07-09 Thread anuradhak
From: Anuradha Karuppiah protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. To test this unctionality I used the qemu-rock

[PATCH net-next v5 0/4] net: Introduce protodown flag.

2015-07-09 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doing

[PATCH net-next v5 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-09 Thread anuradhak
From: Anuradha Karuppiah A nested attribute has been added allowing apps to update bits (IF_PROTOF_DOWN) in the proto_flags field. Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson Kok --- include/uapi/linux/if_link.h | 10 +

[PATCH net-next v5 4/4] ip link: proto_down config and display.

2015-07-09 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~# ip link set eth1 protodown on

[PATCH net-next v5 1/4] net core: Add protodown support.

2015-07-09 Thread anuradhak
From: Anuradha Karuppiah This patch introduces the IF_PROTOF_DOWN flag via proto_flags that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a phys down on the associated s

[PATCH net-next v4 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah A nested attribute has been added allowing apps to update bits (IF_PROTOF_DOWN) in the proto_flags field. Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson Kok --- include/uapi/linux/if_link.h | 10 +

[PATCH net-next v4 0/4] net: Introduce protodown flag.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doing

[PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~# ip link set eth1 protodown on

[PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah This patch introduces the IF_PROTOF_DOWN flag via proto_flags that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a phys down on the associated s

[PATCH net-next v4 3/4] rocker: Handle protodown notifications.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. To test this unctionality I used the qemu-rock

[RFC PATCH net-next v3 1/4] net core: Add IFF_PROTO_DOWN support.

2015-04-27 Thread anuradhak
From: Anuradha Karuppiah This patch introduces an IFF_PROTO_DOWN flag that can be used by user space applications to notify drivers that errors have been detected on the device. Signed-off-by: Anuradha Karuppiah Signed-off-by: Andy Gospodarek Signed-off-by: Roopa Prabhu Signed-off-by: Wilson

[RFC PATCH net-next v3 0/4] net: Introduce IFF_PROTO_DOWN flag.

2015-04-27 Thread anuradhak
From: Anuradha Karuppiah User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the directly connected switch. Doin

[RFC PATCH net-next v3 3/4] rocker: Handle IFF_PROTODOWN by doing a PHYS-DOWN on the switch port.

2015-04-27 Thread anuradhak
From: Anuradha Karuppiah IFF_PROTODOWN can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling IFF_PROTODOWN. Rocker PHYS disables the port in response to protodown. Note: I understand Scott has some rock

[RFC PATCH iproute v3 4/4] ip link: Config and display IFF_PROTO_DOWN flag.

2015-04-27 Thread anuradhak
From: Anuradha Karuppiah This patch adds support to set and display the IFF_PROTO_DOWN flag. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~# ip link set eth0 protodown on root@

[RFC PATCH net-next v3 2/4] switchdev: APIs for setting physical state of the switch port.

2015-04-27 Thread anuradhak
From: Anuradha Karuppiah On detecting errors an application can set IFF_PROTO_DOWN on a device. These switchdev APIs allow the switch device driver to react to IFF_PROTO_DOWN by doing a phy down on the switch port. Doing this allows the connected server to react quickly and prevent traffic black