disable scatter/gather for ENA with DPDK 18.08 77/14877/1
authorMatthew Smith <mgsmith@netgate.com>
Tue, 18 Sep 2018 15:52:58 +0000 (10:52 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Tue, 18 Sep 2018 16:33:30 +0000 (11:33 -0500)
commitc15d148f0f636cb0dabe55a90ddae95f406073c1
tree70a7f611e8f047da6201716cc10188d73da2d98e
parent2f459d728b5cbd6d5a945a440afd7ef110e82505
disable scatter/gather for ENA with DPDK 18.08

The scatter/gather rxmode flag was set for ENA when building
against DPDK >= 18.08. ENA does not support this, so disable
it. It looks like enabling it was a copy/paste error.

Also, after offloads are adjusted based on whether "no-multi-seg"
is set, those configurations are overwritten by copying
port_conf_template over the port config. That should only happen
for versions of DPDK older than 18.08 because 18.08 and newer
make changes directly on the port config instead of making changes
to the template. Make the clib_memcpy() conditional on the DPDK
version being less than 18.08. After doing so, compiler
errors complain about port_conf_template being declared but not
used, so make it's declaration conditional.

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