mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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: 65a87968f4
("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>
This commit is contained in:
committed by
Ian Stokes
parent
606f665072
commit
7bbc2e1def
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user