nb_fs_per_lcore = (streamid_t) (nb_fs / nb_fc);
nb_extra = (lcoreid_t) (nb_fs % nb_fc);
}
- nb_extra = (lcoreid_t) (nb_fs % nb_fc);
nb_lc = (lcoreid_t) (nb_fc - nb_extra);
sm_id = 0;
ip = IPv4(128, 0, 0, 0);
depth = 24;
- next_hop_add = 100;
status = rte_lpm_delete(lpm, ip, depth);
TEST_LPM_ASSERT(status < 0);
ip = IPv4(128, 0, 0, 0);
depth = 32;
- next_hop_add = 100;
status = rte_lpm_delete(lpm, ip, depth);
TEST_LPM_ASSERT(status < 0);
next_hop_add = 100;
/* Add 256 rules that require a tbl8 extension */
- for (ip = 0; ip <= IPv4(0, 0, 255, 0); ip += 256) {
+ for (; ip <= IPv4(0, 0, 255, 0); ip += 256) {
status = rte_lpm_add(lpm, ip, depth, next_hop_add);
TEST_LPM_ASSERT(status == 0);
}
count = 0;
- setwm = rte_ring_set_water_mark(r, count);
+ rte_ring_set_water_mark(r, count);
if (r->prod.watermark != r->prod.size) {
printf("Test failed to detect invalid watermark count value\n");
goto error;
cur_dst = dst;
ret = rte_ring_mp_enqueue(r, cur_src);
- cur_src += 1;
if (ret != 0)
goto fail;
ret = rte_ring_mc_dequeue(r, cur_dst);
- cur_dst += 1;
if (ret != 0)
goto fail;
- cur_src = src;
- cur_dst = dst;
-
if (src)
free(src);
if (dst)