From: Yanglong Wu Date: Fri, 27 Apr 2018 08:14:07 +0000 (+0800) Subject: net/i40e: fix checking offload X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a6d1117e9eb83da3f1b80c893f095982d0db2f2d;p=dpdk.git net/i40e: fix checking offload Missing "return -ENOTSUP" will always lead to illegal offload passing through offload checking. Fixes: 7497d3e2f777 ("net/i40e: convert to new Tx offloads API") Signed-off-by: Yanglong Wu Acked-by: Helin Zhang --- diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index df855ff3af..ec1ce54caf 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -2165,7 +2165,9 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev, " or supported offloads 0x%" PRIx64, (void *)dev, tx_conf->offloads, dev->data->dev_conf.txmode.offloads, - dev_info.tx_offload_capa); } + dev_info.tx_offload_capa); + return -ENOTSUP; + } if (hw->mac.type == I40E_MAC_VF || hw->mac.type == I40E_MAC_X722_VF) { vf = I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private);