summaryrefslogtreecommitdiffstats
path: root/src/vlib/main.h
AgeCommit message (Expand)AuthorFilesLines
2018-10-25Revert "Keep RPC traffic off the shared-memory API queue"Florin Coras1-1/+0
2018-10-24Keep RPC traffic off the shared-memory API queueDave Barach1-0/+1
2018-10-23Numa-aware, growable physical memory allocator (pmalloc)Damjan Marion1-17/+2
2018-10-22X86_64 perf counter pluginDave Barach1-0/+9
2018-10-01API / CLI event-log tracingDave Barach1-4/+4
2018-09-03Deprecate old buffer replication schemeDamjan Marion1-3/+0
2018-07-18Add config option to use dlmalloc instead of mheapDave Barach1-1/+6
2018-06-03dpdk: improve buffer alloc perfomanceDamjan Marion1-2/+0
2018-03-27vlib: make cloned structures cacheline alignedDamjan Marion1-0/+1
2018-03-14vlib: internal buffer manager reworkDamjan Marion1-1/+5
2018-03-05physmem: keep only one physmem_mainDamjan Marion1-2/+0
2017-12-15VPP-1102: fix dangling references in RPC handlingDave Barach1-0/+3
2017-10-14VPP-1029: Don't call clib_longjmp(...) directly from the SIGTERM handlerDave Barach1-0/+5
2017-09-11Recombine diags and minimum barrier open time changes (VPP-968)Colin Tregenza Dancer1-0/+9
2017-09-07vlib physmem reworkDamjan Marion1-2/+14
2017-09-05Refork worker thread data structures in parallel (VPP-970)Colin Tregenza Dancer1-0/+6
2017-05-16VPP-845: add configurable elog post-mortem dumpDave Barach1-0/+4
2017-05-10completelly deprecate os_get_cpu_number, replace new occurencesDamjan Marion1-1/+1
2017-04-06Use thread local storage for thread indexDamjan Marion1-1/+1
2017-03-31vlib: extend foreach_vlib_main macro to assert if workers are not parkedDamjan Marion1-0/+3
2017-03-16vlib: make runtime_data thread-localDamjan Marion1-0/+1
2017-03-10vlib: deduplicatee code in main and worker main loopDamjan Marion1-0/+2
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+333
class="o">.config_ip6() i.disable_ipv6_ra() i.resolve_arp() i.resolve_ndp() except Exception: super(TestPing, cls).tearDownClass() raise def tearDown(self): super(TestPing, self).tearDown() if not self.vpp_dead: self.vapi.cli("show hardware") def test_ping_basic(self): """ basic ping test """ try: self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.logger.info(self.vapi.cli("show ip arp")) self.logger.info(self.vapi.cli("show ip6 neighbors")) remote_ip4 = self.pg1.remote_ip4 ping_cmd = "ping " + remote_ip4 + " interval 0.01 repeat 10" ret = self.vapi.cli(ping_cmd) self.logger.info(ret) out = self.pg1.get_capture(10) icmp_id = None icmp_seq = 1 for p in out: ip = p[IP] self.assertEqual(ip.version, 4) self.assertEqual(ip.flags, 0) self.assertEqual(ip.src, self.pg1.local_ip4) self.assertEqual(ip.dst, self.pg1.remote_ip4) self.assertEqual(ip.proto, 1) self.assertEqual(len(ip.options), 0) self.assertGreaterEqual(ip.ttl, 254) icmp = p[ICMP] self.assertEqual(icmp.type, 8) self.assertEqual(icmp.code, 0) self.assertEqual(icmp.seq, icmp_seq) icmp_seq = icmp_seq + 1 if icmp_id is None: icmp_id = icmp.id else: self.assertEqual(icmp.id, icmp_id) finally: self.vapi.cli("show error") def test_ping_burst(self): """ burst ping test """ try: self.pg_enable_capture(self.pg_interfaces) self.pg_start() self.logger.info(self.vapi.cli("show ip arp")) self.logger.info(self.vapi.cli("show ip6 neighbors")) remote_ip4 = self.pg1.remote_ip4 ping_cmd = "ping " + remote_ip4 + " interval 0.01 burst 3" ret = self.vapi.cli(ping_cmd) self.logger.info(ret) out = self.pg1.get_capture(3*5) icmp_id = None icmp_seq = 1 count = 0 for p in out: ip = p[IP] self.assertEqual(ip.version, 4) self.assertEqual(ip.flags, 0) self.assertEqual(ip.src, self.pg1.local_ip4) self.assertEqual(ip.dst, self.pg1.remote_ip4) self.assertEqual(ip.proto, 1) self.assertEqual(len(ip.options), 0) self.assertGreaterEqual(ip.ttl, 254) icmp = p[ICMP] self.assertEqual(icmp.type, 8) self.assertEqual(icmp.code, 0) self.assertEqual(icmp.seq, icmp_seq) count = count + 1 if count >= 3: icmp_seq = icmp_seq + 1 count = 0 if icmp_id is None: icmp_id = icmp.id else: self.assertEqual(icmp.id, icmp_id) finally: self.vapi.cli("show error")