aboutsummaryrefslogtreecommitdiffstats
path: root/src/scvpp/inc/scvpp/comm.h
AgeCommit message (Collapse)AuthorFilesLines
2019-07-26vom: migration from scvpp to vomYohanPipereau1-245/+0
Change-Id: I79609f0bee9b8307da0d9bf704babe8ba06dba4d Signed-off-by: YohanPipereau <ypiperea@cisco.com> Co-authored-by: Pavel Kotucek <pavel.kotucek@pantheon.tech> Co-authored-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
2019-07-03Enable mutil-thread VPP API calling support.jackiechen19851-7/+23
- Lock/Unlock before and after invoke VPP API; - Introduce sc_vpp_main_t for warpping VPP API context, mode and pid; Change-Id: If1b1c040cb4723ecc4e88c5060c0380de7c715c0 Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
2019-07-01SCVPP callback helper function enhancement:jackiechen19851-14/+20
- Combine VAPI_RETVAL_CB and VAPI_COPY_CB. Replace them with VAPI_REQUEST_CB; - Add VAPI_REQUEST_CB2 to process VPP Variable-Length reply structure; Change-Id: Ib66003a40d98e4e0b159ae74c9cb8dcd88c34099 Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
2019-06-13Correct a memory leak and an unused valueYohanPipereau1-1/+4
Change-Id: I40ca7b6017731b165c87a0653f40eb4d3cfaa22c Signed-off-by: YohanPipereau <ypiperea@cisco.com>
2019-05-15Fixed ACL compiler warningsPavel Kotucek1-1/+1
Fixed warnings : - scvpp/inc/scvpp/comm.h:52:0: warning: "ARG_CHECK" redefined - comm.c:127:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Change-Id: I666c0347d10435681220c451976194e655d8aa04 Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
2019-04-25ACL related changesPavel Kotucek1-0/+2
Added changes related to ACL implementation for sweetcomb: Change-Id: I5e734f77f0c149fb31fdff288fb46a4ece20a870 Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
2019-04-12Fix bugs in comm.hjackiechen19851-2/+7
1. Fix id error while pushing a new element. The new element id should indicate the stack length, not the old one; 2. Fix dump callback return VAPI_EINVAL in last call. In last call, we should ignore replication because VPP pass NULL pointer while is_last is true; Change-Id: I8b14a3fda3b168c82d28470edc8b11cad6ebadc8 Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
2019-03-29Sweetcomb global cleanupYohanPipereau1-0/+213
-Merge IETF and Openconfig to use SCVPP 2 -Move L2 bridge from sc_vpp_interface to sc_vpp_v3po -Implement tav2 dump -Make openconfig-interfaces functions static -Try one more dispatch after failure in VAPI_CALL -Add error return code for scvpp -Remove unused length maccros -Return appropriate error code for interface dump when interface not found -Improve scvpp test suite -Change get_interface_id prototype -Use interface_dump_iface in openconfig_interface. -No more vapi types in openconfig_interfaces.c -Move openconfig_local_routing VAPI operations to sc_vpp_ip -Implement a multiple dump with a stack data structure -Comment out state_cb code from openconfig_local_routing to use new functions later. -Rename YANG model to their fully qualified name : <module>@<revision> -Remove headers almost empty and put registration declaration in sc_model.h -Shorten vapi context global variable name -Reorganize scvpp unit test suite -Add instructions to Makefile to install/uninstall YANG models in sysrepo. -Add this new instructions to README.md. -Reimplement interface_dump_all -Use a common message at INFO Log Level to know when sysrepo callbacks are triggered -Remove old structure to perform dump of all interfaces -Reimplement get_interface_name and add scvpp test for it -Clean sys_util -Use UNUSED maccro everywhere to have lighter prototypes -Have ietf-interfaces:interfaces-state work with new dump function -Add setup and teardown for NAT tests -Remove unused tapv2 dump -Remove useless sysrepo module callback -Remove xpath_find_first_key usage in openconfig-interfaces -Remove xpath_find_first_key in oc_local_routing and in the rest of sweetcomb -Reorganize scvpp include dir and fix scvpp_test new warnings -Fix scvpp tests for ip routes -Factorize scvpp nat and test return code of its function -Correct test_dump_if_all if there is an existing hardware interface -Implement a per-prefix dump in scvpp -free changes iterator in ietf-interfaces -Add new XPATH in oc local-routing -Introduce helper methods for sysrepo config callbacks -Factorize config callback -Refactor the openconfig-local-routing config callback -Use common foreach_change to iterate over changes in all models -Create a sample directory gathering example of configurations supposed to work with sweetcomb -Fix state callback of oc-local-routing -Add new sample for get operation on next-hop -foreach_elt maccro condition forgets to read one element Change-Id: I8e87fce577a00337977588f057a6e095a20f457c Signed-off-by: YohanPipereau <ypiperea@cisco.com>