From d1fb1f4bb8b18815fd936a3ab088b96bd82a67c4 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Tue, 18 Oct 2016 20:01:31 +0800 Subject: Add nsh_action filed in nsh map API In order to support SF, NSH Classifier, add nsh_action: swap|push|pop in nsh map API. Change-Id: I6e9eee13cbd2aa61e72420bfb4f74e9bb7bdfe4d Signed-off-by: Hongjun Ni --- nsh-plugin/nsh/nsh.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nsh-plugin/nsh/nsh.h') diff --git a/nsh-plugin/nsh/nsh.h b/nsh-plugin/nsh/nsh.h index 0dbc8c8..363711e 100644 --- a/nsh-plugin/nsh/nsh.h +++ b/nsh-plugin/nsh/nsh.h @@ -33,6 +33,9 @@ typedef struct { */ u32 mapped_nsp_nsi; + /* NSH Header action: swap, push and pop */ + u32 nsh_action; + /* vnet intfc sw_if_index */ u32 sw_if_index; @@ -127,4 +130,10 @@ typedef enum { NSH_INPUT_N_NEXT, } nsh_input_next_t; +typedef enum { + NSH_ACTION_SWAP, + NSH_ACTION_PUSH, + NSH_ACTION_POP +}; + #endif /* included_nsh_h */ -- cgit 1.2.3-korg