Disable scatter-gather for ENA 67/10767/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 22 Feb 2018 20:44:03 +0000 (14:44 -0600)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 23 Feb 2018 14:03:00 +0000 (14:03 +0000)
ENA doesn't support scatter-gather. The PMD started
failing rte_eth_dev_rx_queue_config() in DPDK 18.02
if the flag to enable it is set. Turn the flag off in
dpdk_lib_init().

Change-Id: Ifdd9f188c89b46efe82412c75fb935a92436da1c
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/dpdk/device/init.c

index d719d4b..0aaead0 100755 (executable)
@@ -408,6 +408,7 @@ dpdk_lib_init (dpdk_main_t * dm)
 
            case VNET_DPDK_PMD_ENA:
              xd->port_type = VNET_DPDK_PORT_TYPE_ETH_VF;
+             xd->port_conf.rxmode.enable_scatter = 0;
              break;
 
            case VNET_DPDK_PMD_DPAA2: