aboutsummaryrefslogtreecommitdiffstats
path: root/build-root
AgeCommit message (Expand)AuthorFilesLines
2017-08-18Update CSIT tests 170731 -> 170814Jan Gelety1-1/+1
2017-08-02Update CSIT tests 170724 -> 170731Jan Gelety1-1/+1
2017-07-24Update CSIT tests 170626 -> 170724Jan Gelety1-1/+1
2017-06-26Update CSIT tests 170622 -> 170626Jan Gelety1-1/+1
2017-06-24make: Fix parallel building with some container platforms (VPP-880)Chris Luke1-10/+7
2017-06-22Update CSIT tests 170612 -> 170622Jan Gelety1-1/+1
2017-06-12Update CSIT tests 170605 -> 170612Jan Gelety1-1/+1
2017-06-06Update CSIT tests 170529 -> 170605Jan Gelety1-1/+1
2017-06-02Update CSIT tests 170518 -> 170529Peter Mikus1-1/+1
2017-05-31Revert "Update CSIT tests 170518 -> 170529"Dave Wallace1-1/+1
2017-05-29Relocate Coverity scriptsChris Luke2-89/+0
2017-05-29Update CSIT tests 170518 -> 170529Jan Gelety1-1/+1
2017-05-24Simple script to 'git blame' on new Coverity issuesChris Luke1-0/+36
2017-05-18Update CSIT tests 170504 -> 170518Jan Gelety1-1/+1
2017-05-15move to CSIT 170504Neale Ranns1-1/+1
2017-04-26Move scripts to extras/Damjan Marion3-133/+0
2017-04-24Move emacs stuff to extras/Damjan Marion27-3251/+1
2017-04-20Move vagrant stuff to extras/Damjan Marion11-401/+1
2017-04-20Extend ebuild to specify "configure" subdir, enable verify for sample-pluginDamjan Marion1-2/+4
2017-04-19Fix "make dist" to include version number, docouple it from rpm packagingDamjan Marion3-343/+0
2017-04-03Update CSIT tests 170313 -> 170403Jan Gelety1-1/+1
2017-03-27Python API: Fixup of debian package after cFFI changes.Ole Troan4-15/+8
2017-03-17Python API: Fix RPM packaging (again).Ole Troan1-4/+6
2017-03-15Python API: Change from cPython to CFFI.Ole Troan1-9/+3
2017-03-14Update CSIT tests 170302 -> 170313Jan Gelety1-1/+1
2017-03-04Fix duplicate binary API registration messages / bugsDave Barach1-2/+2
2017-03-02Update CSIT tests 170220 -> 170302Jan Gelety1-1/+1
2017-02-24Fixed QAT device binding and device unbinding when vpp package is removedRadu Nicolau2-2/+2
2017-02-22VPP-635: CLI Memory leak with invalid parameterBilly McFall1-4/+15
2017-02-20Update CSIT tests 170213 -> 170220Jan Gelety1-1/+1
2017-02-14Update CSIT tests 170129 -> 170213Jan Gelety1-1/+1
2017-02-10Update plugin templatesDave Barach3-118/+106
2017-02-04dpdk: move to uio_pci_genericDamjan Marion3-5/+5
2017-02-02Refactor fragile msg macro W and W2 to not burry return control flow.Jon Loeliger1-1/+3
2017-02-02Localize the timeout variable within the W message macro.Jon Loeliger1-2/+1
2017-02-02Convert message macro S to accept a message pointer parameter;Jon Loeliger1-2/+2
2017-02-02Convert M() and M2() macros to honor their second, mp, parameter.Jon Loeliger1-2/+2
2017-02-02Ensure all M() and M2() second parameters are the message pointer.Jon Loeliger1-1/+1
2017-02-02Update default Vagrant box to Ubuntu 16.04, VPP-616Dave Wallace3-12/+22
2017-01-31Prep work for Coverity upload processing via JenkinsDave Barach1-0/+53
2017-01-31Update CSIT tests 170122 -> 170129Jan Gelety1-1/+1
2017-01-27package only the vpp binaries (rpm)Gabriel Ganne1-1/+1
2017-01-25Update CSIT tests 170108 -> 170122Jan Gelety1-1/+1
2017-01-20Add dpdk development packagingDamjan Marion6-54/+2
2017-01-17vagrant: stop rsync from wiping changes from /vppPadraig Connolly1-15/+18
2017-01-17fix rpm warnings for defattr directory of lua/*Gabriel Ganne1-1/+1
2017-01-13Fix remove-rpath script, take 2Damjan Marion1-1/+1
2017-01-13Fix remove-rpath scriptDamjan Marion1-1/+1
2017-01-13vppctl: new bash completion for vppctl commandsPadraig Connolly1-0/+6
2017-01-11Remove unnecessary build macro to fix slow builds.Thomas F Herbert1-4/+0
else { m_cur_client_ip++; } } if (i>=100) { printf(" ERROR ! sparse mac-ip files is not supported yet !\n"); exit(-1); } m_client_ip = m_cur_client_ip; CClientInfoBase* client = get_client_by_ip(m_client_ip); memcpy(&m_result_client_mac, client->get_mac_addr(), sizeof(mac_addr_align_t)); m_result_client_ip = m_client_ip; m_result_server_ip = m_cur_server_ip ; /* printf("ip:%x,mac:%x,%x,%x,%x,%x,%x, inused:%x\n",m_client_ip, m_result_client_mac.mac[0], m_result_client_mac.mac[1], m_result_client_mac.mac[2], m_result_client_mac.mac[3], m_result_client_mac.mac[4], m_result_client_mac.mac[5], m_result_client_mac.inused); */ m_cur_client_ip ++; m_cur_server_ip ++; if (m_cur_client_ip > m_max_client_ip) { m_cur_client_ip = m_min_client_ip; } if (m_cur_server_ip > m_max_server_ip) { m_cur_server_ip = m_min_server_ip; } } void CTupleGeneratorSmart::return_all_client_ports() { for(int idx=0;idx<m_client.size();++idx) { m_client.at(idx)->return_all_ports(); } } void CTupleGenYamlInfo::Dump(FILE *fd){ fprintf(fd," dist : %d \n",m_client_dist); fprintf(fd," clients : %08x -%08x \n",m_clients_ip_start,m_clients_ip_end); fprintf(fd," servers : %08x -%08x \n",m_servers_ip_start,m_servers_ip_end); fprintf(fd," clients per gb : %d \n",m_number_of_clients_per_gb); fprintf(fd," min clients : %d \n",m_min_clients); fprintf(fd," tcp aging : %d sec \n",m_tcp_aging_sec); fprintf(fd," udp aging : %d sec \n",m_udp_aging_sec); } void operator >> (const YAML::Node& node, CTupleGenYamlInfo & fi) { std::string tmp; try { node["distribution"] >> tmp ; if (tmp == "seq" ) { fi.m_client_dist=cdSEQ_DIST; }else{ if (tmp == "random") { fi.m_client_dist=cdRANDOM_DIST; }else{ if (tmp == "normal") { fi.m_client_dist=cdNORMAL_DIST; } } } }catch ( const std::exception& e ) { fi.m_client_dist=cdSEQ_DIST; } utl_yaml_read_ip_addr(node,"clients_start",fi.m_clients_ip_start); utl_yaml_read_ip_addr(node,"clients_end",fi.m_clients_ip_end); utl_yaml_read_ip_addr(node,"servers_start",fi.m_servers_ip_start); utl_yaml_read_ip_addr(node,"servers_end",fi.m_servers_ip_end); utl_yaml_read_uint32(node,"clients_per_gb",fi.m_number_of_clients_per_gb); utl_yaml_read_uint32(node,"min_clients",fi.m_min_clients); utl_yaml_read_ip_addr(node,"dual_port_mask",fi.m_dual_interface_mask); utl_yaml_read_uint16(node,"tcp_aging",fi.m_tcp_aging_sec); utl_yaml_read_uint16(node,"udp_aging",fi.m_udp_aging_sec); } bool CTupleGenYamlInfo::is_valid(uint32_t num_threads,bool is_plugins){ if ( m_servers_ip_start > m_servers_ip_end ){ printf(" ERROR The servers_ip_start must be bigger than servers_ip_end \n"); return(false); } if ( m_clients_ip_start > m_clients_ip_end ){ printf(" ERROR The clients_ip_start must be bigger than clients_ip_end \n"); return(false); } uint32_t servers= (m_servers_ip_end - m_servers_ip_start +1); if ( servers < num_threads ) { printf(" ERROR The number of servers should be at least number of threads %d \n",num_threads); return (false); } uint32_t clients= (m_clients_ip_end - m_clients_ip_start +1); if ( clients < num_threads ) { printf(" ERROR The number of clients should be at least number of threads %d \n",num_threads); return (false); } /* defect for plugin */ if (is_plugins) { if ( getTotalServers() < getTotalClients() ){ printf(" Plugin is configured. in that case due to a limitation ( defect trex-54 ) \n"); printf(" the number of servers should be bigger than number of clients \n"); return (false); } /* update number of servers in a way that it would be exact multiplication */ uint32_t mul=getTotalServers() / getTotalClients(); uint32_t new_server_num=mul*getTotalClients(); m_servers_ip_end = m_servers_ip_start + new_server_num-1 ; assert(getTotalServers() %getTotalClients() ==0); } /* if (clients > 00000) { printf(" The number of clients requested is %d maximum supported : %d \n",clients,100000); return (false); } */ return (true); } /* split the clients and server by dual_port_id and thread_id , clients is splited by threads and dual_port_id servers is spliteed by dual_port_id */ void split_clients(uint32_t thread_id, uint32_t total_threads, uint32_t dual_port_id, CTupleGenYamlInfo & fi, CClientPortion & portion){ uint32_t clients_chunk = fi.getTotalClients()/total_threads; // FIXME need to fix this when fixing the server uint32_t servers_chunk = fi.getTotalServers()/total_threads; assert(clients_chunk>0); assert(servers_chunk>0); uint32_t dual_if_mask=(dual_port_id*fi.m_dual_interface_mask); portion.m_client_start = fi.m_clients_ip_start + thread_id*clients_chunk + dual_if_mask; portion.m_client_end = portion.m_client_start + clients_chunk -1 ; portion.m_server_start = fi.m_servers_ip_start + thread_id*servers_chunk +dual_if_mask; portion.m_server_end = portion.m_server_start + servers_chunk -1; }