From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B2CFA04C8; Fri, 18 Sep 2020 12:37:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 091ED1D8E3; Fri, 18 Sep 2020 12:37:08 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 813881D8DF for ; Fri, 18 Sep 2020 12:37:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600425426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type; bh=I57U9phLoSeGVu3mK6gX2Jf02xV1XHB8xwwpqDHKiFI=; b=ce2jnIQgrLsbd3UhnQOLybXDr47T25lMFH5A438ifOtZkStO6hFOabKGHaShlNctuNFjCX hgyNU2Ygn4VpuI4I65S5VKvb2+uZJ1bE/Gxug06Q3/upycd+OiU22vpXBeCA5YDfq54s74 02sa4j36vcQJsfqtC7Wc6amwSxkMGLs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-Xunse3jGN-GWFwdoZ0QEOQ-1; Fri, 18 Sep 2020 06:37:04 -0400 X-MC-Unique: Xunse3jGN-GWFwdoZ0QEOQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 15E5981CAF9; Fri, 18 Sep 2020 10:37:03 +0000 (UTC) Received: from dceara.remote.csb (ovpn-114-136.ams2.redhat.com [10.36.114.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id 55E095576F; Fri, 18 Sep 2020 10:37:02 +0000 (UTC) From: Dumitru Ceara To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Fri, 18 Sep 2020 12:36:55 +0200 Message-Id: <1600425415-31834-1-git-send-email-dceara@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dceara@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Subject: [dpdk-dev] [PATCH] net/ring: advertise multi segment support. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Even though ring interfaces don't support any other TX/RX offloads they do support sending multi segment packets and this should be advertised in order to not break applications that use ring interfaces. Signed-off-by: Dumitru Ceara --- drivers/net/ring/rte_eth_ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 733c898..59d1e67 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -160,6 +160,7 @@ struct pmd_internals { dev_info->max_mac_addrs = 1; dev_info->max_rx_pktlen = (uint32_t)-1; dev_info->max_rx_queues = (uint16_t)internals->max_rx_queues; + dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS; dev_info->max_tx_queues = (uint16_t)internals->max_tx_queues; dev_info->min_rx_bufsize = 0; -- 1.8.3.1