aboutsummaryrefslogtreecommitdiffstats
path: root/core
AgeCommit message (Collapse)AuthorFilesLines
2018-06-26Pair requests with replies using sequence numbersMilan Lenco3-60/+304
Requests are given sequence numbers (cycling over a finite set of 2^16 integers) that are stored into the lower 16bits of the context. 1bit is also allocated for isMultipart boolean flag and the remaining 15bits are used to store the channel ID. The sequence numbers allow to reliably pair replies with requests, even in scenarious with timeouted requests or ignored (unread) replies. Sequencing is not used with asynchronous messaging as it is implemented by methods of the Channel structure, i.e. above ReqChan and ReplyChan channels. Change-Id: I7ca0e8489c7ffcc388c3cfef6d05c02f9500931c Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2018-05-31Improve handling of probes on timeoutsOndrej Fabry2-27/+74
Change-Id: If94059586d4be739d6c8ae7843cfaf3bc90a5323 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-04-13Fix missing lock in LookupByIDOndrej Fabry1-0/+3
Change-Id: I699052d179c98ad3a29218fa33fafef0affb97a6 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-04-12Add warning message when health check failsOndrej Fabry1-1/+2
Change-Id: I89d465ec9395eeb298a6ca209a8a0fff9107674e Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-04-05Lookup message name by ID when receiving unexpected messageOndrej Fabry2-7/+28
Change-Id: I693e8084b7e3f036dec5e557dc772857bb7d5f3d Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-03-23Support mocking reply for more multi requests at onceOndrej Fabry2-16/+17
Change-Id: I3610fe1e0c04f4487f6b7139fc62ef4515fad640 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-03-13Add API to set ControlPing msg and fail connect on unknown IDOndrej Fabry3-13/+33
Change-Id: Idd651a29d9fc3903f52d6fe8945add3052a28b52 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-01-25Update examples, tests and testdata after binapi-generator update.Milan Lenco3-3485/+830
Change-Id: I738d501cbbb6673010a32847df3f1c87050b8d36 Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2018-01-04Merge "Fix imports for github.com/sirupsen/logrus"Rastislav Szabo4-4/+4
2017-12-04Fix events for mock adapterOndrej Fabry2-25/+26
Change-Id: Iee5fa6282e845ed2aef76c9246a9068f3765139c Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-30Removes unnecessary returned func from WaitReadyOndrej Fabry1-2/+1
Change-Id: I34889c8c79fa8ef7a196f8d067edca7f1cb5ad33 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-28Add WaitReady to VppAdapterOndrej Fabry1-52/+9
- this fixes issue with mocked adapter during AsyncConnect Change-Id: I952025fec865422f9e83cec9383d96f79a639c90 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-28Fix imports for github.com/sirupsen/logrusOndrej Fabry4-4/+4
Change-Id: I84f2e45e5ff188a2a7a80cf69f607b44486c1754 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-09-25generator fix - add new message typeRastislav Szabo2-1/+15
Change-Id: I5e2b312e086d18eb7fa3f349750caea20005f530 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-09-12Make healthCheck parameters configurableLukas Macko1-2/+32
Change-Id: Idfb6945e13522867ced96a1ed7db85e725f42d1e Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-09-12Use Sirupsen/logrus with uppercaseLukas Macko4-4/+4
Change-Id: I2f8870c52f64eb56deb44e4a807867b3ef0a0b76 Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-09-07import sirupsen with lowercaseLukas Macko4-4/+4
Change-Id: I555587fc9ecc074ea1a42f0dc77c11716a1b06cb Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-09-07Wait until vpp is ready + Update vendorLukas Macko1-0/+47
Change-Id: I7c42d44d60f84fd21e55f9e4928d776f5466cc83 Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-07-11Merge "added performance benchmark example"Rastislav Szabo1-11/+15
2017-07-11added performance benchmark exampleRastislav Szabo1-11/+15
Change-Id: Ia0fea0569be3da7fadac9ef32d5f12c0b6de0089 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-06-20Upgrade dependency to VPP 17.07 RC0Milan Lenco3-161/+910
Change-Id: I732d478b71895f4d3889752c683dbb6a84c6e17c Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2017-05-25added async connect API, new structure of examplesRastislav Szabo4-201/+393
Change-Id: Iab9bce174596c30998981e02b7030c248c423384 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-22binapi-generator renamed & moved, finished documentationRastislav Szabo2-2/+28
Change-Id: I7d3b53fa238e822b36a6a82c61ffb792da3898bf Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-17multiple small fixesRastislav Szabo1-4/+7
Change-Id: I9e822ce7e9b9f44f7d074b0294d6eda37c2a0f12 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04changes import paths from gerrit.fd.io/r/govpp.git to git.fd.io/govpp.gitRastislav Szabo5-10/+10
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04re-generate core & example binary APIsRastislav Szabo1-2/+2
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04fixed import pathsRastislav Szabo5-10/+10
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04initial commitRastislav Szabo6-0/+3985
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>