aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/if_vtnet_netmap.h
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2020-06-18 10:03:17 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2020-06-18 10:03:17 +0000
commiteb49c2778b3b0cfc38eb5659ec94a48bd5d251c9 (patch)
treef4c149b6ccb35591bea197a05829bbd4659ab985 /sys/dev/netmap/if_vtnet_netmap.h
parentfa2d463e81ee2f18276f89eeb56883b509d55807 (diff)
Notes
Diffstat (limited to 'sys/dev/netmap/if_vtnet_netmap.h')
-rw-r--r--sys/dev/netmap/if_vtnet_netmap.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/dev/netmap/if_vtnet_netmap.h b/sys/dev/netmap/if_vtnet_netmap.h
index 113a85655531..fc667738a1f5 100644
--- a/sys/dev/netmap/if_vtnet_netmap.h
+++ b/sys/dev/netmap/if_vtnet_netmap.h
@@ -33,25 +33,6 @@
#include <vm/pmap.h> /* vtophys ? */
#include <dev/netmap/netmap_kern.h>
-/*
- * Return 1 if the queue identified by 't' and 'idx' is in netmap mode.
- */
-static int
-vtnet_netmap_queue_on(struct vtnet_softc *sc, enum txrx t, int idx)
-{
- struct netmap_adapter *na = NA(sc->vtnet_ifp);
-
- if (!nm_native_on(na))
- return 0;
-
- if (t == NR_RX)
- return !!(idx < na->num_rx_rings &&
- na->rx_rings[idx]->nr_mode == NKR_NETMAP_ON);
-
- return !!(idx < na->num_tx_rings &&
- na->tx_rings[idx]->nr_mode == NKR_NETMAP_ON);
-}
-
/* Register and unregister. */
static int
vtnet_netmap_reg(struct netmap_adapter *na, int state)