mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-dpdk: Fix port init when lacking Tx offloads for TSO.
The check on TSO capability did not ensure ip checksum, tcp checksum and
TSO tx offloads were available which resulted in a port init failure
(example below with a ena device):
*2020-02-04T17:42:52.976Z|00084|dpdk|ERR|Ethdev port_id=0 requested Tx
offloads 0x2a doesn't match Tx offloads capabilities 0xe in
rte_eth_dev_configure()*
Fixes: 29cf9c1b3b
("userspace: Add TCP Segmentation Offload support")
Reported-by: Ravi Kerur <rkerur@gmail.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
8e371aa497
commit
3d6a6f450a
@@ -1132,7 +1132,7 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev)
|
||||
dev->hw_ol_features &= ~NETDEV_RX_HW_SCATTER;
|
||||
}
|
||||
|
||||
if (info.tx_offload_capa & tx_tso_offload_capa) {
|
||||
if ((info.tx_offload_capa & tx_tso_offload_capa) == tx_tso_offload_capa) {
|
||||
dev->hw_ol_features |= NETDEV_TX_TSO_OFFLOAD;
|
||||
} else {
|
||||
dev->hw_ol_features &= ~NETDEV_TX_TSO_OFFLOAD;
|
||||
|
Reference in New Issue
Block a user