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")
This commit is contained in:
Luiz Otavio O Souza 2017-10-25 21:30:54 -05:00 committed by Kristof Provost
parent 728958fb1b
commit 5afe81a7b2

View File

@ -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 {