iflib: netmap: drop redundant check
The validity of head is already checked by nm_rxsync_prologue(). MFC after: 2 weeks
This commit is contained in:
parent
ab05ced423
commit
0d9de3fbf2
@ -1080,7 +1080,6 @@ iflib_netmap_rxsync(struct netmap_kring *kring, int flags)
|
||||
uint32_t 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;
|
||||
|
||||
if_ctx_t ctx = ifp->if_softc;
|
||||
@ -1088,9 +1087,6 @@ iflib_netmap_rxsync(struct netmap_kring *kring, int flags)
|
||||
iflib_fl_t fl = &rxq->ifr_fl[0];
|
||||
struct if_rxd_info ri;
|
||||
|
||||
if (head > lim)
|
||||
return netmap_ring_reinit(kring);
|
||||
|
||||
/*
|
||||
* netmap only uses free list 0, to avoid out of order consumption
|
||||
* of receive buffers
|
||||
|
Loading…
x
Reference in New Issue
Block a user