aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2017-10-26 02:30:54 +0000
committerKristof Provost <kp@FreeBSD.org>2021-08-05 20:04:04 +0000
commit18ea5bc166c1e908e24b8d2e13f5d1b36acc6742 (patch)
treea26c271d9ec20c02b531fa4a3c9329ac4b53e9b2
parentd88815784447d24216bafeefa973da4e0ae5db14 (diff)
downloadsrc-18ea5bc166c1e908e24b8d2e13f5d1b36acc6742.tar.gz
src-18ea5bc166c1e908e24b8d2e13f5d1b36acc6742.zip
virtio: enable VTNET_LEGACY_TX when ALTQ is enabled.
ALTQ only works on network drivers which use if_start (rather than if_transmit). vtnet uses if_start if built with VTNET_LEGACY_TX. Default to that the kernel is built with ALTQ enabled, to reduce user surprise. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 5afe81a7b23afd27289ca40e04a6a764134d6273)
-rw-r--r--sys/dev/virtio/network/if_vtnetvar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/virtio/network/if_vtnetvar.h b/sys/dev/virtio/network/if_vtnetvar.h
index 55e8a7267499..3f36ff3c1ca4 100644
--- a/sys/dev/virtio/network/if_vtnetvar.h
+++ b/sys/dev/virtio/network/if_vtnetvar.h
@@ -31,6 +31,10 @@
#ifndef _IF_VTNETVAR_H
#define _IF_VTNETVAR_H
+#ifdef ALTQ
+#define VTNET_LEGACY_TX
+#endif
+
struct vtnet_softc;
struct vtnet_statistics {