DORMANTno replies

Revision v2 of 3 in this series.

Revisions (3)
  1. v1 [diff vs current]
  2. v2 current
  3. v3 [diff vs current]

[PATCH net-next v2 0/3] net: introduce IFF_PROTO_DOWN flag.

From: <hidden>
Date: 2015-03-22 04:07:06

From: Anuradha Karuppiah <redacted>

User space daemons can detect errors in the network that need to be
notified to the netdev drivers. Drivers can react to this error state
by stopping processing and turning off the carrier.

One such use case is the multi-chassis LAG application. When a split
brain situation is detected between the MLAG peers the secondary MLAG
switch typically stops processing on its MLAG enabled devices. Doing
that helps close traffic black-hole/loop windows quickly.

This series includes a patch for virtio net driver showing a sample
driver handling of the proto down flag

IFF_PROTO_DOWN doesn't interfere with the device admin state. It is
similar to the dormant mode/state that allows applications control of
the operational state as defined by RFC2863.

v1 to v2:
    Based on Dave's suggestion I have moved out aggregating of error
    bits across applications to an user space framework. This patch now
    simply notifies an aggregated error bit to drivers enabling them
    to handle the error gracefully.

Anuradha Karuppiah (2):
  net core: Add IFF_PROTO_DOWN support.
  virtio net: Handle proto_down state by setting the carrier off.

 drivers/net/virtio_net.c |   78 +++++++++++++++++++++++++++++++++++++++++++---
 include/uapi/linux/if.h  |    4 +++
 net/core/dev.c           |    2 +-
 3 files changed, 79 insertions(+), 5 deletions(-)

-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help