svn commit: r359002 - head/sys/net
Patrick Kelsey
pkelsey at FreeBSD.org
Sat Mar 14 20:13:43 UTC 2020
Author: pkelsey
Date: Sat Mar 14 20:13:42 2020
New Revision: 359002
URL: https://svnweb.freebsd.org/changeset/base/359002
Log:
Remove extraneous code from iflib
ifsd_cidx is never used, and the line removed from rxd_frag_to_sd() is
just dead code.
Reviewed by: erj, gallatin
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D23951
Modified:
head/sys/net/iflib.c
Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c Sat Mar 14 20:11:46 2020 (r359001)
+++ head/sys/net/iflib.c Sat Mar 14 20:13:42 2020 (r359002)
@@ -451,7 +451,6 @@ struct iflib_rxq {
typedef struct if_rxsd {
caddr_t *ifsd_cl;
iflib_fl_t ifsd_fl;
- qidx_t ifsd_cidx;
} *if_rxsd_t;
/* multiple of word size */
@@ -2552,7 +2551,6 @@ rxd_frag_to_sd(iflib_rxq_t rxq, if_rxd_frag_t irf, boo
cidx = irf->irf_idx;
fl = &rxq->ifr_fl[flid];
sd->ifsd_fl = fl;
- sd->ifsd_cidx = cidx;
m = fl->ifl_sds.ifsd_m[cidx];
sd->ifsd_cl = &fl->ifl_sds.ifsd_cl[cidx];
fl->ifl_credits--;
@@ -2564,7 +2562,6 @@ rxd_frag_to_sd(iflib_rxq_t rxq, if_rxd_frag_t irf, boo
next = (cidx + CACHE_PTR_INCREMENT) & (fl->ifl_size-1);
prefetch(&fl->ifl_sds.ifsd_map[next]);
map = fl->ifl_sds.ifsd_map[cidx];
- next = (cidx + CACHE_LINE_SIZE) & (fl->ifl_size-1);
bus_dmamap_sync(fl->ifl_buf_tag, map, BUS_DMASYNC_POSTREAD);
More information about the svn-src-all
mailing list