summaryrefslogtreecommitdiffstats
path: root/common
AgeCommit message (Expand)AuthorFilesLines
2018-08-07Enable the local cache mac addressDeepak S1-1/+9
2018-06-29Merge "Temp Fix for vFW perf issue"Deepak S3-30/+47
2018-06-12Adding support for Ubuntu 17.10...Deepak S1-1/+1
2018-06-03Temp Fix for vFW perf issueDeepak S3-30/+47
2017-10-17Rest API: Fix all the bugs in the HWLB, mask issue, etcDeepak S2-31/+45
2017-10-16Fix udp replay issueDeepak S1-1/+1
2017-10-16Fix compilation issue with older gccDeepak S2-4/+4
2017-10-16Adding app version displayDeepak S2-4/+52
2017-10-12arp: Config parameters longer than PIPELINE_MAX_ARGS chars ignoredAnand B Jyoti1-5/+0
2017-10-06common code: KW fixes for common codeVishwesh M Rudramuni9-123/+208
2017-10-03l2l3_stack: fixing the arp_route_tbl/nd_route_tblVishwesh M Rudramuni1-65/+86
2017-10-03common: arp_route_tbl entry is not workingAnand B Jyoti1-0/+2
2017-09-27REST_API: rest api client implementationVishwesh M Rudramuni9-14/+2530
2017-09-27common: Changes to common code for gateway supportAnand B Jyoti5-396/+283
2017-09-27gateway: Created common code for routing in gatewayAnand B Jyoti2-0/+322
2017-08-14Moving printf under cgnapt_dbg_printDeepak S1-1/+2
2017-07-28vnf_common: Correcting the max number of ports supportedAnand B Jyoti1-1/+1
2017-07-24[common] fixing compiler warningsVishwesh M Rudramuni2-7/+13
2017-07-21TXRX: Initialize the debug flag to disable by defaultAnand B Jyoti1-1/+1
2017-07-21[common] Adding route entry command to cmdlineVishwesh M Rudramuni1-0/+145
2017-07-18[l2l3 stack] implements new nd state machine & nd bufferingVishwesh M Rudramuni12-760/+748
2017-07-14[l2l3 stack] implements new arp state machine & arp bufferingVishwesh M Rudramuni10-2999/+684
2017-06-30l2l3_stack: Remove the build folder from l2l3_stackAnand B Jyoti3-564/+0
2017-06-27Merge "conntrack: timer reset in reply traffic causes performance impact"Deepak S1-1/+4
2017-06-23conntrack: timer reset in reply traffic causes performance impactAnand B Jyoti1-1/+4
2017-06-22conntrack: Fix to avoid duplicate connections in initial burstAnand B Jyoti1-13/+2
2017-06-15Adding Sample vCGNAPT config to run with multi-port pairv1.0.0Deepak S1-250740/+0
2017-06-01CT: Perf optimization through prefetch and condition checks in CTAnand B Jyoti2-12/+43
2017-06-01Merge "[SAMPLEVNF] Adding support to handle more than 16 ports"Deepak S7-17/+250853
2017-06-01[SAMPLEVNF] Adding support to handle more than 16 portsDeepak S7-17/+250853
2017-05-31Merge "acl_lib: remove unused dualstack code from acl library"Deepak S2-379/+0
2017-05-12Change PMD link down to warning instead of panic errorDeepak S1-1/+1
2017-05-12acl_lib: remove unused dualstack code from acl libraryAnand B Jyoti2-379/+0
2017-04-21BUGFix: Allow the vCGNAPT compile without FTP/SIP functionalityDeepak S1-1/+4
2017-04-18common: Adding common library for sample vnfVishwesh M Rudramuni78-0/+42324
n class="p">{ outb(port, reg); return inb(port + 1); } static uint64_t read_boot_order_pc(void) { uint8_t b1 = read_mc146818(0x70, 0x38); uint8_t b2 = read_mc146818(0x70, 0x3d); return b1 | (b2 << 8); } static const boot_order_test test_cases_pc[] = { { "", 0x1230, 0x1230 }, { "-no-fd-bootchk", 0x1231, 0x1231 }, { "-boot c", 0x0200, 0x0200 }, { "-boot nda", 0x3410, 0x3410 }, { "-boot order=", 0, 0 }, { "-boot order= -boot order=c", 0x0200, 0x0200 }, { "-boot once=a", 0x0100, 0x1230 }, { "-boot once=a -no-fd-bootchk", 0x0101, 0x1231 }, { "-boot once=a,order=c", 0x0100, 0x0200 }, { "-boot once=d -boot order=nda", 0x0300, 0x3410 }, { "-boot once=a -boot once=b -boot once=c", 0x0200, 0x1230 }, {} }; static void test_pc_boot_order(void) { test_boot_orders(NULL, read_boot_order_pc, test_cases_pc); } static uint8_t read_m48t59(uint64_t addr, uint16_t reg) { writeb(addr, reg & 0xff); writeb(addr + 1, reg >> 8); return readb(addr + 3); } static uint64_t read_boot_order_prep(void) { return read_m48t59(0x80000000 + 0x74, 0x34); } static const boot_order_test test_cases_prep[] = { { "", 'c', 'c' }, { "-boot c", 'c', 'c' }, { "-boot d", 'd', 'd' }, {} }; static void test_prep_boot_order(void) { test_boot_orders("prep", read_boot_order_prep, test_cases_prep); } static uint64_t read_boot_order_pmac(void) { QFWCFG *fw_cfg = mm_fw_cfg_init(0xf0000510); return qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_DEVICE); } static const boot_order_test test_cases_fw_cfg[] = { { "", 'c', 'c' }, { "-boot c", 'c', 'c' }, { "-boot d", 'd', 'd' }, { "-boot once=d,order=c", 'd', 'c' }, {} }; static void test_pmac_oldworld_boot_order(void) { test_boot_orders("g3beige", read_boot_order_pmac, test_cases_fw_cfg); } static void test_pmac_newworld_boot_order(void) { test_boot_orders("mac99", read_boot_order_pmac, test_cases_fw_cfg); } static uint64_t read_boot_order_sun4m(void) { QFWCFG *fw_cfg = mm_fw_cfg_init(0xd00000510ULL); return qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_DEVICE); } static void test_sun4m_boot_order(void) { test_boot_orders("SS-5", read_boot_order_sun4m, test_cases_fw_cfg); } static uint64_t read_boot_order_sun4u(void) { QFWCFG *fw_cfg = io_fw_cfg_init(0x510); return qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_DEVICE); } static void test_sun4u_boot_order(void) { test_boot_orders("sun4u", read_boot_order_sun4u, test_cases_fw_cfg); } int main(int argc, char *argv[]) { const char *arch = qtest_get_arch(); g_test_init(&argc, &argv, NULL); if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { qtest_add_func("boot-order/pc", test_pc_boot_order); } else if (strcmp(arch, "ppc") == 0 || strcmp(arch, "ppc64") == 0) { qtest_add_func("boot-order/prep", test_prep_boot_order); qtest_add_func("boot-order/pmac_oldworld", test_pmac_oldworld_boot_order); qtest_add_func("boot-order/pmac_newworld", test_pmac_newworld_boot_order); } else if (strcmp(arch, "sparc") == 0) { qtest_add_func("boot-order/sun4m", test_sun4m_boot_order); } else if (strcmp(arch, "sparc64") == 0) { qtest_add_func("boot-order/sun4u", test_sun4u_boot_order); } return g_test_run(); }