summaryrefslogtreecommitdiffstats
path: root/test/test_interface_crud.py
AgeCommit message (Collapse)AuthorFilesLines
2019-12-04tests: add interface function chainingPaul Vinciguerra1-8/+5
Type: test Change-Id: I24e740aa87a8a4061fa98740f2d636997e18f08d Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-11-15tests: Remove the unrequired VPP IP address/prefix class wrappersNeale Ranns1-2/+2
Type: refactor Change-Id: I204f3f8eebc5f5d5a377e91262f91c615fd00168 Signed-off-by: Neale Ranns <nranns@cisco.com>
2019-11-07interface: shmemioerror while getting name_filter argAleksander Djuric1-1/+6
Type: fix Signed-off-by: Aleksander Djuric <aleksander.djuric@gmail.com> Change-Id: I5e0eb7024d208040d79e9d6db863f41e2ecf4ee6 Signed-off-by: Ole Troan <ot@cisco.com>
2019-11-05misc: Fix python scripts shebang lineRenato Botelho do Couto1-1/+1
Type: fix Since CentOS 8, RPM build script doesn't accept '#!/usr/bin/env python' as a valid shebang line. It requires scripts to explicitly chose between python2 or python3. Change all to use python3 as suggested by Paul Vinciguerra. Depends-On: https://gerrit.fd.io/r/23170 Signed-off-by: Renato Botelho do Couto <renato@netgate.com> Change-Id: Ie72af9f60fd0609e07f05b70f8d96e738b2754d1
2019-08-20api: Cleanup APIs interface.apiJakub Grajciar1-2/+2
Use of consistent API types for interface.api Type: fix Change-Id: I88206d7d0907cffd564031f73c9a996df2e5e21a Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
2019-06-18fib: fib api updatesNeale Ranns1-3/+3
Enhance the route add/del APIs to take a set of paths rather than just one. Most unicast routing protocols calcualte all the available paths in one run of the algorithm so updating all the paths at once is beneficial for the client. two knobs control the behaviour: is_multipath - if set the the set of paths passed will be added to those that already exist, otherwise the set will replace them. is_add - add or remove the set is_add=0, is_multipath=1 and an empty set, results in deleting the route. It is also considerably faster to add multiple paths at once, than one at a time: vat# ip_add_del_route 1.1.1.1/32 count 100000 multipath via 10.10.10.11 100000 routes in .572240 secs, 174751.80 routes/sec vat# ip_add_del_route 1.1.1.1/32 count 100000 multipath via 10.10.10.12 100000 routes in .528383 secs, 189256.54 routes/sec vat# ip_add_del_route 1.1.1.1/32 count 100000 multipath via 10.10.10.13 100000 routes in .757131 secs, 132077.52 routes/sec vat# ip_add_del_route 1.1.1.1/32 count 100000 multipath via 10.10.10.14 100000 routes in .878317 secs, 113854.12 routes/sec vat# ip_route_add_del 1.1.1.1/32 count 100000 multipath via 10.10.10.11 via 10.10.10.12 via 10.10.10.13 via 10.10.10.14 100000 routes in .900212 secs, 111084.93 routes/sec Change-Id: I416b93f7684745099c1adb0b33edac58c9339c1a Signed-off-by: Neale Ranns <neale.ranns@cisco.com> Signed-off-by: Ole Troan <ot@cisco.com> Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-04-17api: Add to interface crud - read by sw_if_index.Paul Vinciguerra1-0/+33
Change-Id: I02c857da4cf6da5e0e55c1e48b63716af7ade0a9 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-04-10Tests Cleanup: Fix missing calls to setUpClass/tearDownClass.Paul Vinciguerra1-0/+4
Continuation/Part 2 of https://gerrit.fd.io/r/#/c/17092/ Change-Id: Id0122d84eaf2c05d29e5be63a594d5e528ee7c9a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-03-15Revert "API: Cleanup APIs interface.api"Ole Trøan1-2/+2
This reverts commit e63325e3ca03c847963863446345e6c80a2c0cfd. Allow time for CSIT to accommodate. Change-Id: I59435e4ab5e05e36a2796c3bf44889b5d4823cc2 Signed-off-by: ot@cisco.com
2019-03-15API: Cleanup APIs interface.apiJakub Grajciar1-2/+2
Use of consistent API types for interface.api Change-Id: Ieb54cebb4ac96b432a3f0b41596718aa2f34885b Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
2018-06-24Revert "Revert "make test: fix broken interfaces""Klement Sekera1-2/+2
This reverts commit c8efa29b6f9a91381897b54f1147daf922ed7164. Change-Id: I1d5c5773d5f86a63073e255336bd9de628e26179 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2018-06-22Revert "make test: fix broken interfaces"Ole Troan1-2/+2
This reverts commit d5c60b96a3fd93916fc4af5c8d6d25625c28242e. Change-Id: I3632b9c3f76c615aee897f28f76d094e7031e689 Signed-off-by: Ole Troan <ot@cisco.com>
2018-06-22make test: fix broken interfacesKlement Sekera1-2/+2
Change-Id: I2e092774f81503e04b53cc6c6b5d357fe3fc52ab Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-01-09make test: Loopback interface CRUD testMatej Klotton1-0/+151
Change-Id: I0581da7a682bfe4dd6520ecf1b2ea6bd8c20b1b3 Signed-off-by: Matej Klotton <mklotton@cisco.com>
L THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef included_vector_altivec_h #define included_vector_altivec_h /* 128 bit shifts. */ #define _(t,ti,lr,f) \ always_inline t t##_##lr (t x, t y) \ { return (t) __builtin_altivec_##f ((ti) x, (ti) y); } \ \ always_inline t t##_i##lr (t x, int i) \ { \ t j = {i,i,i,i}; \ return t##_##lr (x, j); \ } _(u16x8, i16x8, shift_left, vslh); _(u32x4, i32x4, shift_left, vslw); _(u16x8, i16x8, shift_right, vsrh); _(u32x4, i32x4, shift_right, vsrw); _(i16x8, i16x8, shift_right, vsrah); _(i32x4, i32x4, shift_right, vsraw); _(u16x8, i16x8, rotate_left, vrlh); _(i16x8, i16x8, rotate_left, vrlh); _(u32x4, i32x4, rotate_left, vrlw); _(i32x4, i32x4, rotate_left, vrlw); #undef _ #define _(t,it,lr,f) \ always_inline t t##_word_shift_##lr (t x, int n_words) \ { \ i32x4 n_bits = {0,0,0,n_words * BITS (it)}; \ return (t) __builtin_altivec_##f ((i32x4) x, n_bits); \ } _(u32x4, u32, left, vslo) _(i32x4, i32, left, vslo) _(u32x4, u32, right, vsro) _(i32x4, i32, right, vsro) _(u16x8, u16, left, vslo) _(i16x8, i16, left, vslo) _(u16x8, u16, right, vsro) _(i16x8, i16, right, vsro) #undef _ /* Interleave. */ #define _(t,it,lh,f) \ always_inline t t##_interleave_##lh (t x, t y) \ { return (t) __builtin_altivec_##f ((it) x, (it) y); } _(u32x4, i32x4, lo, vmrglw) _(i32x4, i32x4, lo, vmrglw) _(u16x8, i16x8, lo, vmrglh) _(i16x8, i16x8, lo, vmrglh) _(u32x4, i32x4, hi, vmrghw) _(i32x4, i32x4, hi, vmrghw) _(u16x8, i16x8, hi, vmrghh) _(i16x8, i16x8, hi, vmrghh) #undef _ /* Unaligned loads/stores. */ #ifndef __cplusplus #define _(t) \ always_inline void t##_store_unaligned (t x, t * a) \ { clib_mem_unaligned (a, t) = x; } \ always_inline t t##_load_unaligned (t * a) \ { return clib_mem_unaligned (a, t); } _(u8x16) _(u16x8) _(u32x4) _(u64x2) _(i8x16) _(i16x8) _(i32x4) _(i64x2) #undef _ #endif #define _signed_binop(n,m,f,g) \ /* Unsigned */ \ always_inline u##n##x##m \ u##n##x##m##_##f (u##n##x##m x, u##n##x##m y) \ { return (u##n##x##m) __builtin_altivec_##g ((i##n##x##m) x, (i##n##x##m) y); } \ \ /* Signed */ \ always_inline i##n##x##m \ i##n##x##m##_##f (i##n##x##m x, i##n##x##m y) \ { return (i##n##x##m) __builtin_altivec_##g ((i##n##x##m) x, (i##n##x##m) y); } /* Compare operations. */ _signed_binop (16, 8, is_equal, vcmpequh) _signed_binop (32, 4, is_equal, vcmpequw) #undef _signed_binop always_inline u16x8 u16x8_is_zero (u16x8 x) { u16x8 zero = { 0 }; return u16x8_is_equal (x, zero); } #endif /* included_vector_altivec_h */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */