From: Ophir Munk Date: Mon, 5 Feb 2018 16:02:06 +0000 (+0000) Subject: net/failsafe: fix default Tx offloads capabilities X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=70205b5adb95dc0d1844e5bb69693b1761c7185f;p=dpdk.git net/failsafe: fix default Tx offloads capabilities Failsafe reported Tx offloads capabilities are the AND result of its default capabilities and those of its sub-devices. In the corrupted code failsafe default Tx capabilities were set to 0. As a result when running testpmd with "--tx-offloads=0x8000" parameter (request for multi segments offload) - an error was returned: PMD: net_failsafe: Some Tx offloads are not supported, requested 0x8000 supported 0x0 To fix this, failsafe default Tx offload capabilities are set to DEV_TX_OFFLOAD_MULTI_SEGS | DEV_TX_OFFLOAD_IPV4_CKSUM | DEV_TX_OFFLOAD_UDP_CKSUM | DEV_TX_OFFLOAD_TCP_CKSUM, Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD") Cc: stable@dpdk.org Signed-off-by: Ophir Munk Acked-by: Gaetan Rivet --- diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c index e7bb8011ff..7a67e16895 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -77,7 +77,11 @@ static struct rte_eth_dev_info default_infos = { DEV_RX_OFFLOAD_SCATTER | DEV_RX_OFFLOAD_TIMESTAMP | DEV_RX_OFFLOAD_SECURITY, - .tx_offload_capa = 0x0, + .tx_offload_capa = + DEV_TX_OFFLOAD_MULTI_SEGS | + DEV_TX_OFFLOAD_IPV4_CKSUM | + DEV_TX_OFFLOAD_UDP_CKSUM | + DEV_TX_OFFLOAD_TCP_CKSUM, .flow_type_rss_offloads = 0x0, };