summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
AgeCommit message (Expand)AuthorFilesLines
2019-04-25IPSEC; dpdk backend for tunnel interface encryptionNeale Ranns2-4/+75
2019-04-24dpdk: fix interface namingFlorin Coras1-1/+1
2019-04-24dpdk: get a rid of "Invalid port_id=" log messageDamjan Marion1-3/+5
2019-04-23dpdk_esp_encrypt: add to prefetch dataZhiyong Yang1-3/+13
2019-04-17Predicate a packet whether be marked by PKT_RX_FDIR_ID instead of PKT_RX_FDIRSimon Zhang1-1/+1
2019-04-17Default nums of RX/TX descriptors changed to 512 for 2M page on DVNZhiyong Yang1-1/+63
2019-04-16Add direct packets to specific flow action in dpdk flowSimon Zhang2-4/+17
2019-04-16flow: add rte_flow check before creating by rte_flow_validateSimon Zhang1-0/+14
2019-04-08rdma: fix DPDK MLX driver conflictBenoƮt Ganne1-5/+1
2019-04-02dpdk: fix build error when mlx support enabledMatthew Smith1-1/+1
2019-03-28ipsec: USE_EXTENDED_SEQ_NUM -> USE_ESNDamjan Marion3-5/+5
2019-03-28cmake: add vpp_plugin_find_library macroDamjan Marion1-21/+9
2019-03-28ipsec: anti-replay code cleanupDamjan Marion1-35/+15
2019-03-27ipsec: compress ipsec_sa_t so data used by dataplane code fits in cachelineDamjan Marion3-22/+24
2019-03-22dpdk: do not enable VLAN stripping on Cisco VIC adapters by defaultHyong Youb Kim1-11/+22
2019-03-14dpdk: Add E810 family supportChenminSun3-0/+6
2019-03-13Add the SRIOV variant PCI Device ID of the Cisco VICJay Lubomirski1-1/+2
2019-03-12dpdk: pass log-level configuration to EALStephen Hemminger3-31/+0
2019-03-01dpdk: update mlx[45] linking optionsMatthew Smith1-1/+1
2019-02-26Move pcap rx/tx trace code out of the dpdk pluginDave Barach4-371/+0
2019-02-22Add no-append flag to vlib_frame_tDamjan Marion1-0/+1
2019-02-19dpdk: update Cisco VIC port typeHyong Youb Kim1-4/+1
2019-02-19dpdk: do not shift PKT_RX_FDIRHyong Youb Kim1-1/+1
2019-02-18IPSEC: move SA counters into the stats segmentNeale Ranns2-4/+12
2019-02-15dpdk-ipsec: store buffer index into crypto-op privateKingwel Xie5-44/+115
2019-02-12fix assert failureDave Barach1-0/+6
2019-02-09buffers: fix typoDamjan Marion1-1/+1
2019-02-07IPSEC: no second lookup after tunnel encapNeale Ranns1-4/+5
2019-02-06buffers: make buffer data size configurable from startup configDamjan Marion1-1/+1
2019-02-06dpdp-crypto: fix cryptodev segfault with dpdk 19.02Sergio Gonzalez Monroy1-11/+16
2019-02-05crypto-input: fix broken buffer trace issueKingwel Xie1-37/+16
2019-02-02Disable hqos part deuxDave Barach2-0/+4
2019-02-02dpdk: bump to dpdk 19.02Damjan Marion5-22/+33
2019-01-31buffers: vallidate that buffer is allocated during buffer pool putDamjan Marion1-1/+1
2019-01-31dpdk-ipsec: use single queue pair per crypto resourceSergio Gonzalez Monroy6-32/+30
2019-01-31dpdk: populate mempool mem_listDamjan Marion1-2/+16
2019-01-31dpdk: store buffer poool index in mempool pool_idDamjan Marion1-22/+10
2019-01-31buffers: reinitialize metadata, add additional validationDamjan Marion1-13/+25
2019-01-30buffers: add missing ref_count = 1 in driversDamjan Marion1-0/+1
2019-01-30buffers: major cleanup and improvementsDamjan Marion9-679/+317
2019-01-26cmake: parse DPDK config without compilationDamjan Marion1-57/+15
2019-01-26cmake: add support for linking with DPDK shared libsDamjan Marion1-67/+121
2019-01-21crypto-input: fix crash bugKingwel Xie1-8/+12
2019-01-20dpdk: add buffer.hDamjan Marion12-13/+43
2019-01-20buffers: remove vlib_buffer_delete_free_listDamjan Marion1-47/+0
2019-01-20buffers: don't init metadata, as it is already initializedDamjan Marion2-5/+1
2019-01-20buffers: keep buffer_main in vlib_main_tDamjan Marion1-2/+2
2019-01-19buffers: remove free-list information from buffer metadataDamjan Marion1-2/+1
2019-01-18deprecate clib_memcpy64_x4Damjan Marion2-24/+24
2019-01-17cmake: initial cross-compilation supportDamjan Marion1-0/+5
bd ip_range_start = 10 ip_range_end = ip_range_start + n_ucast_tunnels next_hop_address = cls.pg0.remote_ip4 for dest_ip4 in ip4_range(next_hop_address, ip_range_start, ip_range_end): # add host route so dest_ip4n will not be resolved rip = VppIpRoute(cls, dest_ip4, 32, [VppRoutePath(next_hop_address, INVALID_INDEX)], register=False) rip.add_vpp_config() dest_ip4n = socket.inet_pton(socket.AF_INET, dest_ip4) r = cls.vapi.vxlan_gpe_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, vni=vni) cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=vni) @classmethod def add_del_shared_mcast_dst_load(cls, is_add): """ add or del tunnels sharing the same mcast dst to test vxlan_gpe ref_count mechanism """ n_shared_dst_tunnels = 20 vni_start = 1000 vni_end = vni_start + n_shared_dst_tunnels for vni in range(vni_start, vni_end): r = cls.vapi.vxlan_gpe_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, vni=vni, is_add=is_add) if r.sw_if_index == 0xffffffff: raise ValueError("bad sw_if_index: ~0") @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 vxlan_gpe 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): vni = bytearray(dest_ip4n)[3] cls.vapi.vxlan_gpe_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=dest_ip4n, mcast_sw_if_index=1, vni=vni, 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 VXLAN-GPE 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(TestVxlanGpe, cls).setUpClass() try: cls.dport = 4790 cls.flags = 0x0c # 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 VXLAN-GPE VTEP on VPP pg0, and put vxlan_gpe_tunnel0 # and pg1 into BD. cls.single_tunnel_bd = 11 r = cls.vapi.vxlan_gpe_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.pg0.remote_ip4n, vni=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge( rx_sw_if_index=cls.pg1.sw_if_index, bd_id=cls.single_tunnel_bd) # Setup vni 2 to test multicast flooding cls.n_ucast_tunnels = 10 cls.mcast_flood_bd = 12 cls.create_vxlan_gpe_flood_test_bd(cls.mcast_flood_bd, cls.n_ucast_tunnels) r = cls.vapi.vxlan_gpe_add_del_tunnel( src_addr=cls.pg0.local_ip4n, dst_addr=cls.mcast_ip4n, mcast_sw_if_index=1, vni=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=cls.mcast_flood_bd) cls.vapi.sw_interface_set_l2_bridge( rx_sw_if_index=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 vni 3 to test unicast flooding cls.ucast_flood_bd = 13 cls.create_vxlan_gpe_flood_test_bd(cls.ucast_flood_bd, cls.n_ucast_tunnels) cls.vapi.sw_interface_set_l2_bridge( rx_sw_if_index=cls.pg3.sw_if_index, bd_id=cls.ucast_flood_bd) except Exception: super(TestVxlanGpe, cls).tearDownClass() raise @classmethod def tearDownClass(cls): super(TestVxlanGpe, cls).tearDownClass() @unittest.skip("test disabled for vxlan-gpe") def test_mcast_flood(self): """ inherited from BridgeDomain """ pass @unittest.skip("test disabled for vxlan-gpe") def test_mcast_rcv(self): """ inherited from BridgeDomain """ pass # 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(TestVxlanGpe, self).tearDown() def show_commands_at_teardown(self): 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 vxlan-gpe")) self.logger.info(self.vapi.cli("show trace")) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)