]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost/main.c
examples/vhost: fix vlan offload
[dpdk.git] / examples / vhost / main.c
index 93319102d7a29489822686baeadfa8b98af5d728..04f01182d0d3274fd9789078ab7ae07e0818d5cc 100644 (file)
@@ -390,6 +390,9 @@ port_init(uint8_t port)
        txconf = &dev_info.default_txconf;
        rxconf->rx_drop_en = 1;
 
+       /* Enable vlan offload */
+       txconf->txq_flags &= ~ETH_TXQ_FLAGS_NOVLANOFFL;
+
        /*
         * Zero copy defers queue RX/TX start to the time when guest
         * finishes its startup and packet buffers from that guest are