net/tap: fix multi segments capability
authorOphir Munk <ophirmu@mellanox.com>
Mon, 5 Feb 2018 10:59:08 +0000 (10:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Feb 2018 18:56:04 +0000 (19:56 +0100)
TAP device is supporting multi segments Tx, however this capability is
not reported when querying the TAP device.
This commit adds this capability report.

Fixes: 818fe14a9891 ("net/tap: use new Tx offloads API")
Cc: stable@dpdk.org
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/rte_eth_tap.c

index dc3847e..ac43db4 100644 (file)
@@ -390,7 +390,8 @@ tap_tx_offload_get_port_capa(void)
         * In order to support legacy apps,
         * report capabilities also as port capabilities.
         */
-       return DEV_TX_OFFLOAD_IPV4_CKSUM |
+       return DEV_TX_OFFLOAD_MULTI_SEGS |
+              DEV_TX_OFFLOAD_IPV4_CKSUM |
               DEV_TX_OFFLOAD_UDP_CKSUM |
               DEV_TX_OFFLOAD_TCP_CKSUM;
 }
@@ -398,7 +399,8 @@ tap_tx_offload_get_port_capa(void)
 static uint64_t
 tap_tx_offload_get_queue_capa(void)
 {
-       return DEV_TX_OFFLOAD_IPV4_CKSUM |
+       return DEV_TX_OFFLOAD_MULTI_SEGS |
+              DEV_TX_OFFLOAD_IPV4_CKSUM |
               DEV_TX_OFFLOAD_UDP_CKSUM |
               DEV_TX_OFFLOAD_TCP_CKSUM;
 }