aboutsummaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh/nsh.h
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-10-18 20:01:31 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-10-19 01:33:28 +0800
commitd1fb1f4bb8b18815fd936a3ab088b96bd82a67c4 (patch)
treef9ba3b1e9a0ab3f299e25ba66adc9a2d90342f0a /nsh-plugin/nsh/nsh.h
parentd4dd7550ba003b9534593da035c48a110a60cc4f (diff)
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 <hongjun.ni@intel.com>
Diffstat (limited to 'nsh-plugin/nsh/nsh.h')
-rw-r--r--nsh-plugin/nsh/nsh.h9
1 files changed, 9 insertions, 0 deletions
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 */