netmap: ring size limit not enough for multi-queue em(4)

Also mutes a spammy message.  Bravely going where no man
has gone before.  :)
This commit is contained in:
Franco Fichtner 2019-12-10 10:51:39 +01:00
parent 9832fead8f
commit 36fb07bfef
2 changed files with 2 additions and 2 deletions

View file

@ -4331,7 +4331,7 @@ netmap_transmit(if_t ifp, struct mbuf *m)
if (busy < 0)
busy += kring->nkr_num_slots;
if (busy + mbq_len(q) >= kring->nkr_num_slots - 1) {
nm_prlim(2, "%s full hwcur %d hwtail %d qlen %d", na->name,
nm_prdis(2, "%s full hwcur %d hwtail %d qlen %d", na->name,
kring->nr_hwcur, kring->nr_hwtail, mbq_len(q));
} else {
mbq_enqueue(q, m);

View file

@ -565,7 +565,7 @@ struct netmap_mem_d nm_mem = { /* Our memory allocator. */
.num = 100,
},
[NETMAP_RING_POOL] = {
.size = 9*PAGE_SIZE,
.size = 18*PAGE_SIZE,
.num = 200,
},
[NETMAP_BUF_POOL] = {