Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131834259
D38928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38928.diff
View Options
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2890,7 +2890,7 @@
static void
iflib_get_ip_forwarding(struct lro_ctrl *lc, bool *v4, bool *v6)
{
- CURVNET_SET(lc->ifp->if_vnet); /* XXX - DRVAPI */
+ CURVNET_SET(if_getvnet(lc->ifp));
#if defined(INET6)
*v6 = V_ip6_forwarding;
#endif
@@ -2980,7 +2980,7 @@
}
/* pfil needs the vnet to be set */
- CURVNET_SET_QUIET(ifp->if_vnet); /* XXX - DRVAPI */
+ CURVNET_SET_QUIET(if_getvnet(ifp));
for (budget_left = budget; budget_left > 0 && avail > 0;) {
if (__predict_false(!CTX_ACTIVE(ctx))) {
DBG_COUNTER_INC(rx_ctx_inactive);
@@ -4103,7 +4103,7 @@
goto skip_ifmp;
#endif
#ifdef ALTQ
- if (ALTQ_IS_ENABLED(&ifp->if_snd)) /* XXX - DRVAPI */
+ if (if_altq_is_enabled(ifp))
iflib_altq_if_start(ifp);
#endif
if (txq->ift_db_pending)
@@ -4315,7 +4315,7 @@
else if (ctx->isc_txq_select)
qidx = ctx->isc_txq_select(ctx->ifc_softc, m);
/* If not, use iflib's standard method */
- else if ((NTXQSETS(ctx) > 1) && M_HASHTYPE_GET(m) && !ALTQ_IS_ENABLED(&ifp->if_snd))
+ else if ((NTXQSETS(ctx) > 1) && M_HASHTYPE_GET(m) && !if_altq_is_enabled(ifp))
qidx = QIDX(ctx, m);
/* Set TX queue */
@@ -4420,7 +4420,7 @@
{
int err;
- if (ALTQ_IS_ENABLED(&ifp->if_snd)) { /* XXX - DRVAPI */
+ if (if_altq_is_enabled(ifp)) {
IFQ_ENQUEUE(&ifp->if_snd, m, err); /* XXX - DRVAPI */
if (err == 0)
iflib_altq_if_start(ifp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 1:46 PM (2 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23625377
Default Alt Text
D38928.diff (1 KB)
Attached To
Mode
D38928: iflib: Further convert to use IfAPI accessors
Attached
Detach File
Event Timeline
Log In to Comment