summaryrefslogtreecommitdiffstats
path: root/nsh-plugin/nsh
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17Fix compiling issue led by vppapigen reworkHongjun Ni1-3/+6
Change-Id: I2e7cc0f0302476e64f4aae328bc56e96cf6150b0 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-10-12Bump master's JVPP version to 18.01v18.04-rc0Hongjun Ni3-3/+0
Change-Id: I4005caa45ba04862eaefdc108f8613c157925f73 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-09-29Add NSH TTL supportv18.01-rc0Hongjun Ni4-19/+67
Change-Id: Id2f8236cc997d08c53217fc92881b8bbf2c2f429 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-08-27NSH Plugin crashes VPP. NSHSFC-34Hongjun Ni2-1/+29
Change-Id: If7a3c3ebbbdc00a4ad351a056ebaacf9a9c237be Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-06-06Fix adj lookup failure for NSH over EthHongjun Ni2-1/+31
Change-Id: If5b090b7d03b3ad1567c9659cb235c6a54d438ae Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-06-01Fix NSH plugin loading issueHongjun Ni2-2/+2
Change-Id: Ica0e6080a4ebdb898590864b7d5ab1da16d656bd Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-05-24Add Eth as NSH transport. NSHSFC-31Hongjun Ni3-3/+513
Change-Id: Ie0bac56af68ba0b1b45baf9d9a5822fbc1b2c0ac Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-04-25Fix dual-loop issue of NSH-SNAT. NSHSFC-30Hongjun Ni1-0/+32
Change-Id: I000f617e554c55da2629503da415350e139eceba Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit d74de22904687af10de9dbea04a282afb42fb326)
2017-04-17Extend nsh map to support gre4 and gre6 tunnelHongjun Ni3-8/+19
Change-Id: I8c2384082b54a013209c325573edd3775f5eda78 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-04-17NSH-Classifier failed and cause packets dropped. NSHSFC-28Hongjun Ni1-3/+3
Change-Id: I0a4c8d6bf6bb3487b73d425060c7398b020f03e0 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 56f2c156b1697d68fac307433754dc2984abedec)
2017-04-17Fix gre issue due to gre spit into gre4 and gre6Hongjun Ni1-3/+7
Change-Id: I474cb29c28206604fb213fe642f247d69ee5dfcb Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-04-03Changes for supoprting iOAM/ NSH export. Add a separate node for POP onlyVengada4-14/+399
handling to support iOAM export dynamic node. Change-Id: I411ee93ea3ec34ed24c18c1ba4b5dc1c9533e483 Signed-off-by: Vengada <venggovi@cisco.com>
2017-03-27Fix MD2's api issue for hc2vppv17.07-rc0Hongjun Ni1-3/+3
Change-Id: Ibdeb1eac87d2253c3735be3733cdf8ae2f90b763 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-03-23Hc2vpp failed to load libjvpp_nsh.soHongjun Ni1-1/+17
Modify code to adapt new API registration mechanism Change-Id: I968199e86278a01ff01267e55468099886689d12 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-03-22NSHSFC-17 Enable NSH-aware SNATHongjun Ni2-0/+187
Configuration: set interface snat in nsh_tunnel0 out nsh_tunnel1 snat add static mapping local 192.168.50.72 external 10.0.35.1 Change-Id: I8e1bd5e3bea1ccaad03a1bba86eca3e98316df17 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-03-14Add support for iOAM (sub-TLV) over NSH-MD2. iOAM traceVengada1-2/+5
records are carried as MD2 TLV data. Change-Id: Id6fe6c961aa3879df5ae476f13b0e39bcc6c0dfe Signed-off-by: Vengada <venggovi@cisco.com>
2017-03-10Restructure code to support both md-type1 and md-type2Hongjun Ni5-183/+890
Basic support to both MD1 and MD2 MD1 configuration: create nsh entry nsp 185 nsi 255 md-type 1 c1 1 c2 2 c3 3 c4 4 next-ethernet MD2 configuration: create nsh entry nsp 185 nsi 254 md-type 2 pot next-ethernet Change-Id: Ide0fdc122d76cb6a55643a15febd985bd41981b0 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> Signed-off-by: Vengada <venggovi@cisco.com>
2017-02-15Add NSH Egress Classifier featureHongjun Ni2-2/+7
Change-Id: Ib539f0f98ed03613429e0b6e952b7502f393c2b1 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-02-06Fix compile issue due to jvpp and plugin improvementHongjun Ni1-12/+4
Change-Id: I86f172d9b2f59a7e2a24c71e876230c7ba48111e Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-01-26NSH Proxy session failed to configure via restconf. NSHSFC-21Hongjun Ni1-0/+6
Change-Id: Id2e81fe3536cccd2678889a29559cea3d62dbf99 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 24613f9946b814f2174b98a0020cfd55a0cf1fc5)
2017-01-26Insert nsh-classifier as a next node into l2-input-classifier statically. ↵Hongjun Ni1-0/+2
NSHSFC-20 Change-Id: I77b04c804e9c4e6dd96e7f4ffee88fff8a018aeb Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> (cherry picked from commit 6c646d10a943617c1d49adebe9467ffe680e82fc)
2016-12-28add nsh to xvlan-gpe next decap node listGabriel Ganne1-1/+3
Change-Id: Ie6d9ad0ae601d93569cd1624f10b61402b7e88bf Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
2016-12-28register nodes using extern declaration in their respective headersGabriel Ganne2-34/+13
affects gre, vxlan4/6, vxlan-gpe4/6 Change-Id: I1acc2803262c62dd5d96a916d135f09523a32013 Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
2016-12-02Add NSH Classifier feature in NSH_SFCHongjun Ni2-4/+69
nsp and nsi is passed via vnet_buffer(b0)->l2_classify.opaque_index Change-Id: I8c58201b0ccbb10527adf78471d8d87cff50958a Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-12-01Add NSH-Proxy feature within NSH_SFCHongjun Ni3-68/+356
PatchSet 6: spit nsh_input to three node instances PatchSet 5: refactor NSH-Proxy PatchSet 4: Fix some issues PatchSet 3: get parameters from VPP via metadata PatchSet 2: Add FIXME Change-Id: I97448af867eb71554b8629f8da57a2ed6c6a3b8a Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-11-25Add nsh_action process in dataplaneHongjun Ni1-28/+129
Change-Id: I46ac7e1c675b288e012d3fe4b57ce055041146e8 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-11-23Fix nsh_action CLI issueHongjun Ni1-2/+3
rebuild Change-Id: I5d823724186bdc31b15e4739f9f33f0a29d87fbe Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-11-03Remove unused nsh_control_pingMarek Gradzki3-76/+2
The nsh_control_ping was intended to be temporary workaround for jvpp problems. Now it can be safely removed. Change-Id: I8ea65f84617f1ab772432902ea13c102e165f026 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-27Add NSH Entry error counterHongjun Ni2-3/+4
Change-Id: I4c0180ba52b50d8adad9cf1d0501a0cc2dd2fdb3 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-10-26Fix nsh_map_dump_details issueHongjun Ni1-1/+1
Change-Id: I4b3094b1895721bc88756d026452a5fcecb4c27b Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-10-19Add nsh_action filed in nsh map APIHongjun Ni3-2/+62
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>
2016-09-07jvpp support for nshEd Warnicke5-96/+102
Augment APIs with entry_index for reply, dump and details Squashes: https://gerrit.fd.io/r/#/c/2538/ https://gerrit.fd.io/r/#/c/2118/ https://gerrit.fd.io/r/#/c/1884/ Change-Id: Ibbdc53e2db8ffa5499380f6ce70356c4a401315e Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-08-11NSHSFC-7: send detail messages with proper idMarek Gradzki1-2/+4
Change-Id: If2c25f81853fc5b6f1a8a26cdfaa44f38b8bf394 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-08-03Augment md-type2 support within NSH APIHongjun Ni1-0/+4
PatchSet 2: change tlv[256] to tlv[tlv_length] Change-Id: I783483de0d55f38ad96c99faa701d735ba109f43 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-08-02Change control_ping to nsh_control_pingHongjun Ni3-13/+14
PatchSet 3: rebuild PatchSet 2: add msg_id_base Change-Id: I3a52acced0f85e5799560926fa8f4eb65e674009 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-08-02Workaround for C thread to Java thread attachment for pluginsHongjun Ni3-2/+97
Change-Id: Ic33c37f63a30946ee451d3223db3bd1e3043f408 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-08-02Fix tlv[0] issue of nsh_entryHongjun Ni3-17/+6
PatchSet 2: delete tlv Change-Id: I19131a8dfc441be1d7cbb92c817a3f7e583f9189 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-08-02Add nsh_map_dump APIHongjun Ni3-4/+90
Change-Id: If901cf638c9142c362afeb9634a7cbcd458c0125 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-08-02Add nsh entry dump APIHongjun Ni3-0/+105
Change-Id: I6664c9929b8332eb8f4d7bc33f0f99b458a71908 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-07-29Fix nsh_add_del_map issue with VATHongjun Ni3-22/+28
PatchSet 4: rebuild PatchSet 4: rebuild PatchSet 3: rebuild again PatchSet 2: rebuild Change-Id: Id8c10d65767a9d4eded63d7be6a87e2f87f383db Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-07-29Fix nsh_add_del_entry issue in VATHongjun Ni1-1/+12
Change-Id: I880204a58e6bd90702d935322de53a4377ff099b Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-06-22VPP-70: Fix nsh-input next_index issueHongjun Ni1-1/+0
Change-Id: I46e3a6ee18846e3d786600b08f23113e3aa9af03 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-06-21Add input node wiring for vxlan4-gpe-input, vxlan6-gpe-input, greKeith Burns (alagalah)1-29/+52
Change-Id: Ie7b132924f36a0522e956a80d3f6f2b5fcca84f0 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-06-15NSHSFC-3: Fix create_nsh_map_command's helpHongjun Ni1-131/+119
PatchSet 2: fix indent issue. Change-Id: I1dbff5081c685d4cd492a6b53a7130bf065f9c85 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com> Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-06-15NSHSFC-1 Initial move from VPP to NSH_SFCKeith Burns (alagalah)8-0/+1590
- API is giving me some negative energy currently -- I'll work it out but wanted to publish both VPP-61 and this simultaneously Change-Id: I4a04b56dd470655114605621d0c44ea3c26bc069 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com> Signed-off-by: Ed Warnicke <eaw@cisco.com>