diff options
| author | Ouyang Changchun <[email protected]> | 2014-12-12 12:15:26 +0800 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2014-12-18 00:26:09 +0100 |
| commit | f0adccd4dc39ef7c22d8657a62a9eb11eeb41521 (patch) | |
| tree | d4fcee6ff6a0779246abb5f5aa6b1048c2cb8d37 | |
| parent | b68bc0b83a98e968c2a2cd8ae68b7bc0b6beec6d (diff) | |
examples/vhost: fix vlan offload
The following commit break vm2vm hard mode test cases:
commit db4014f2b65cb31bf ("use factorized default Rx/Tx configuration")
Investigation show that it needs enabling vlan offload since it is turn off
by default in some drivers, and Tx need it, especially when vm2vm is in hard mode.
Signed-off-by: Changchun Ouyang <[email protected]>
Tested-by: Jingguo Fu <[email protected]>
| -rw-r--r-- | examples/vhost/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 93319102d7..04f01182d0 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -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 |
