aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-21 19:52:29 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-21 19:52:39 +0000
commit8bfedf5852bcb846bfdd2a54989d65cdbb16f7ef (patch)
tree50ac365f815390135565b64b16a77eb1b8242aa8 /sys/dev/netmap
parent95204d7a6368990e216db0ad51ef3e6018aed27c (diff)
downloadsrc-8bfedf5852bcb846bfdd2a54989d65cdbb16f7ef.tar.gz
src-8bfedf5852bcb846bfdd2a54989d65cdbb16f7ef.zip
Diffstat (limited to 'sys/dev/netmap')
-rw-r--r--sys/dev/netmap/if_re_netmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/netmap/if_re_netmap.h b/sys/dev/netmap/if_re_netmap.h
index 0e56a731ac6a..7c356ab4bd22 100644
--- a/sys/dev/netmap/if_re_netmap.h
+++ b/sys/dev/netmap/if_re_netmap.h
@@ -176,7 +176,6 @@ re_netmap_rxsync(struct netmap_kring *kring, int flags)
struct netmap_ring *ring = kring->ring;
u_int nm_i; /* index into the netmap ring */
u_int nic_i; /* index into the NIC ring */
- u_int n;
u_int const lim = kring->nkr_num_slots - 1;
u_int const head = kring->rhead;
int force_update = (flags & NAF_FORCE_READ) || kring->nr_kflags & NKR_PENDINTR;
@@ -236,7 +235,7 @@ re_netmap_rxsync(struct netmap_kring *kring, int flags)
nm_i = kring->nr_hwcur;
if (nm_i != head) {
nic_i = netmap_idx_k2n(kring, nm_i);
- for (n = 0; nm_i != head; n++) {
+ while (nm_i != head) {
struct netmap_slot *slot = &ring->slot[nm_i];
uint64_t paddr;
void *addr = PNMB(na, slot, &paddr);