aboutsummaryrefslogtreecommitdiffstats
path: root/adapter/mock
AgeCommit message (Collapse)AuthorFilesLines
2018-06-26Pair requests with replies using sequence numbersMilan Lenco1-17/+56
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-03-23Support mocking reply for more multi requests at onceOndrej Fabry1-5/+4
Change-Id: I3610fe1e0c04f4487f6b7139fc62ef4515fad640 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-03-23Make global vars part of mock adapterOndrej Fabry1-34/+43
Change-Id: I30f4c4212a6866ac567c4a00af7feab3d84ad7d6 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2018-01-04Merge "Mock Adapter: Switch back to handlers once the queue is empty."Rastislav Szabo1-0/+5
2017-12-13Remove map usage via pointersOndrej Fabry1-9/+9
Change-Id: Idf2a119e633851ab8e3ddfe17dadca4e96c6a4ac Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-12-04Fix events for mock adapterOndrej Fabry1-23/+10
Change-Id: Iee5fa6282e845ed2aef76c9246a9068f3765139c Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-30Removes unnecessary returned func from WaitReadyOndrej Fabry1-2/+2
Change-Id: I34889c8c79fa8ef7a196f8d067edca7f1cb5ad33 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-28Add WaitReady to VppAdapterOndrej Fabry1-0/+5
- this fixes issue with mocked adapter during AsyncConnect Change-Id: I952025fec865422f9e83cec9383d96f79a639c90 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
2017-11-15Mock Adapter: Switch back to handlers once the queue is empty.Milan Lenco1-0/+5
Change-Id: Ifc85a80498521ef218a34072cce470bf32cead9c Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2017-06-09Fix name of fieldsLukas Macko1-5/+5
Change-Id: I9dd1ab75c3619e6ddc6cf07491491b556b96fb20 Signed-off-by: Lukas Macko <lmacko@cisco.com>
2017-05-25added async connect API, new structure of examplesRastislav Szabo2-4/+4
Change-Id: Iab9bce174596c30998981e02b7030c248c423384 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-22fixed golint issuesRastislav Szabo2-64/+71
Change-Id: I325fa618d8db7a9f1783ec7d208fd7b6e853d9a3 Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-17multiple small fixesRastislav Szabo1-4/+11
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 Szabo1-3/+3
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04fixed import pathsRastislav Szabo1-3/+3
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
2017-05-04initial commitRastislav Szabo2-0/+376
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>