summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2018-05-17 18:45:01 +0200
committerIan Stokes <ian.stokes@intel.com>2018-05-25 09:09:50 +0100
commit7bbc2e1def616477ce97821de930eca15896b7bc (patch)
tree5ef9abf1ce5809c53d69d6bb56f72d8548f27cf2 /lib
parent606f665072507497e663e41478a6b902fec416ac (diff)
downloadopenvswitch-7bbc2e1def616477ce97821de930eca15896b7bc.tar.gz
netdev-dpdk: fix check for "net_nfp" driver
Currently the check of "net_nfp" driver while enabling scatter compares only the first 6 bytes, but "net_nfp" is 7 bytes long. This change fixes the check by comparing the first 7 bytes. CC: Pablo Cascón <pablo.cascon@netronome.com> CC: Simon Horman <simon.horman@netronome.com> Fixes: 65a87968f4cf ("netdev-dpdk: don't enable scatter for jumbo RX support for nfp") Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Pablo Cascón <pablo.cascon@netronome.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/netdev-dpdk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 8ced8cc29..2e2f568b8 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -788,7 +788,7 @@ dpdk_eth_dev_port_config(struct netdev_dpdk *dev, int n_rxq, int n_txq)
* than highlighting the one known not to need scatter */
if (dev->mtu > ETHER_MTU) {
rte_eth_dev_info_get(dev->port_id, &info);
- if (strncmp(info.driver_name, "net_nfp", 6)) {
+ if (strncmp(info.driver_name, "net_nfp", 7)) {
conf.rxmode.enable_scatter = 1;
}
}