Thread (15 messages) 15 messages, 3 authors, 2015-01-05
STALE4174d

[PATCH/RFC flow-net-next 10/10] net: flow: Add flow removed notification for eviction

From: Simon Horman <hidden>
Date: 2014-12-29 02:16:22
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

This adds a flag to flows to allow flow removed notifications
to be sent when eviction occurs.

Inspired by OpenFlow.

Signed-off-by: Simon Horman <redacted>

---

Compile tested only
---
 include/uapi/linux/if_flow.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/uapi/linux/if_flow.h b/include/uapi/linux/if_flow.h
index 7264629..9db7b30 100644
--- a/include/uapi/linux/if_flow.h
+++ b/include/uapi/linux/if_flow.h
@@ -792,12 +792,14 @@ enum net_flow_rem_reason {
 	NET_FLOW_REM_FLOW_REASON_IDLE_TIMEOUT,	/* Idle timeout */
 	NET_FLOW_REM_FLOW_REASON_HARD_TIMEOUT,	/* Hard timeout */
 	NET_FLOW_REM_FLOW_REASON_DELETE,	/* Deleted (by NET_FLOW_TABLE_CMD_DEL_FLOWS) */
+	NET_FLOW_REM_FLOW_REASON_EVICTION,	/* Evicted by switch */
 };
 
 enum {
 	NET_FLOW_REM_F_IDLE_TIMEOUT	= (1 << NET_FLOW_REM_FLOW_REASON_IDLE_TIMEOUT),
 	NET_FLOW_REM_F_HARD_TIMEOUT	= (1 << NET_FLOW_REM_FLOW_REASON_HARD_TIMEOUT),
 	NET_FLOW_REM_F_DELETE		= (1 << NET_FLOW_REM_FLOW_REASON_DELETE),
+	NET_FLOW_REM_F_EVICTION		= (1 << NET_FLOW_REM_FLOW_REASON_EVICTION),
 };
 
 enum {
-- 
2.1.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help