From mboxrd@z Thu Jan 1 00:00:00 1970 From: Didier Pallard Subject: [PATCH 3/4] net/i40e: fix missing Tx multi segs capability Date: Wed, 19 Sep 2018 17:04:08 +0200 Message-ID: <20180919150409.22880-4-didier.pallard@6wind.com> References: <20180919150409.22880-1-didier.pallard@6wind.com> Cc: stable@dpdk.org To: dev@dpdk.org Return-path: Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 32F82532C for ; Wed, 19 Sep 2018 17:04:55 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id o18-v6so7404569wmc.0 for ; Wed, 19 Sep 2018 08:04:55 -0700 (PDT) In-Reply-To: <20180919150409.22880-1-didier.pallard@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In former API, ETH_TXQ_FLAGS_NOMULTSEGS was merely a hint indicating that application will never send multisegmented packets, allowing pmd to choose different tx methods accordingly. In new API, DEV_TX_OFFLOAD_MULTI_SEGS became an offload capability that is advertised by pmds, some of them do not advertise it and expect to never receive fragmented packets (octeontx, axgbe) So an ethdev that supports multisegmented packets should properly advertise it. Problem was spotted and tested on e1000, should be also present in i40e_vf representor. Fixes: e0cb96204b71 ("net/i40e: add support for representor ports") Cc: stable@dpdk.org Signed-off-by: Didier Pallard --- drivers/net/i40e/i40e_vf_representor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/i40e_vf_representor.c b/drivers/net/i40e/i40e_vf_representor.c index f9f131611016..0bfbb4f6011f 100644 --- a/drivers/net/i40e/i40e_vf_representor.c +++ b/drivers/net/i40e/i40e_vf_representor.c @@ -48,6 +48,7 @@ i40e_vf_representor_dev_infos_get(struct rte_eth_dev *ethdev, DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM; dev_info->tx_offload_capa = + DEV_TX_OFFLOAD_MULTI_SEGS | DEV_TX_OFFLOAD_VLAN_INSERT | DEV_TX_OFFLOAD_QINQ_INSERT | DEV_TX_OFFLOAD_IPV4_CKSUM | -- 2.11.0