aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2019-11-16bfd: allow IPv6 link-local address as local addressAlexander Chernavin1-15/+30
2019-11-16tcp: close session on retransmit failureFlorin Coras1-0/+1
2019-11-16quic: replace quicly patch with upstreamed fixDave Wallace1-10/+11
2019-11-15build: fix docs/doxygen targetsDave Wallace2-5/+9
2019-11-15build: make checkstyle-* targets and cleanupDave Wallace2-17/+107
2019-11-15tests: Add UT to test incomplete MPLS adjacencies send ARP requestsNeale Ranns1-3/+42
2019-11-15tests: Remove the unrequired VPP IP address/prefix class wrappersNeale Ranns19-541/+410
2019-11-14ikev2: add definitions for libsslAleksander Djuric1-0/+6
2019-11-14ikev2: correct byte order in api handlersAleksander Djuric1-10/+21
2019-11-14dpdk: Enable bnxt PMDAndy Gospodarek4-1/+21
2019-11-14virtio: refactor virtio-pci loggingDamjan Marion8-98/+146
2019-11-14interface: send proper link/admin status in eventAlexander Chernavin1-4/+5
2019-11-14fib: Copy the prefix before use in case the underlying entry reallocs.Neale Ranns3-6/+19
2019-11-14vcl: Handle newer Glibc (>2.28) where fcntl is actually fcntl64Carl Smith4-0/+51
2019-11-13dhcp: option 61 add missing type fieldDave Barach2-3/+6
2019-11-13vlib: improve vlib "make test" code coverageDave Barach1-0/+114
2019-11-13build: Revert "build: fix make checkstyle"Dave Wallace1-1/+1
2019-11-13gtpu: check packet has enough data for gtpu headerBenoît Ganne2-106/+60
2019-11-13virtio: feature arc have higher priority than redirectDamjan Marion2-3/+5
2019-11-13crypto: do not crash if no crypto engine loadedBenoît Ganne1-1/+1
2019-11-13build: fix make checkstyleFlorin Coras1-1/+1
2019-11-13papi: enhance MACAddress() equalityPaul Vinciguerra1-1/+7
2019-11-12tap: Move client registration check to topPaul Vinciguerra2-9/+14
2019-11-12docs: update logging configuration section.Paul Vinciguerra1-10/+10
2019-11-12virtio: remove unused codeDamjan Marion1-4/+0
2019-11-12interface: Allow VLAN tag-rewrite on non-sub-interfaces too.Jon Loeliger7-56/+134
2019-11-12vcl: fix nonblocking accept with >1 event in the queueCarl Smith1-3/+3
2019-11-12ip: IP address and prefix types (moved from LISP)Neale Ranns21-483/+545
2019-11-12papi: add wrapper to validate crc manifestOle Troan1-0/+28
2019-11-12session: session enable in multiworkerNathan Skrzypczak2-1/+18
2019-11-12tls: fix picotls coverity warningsFlorin Coras1-13/+13
2019-11-12bonding: fix non-null terminated vectorBenoît Ganne1-2/+2
2019-11-12crypto: not use vec api with opt_data[VNET_CRYPTO_N_OP_IDS]Lijian Zhang3-3/+4
2019-11-12svm: improve fifo segment verbose cliFlorin Coras2-9/+37
2019-11-11vlib: fix handoff queue sequencing bugDave Barach1-1/+2
2019-11-11tcp: improve lost rxt heuristicFlorin Coras3-34/+55
2019-11-11ip: functional interface to ip fragmentationOle Troan12-412/+476
2019-11-10dhcp: ipv6 prefix delegation improvementsDave Barach4-14/+116
2019-11-10tls: picotls engine basic enabling for TLSSimon Zhang5-0/+878
2019-11-10session: re-set tx fifo event if out of buffersFlorin Coras1-1/+2
2019-11-10tcp: avoid retransmits post resetFlorin Coras2-0/+6
2019-11-09dhcp: fix dhcpv6 client and dhcpv6 prefix delegationDave Barach3-37/+19
2019-11-09build: Fix typo introduced in src/plugins/mdata/FEATURE.yamlPaul Vinciguerra1-1/+1
2019-11-08build: use cmake build typesDamjan Marion3-38/+39
2019-11-08rdma: fix next node rx redirectBenoît Ganne1-8/+2
2019-11-08rdma: fix name auto-generation on createBenoît Ganne1-1/+5
2019-11-08ipsec: remove dedicated IPSec tunnelsNeale Ranns25-1737/+626
2019-11-08vcl: fix epoll connected events sidFlorin Coras1-2/+1
2019-11-08tap: add check for vhost-net backendDamjan Marion1-0/+9
2019-11-08tap: fix cli parserDamjan Marion1-4/+5
>.enable_capture() self.pg_start() # Get packet from each tunnel and assert it's corectly encapsulated. out = self.pg0.get_capture(self.n_ucast_tunnels) for pkt in out: self.check_encapsulation(pkt, self.ucast_flood_bd, True) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) def test_mcast_flood(self): """ Multicast flood test Send frames from pg2 Verify receipt of encapsulated frames on pg0 """ self.pg2.add_stream([self.frame_reply]) self.pg0.enable_capture() self.pg_start() # Pick first received frame and check if it's corectly encapsulated. out = self.pg0.get_capture(1) pkt = out[0] self.check_encapsulation(pkt, self.mcast_flood_bd, local_only=False, mcast_pkt=True) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) @classmethod def create_gtpu_flood_test_bd(cls, teid, n_ucast_tunnels): # Create 10 ucast gtpu tunnels under bd ip_range_start = 10 ip_range_end = ip_range_start + n_ucast_tunnels next_hop_address = cls.pg0.remote_ip4n for dest_ip4n in ip4n_range(next_hop_address, ip_range_start, ip_range_end): # add host route so dest_ip4n will not be resolved cls.vapi.ip_add_del_route(dest_ip4n, 32, next_hop_address) r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, teid=teid) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=teid) @classmethod def add_del_shared_mcast_dst_load(cls, is_add): """ add or del tunnels sharing the same mcast dst to test gtpu ref_count mechanism """ n_shared_dst_tunnels = 20 teid_start = 1000 teid_end = teid_start + n_shared_dst_tunnels for teid in range(teid_start, teid_end): r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, teid=teid, is_add=is_add) if r.sw_if_index == 0xffffffff: raise "bad sw_if_index" @classmethod def add_shared_mcast_dst_load(cls): cls.add_del_shared_mcast_dst_load(is_add=1) @classmethod def del_shared_mcast_dst_load(cls): cls.add_del_shared_mcast_dst_load(is_add=0) @classmethod def add_del_mcast_tunnels_load(cls, is_add): """ add or del tunnels to test gtpu stability """ n_distinct_dst_tunnels = 20 ip_range_start = 10 ip_range_end = ip_range_start + n_distinct_dst_tunnels for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start, ip_range_end): teid = bytearray(dest_ip4n)[3] cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, mcast_sw_if_index=1, teid=teid, is_add=is_add) @classmethod def add_mcast_tunnels_load(cls): cls.add_del_mcast_tunnels_load(is_add=1) @classmethod def del_mcast_tunnels_load(cls): cls.add_del_mcast_tunnels_load(is_add=0) # Class method to start the GTPU test case. # Overrides setUpClass method in VppTestCase class. # Python try..except statement is used to ensure that the tear down of # the class will be executed even if exception is raised. # @param cls The class pointer. @classmethod def setUpClass(cls): super(TestGtpu, cls).setUpClass() try: cls.dport = 2152 cls.gtp_type = 0xff # Create 2 pg interfaces. cls.create_pg_interfaces(range(4)) for pg in cls.pg_interfaces: pg.admin_up() # Configure IPv4 addresses on VPP pg0. cls.pg0.config_ip4() # Resolve MAC address for VPP's IP address on pg0. cls.pg0.resolve_arp() # Our Multicast address cls.mcast_ip4 = '239.1.1.1' cls.mcast_ip4n = socket.inet_pton(socket.AF_INET, cls.mcast_ip4) iplong = atol(cls.mcast_ip4) cls.mcast_mac = "01:00:5e:%02x:%02x:%02x" % ( (iplong >> 16) & 0x7F, (iplong >> 8) & 0xFF, iplong & 0xFF) # Create GTPU VTEP on VPP pg0, and put gtpu_tunnel0 and pg1 # into BD. cls.single_tunnel_bd = 11 r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.pg0.remote_ip4n, teid=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge(cls.pg1.sw_if_index, bd_id=cls.single_tunnel_bd) # Setup teid 2 to test multicast flooding cls.n_ucast_tunnels = 10 cls.mcast_flood_bd = 12 cls.create_gtpu_flood_test_bd(cls.mcast_flood_bd, cls.n_ucast_tunnels) r = cls.vapi.gtpu_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, teid=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge(r.sw_if_index, bd_id=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge(cls.pg2.sw_if_index, bd_id=cls.mcast_flood_bd) # Add and delete mcast tunnels to check stability cls.add_shared_mcast_dst_load() cls.add_mcast_tunnels_load() cls.del_shared_mcast_dst_load() cls.del_mcast_tunnels_load() # Setup teid 3 to test unicast flooding cls.ucast_flood_bd = 13 cls.create_gtpu_flood_test_bd(cls.ucast_flood_bd, cls.n_ucast_tunnels) cls.vapi.sw_interface_set_l2_bridge(cls.pg3.sw_if_index, bd_id=cls.ucast_flood_bd) except Exception: super(TestGtpu, cls).tearDownClass() raise # Method to define VPP actions before tear down of the test case. # Overrides tearDown method in VppTestCase class. # @param self The object pointer. def tearDown(self): super(TestGtpu, self).tearDown() if not self.vpp_dead: self.logger.info(self.vapi.cli("show bridge-domain 11 detail")) self.logger.info(self.vapi.cli("show bridge-domain 12 detail")) self.logger.info(self.vapi.cli("show bridge-domain 13 detail")) self.logger.info(self.vapi.cli("show int")) self.logger.info(self.vapi.cli("show gtpu tunnel")) self.logger.info(self.vapi.cli("show trace")) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)