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 28829A04DB; Mon, 28 Sep 2020 20:47:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C3C41D57E; Mon, 28 Sep 2020 20:47:45 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 55E861BD21 for ; Mon, 28 Sep 2020 20:47:43 +0200 (CEST) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601318861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=BfIQkpRfo8q8aSXorvVerIJycvU1uJ7b+Ps0JdrXVKw=; b=cX0CXnjm5pHIFZPKhWs0QtmlPmJ20St45tZA13tzPw+x5fVaBQyraYTElDUOCJ9nU4ZUUS ogqgbX0666eI3MH/kfe1n0OEclPu/4vORSk61JQNBN++MWyGzTQ8NZjUlSM84b/M+LHuAN WjugA5SKnw0jqLM1SIFCgLawtpPD9Wo= 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-20-rdmifsiePdu3cP5meG97yQ-1; Mon, 28 Sep 2020 14:47:39 -0400 X-MC-Unique: rdmifsiePdu3cP5meG97yQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8F65010059AA; Mon, 28 Sep 2020 18:47:38 +0000 (UTC) Received: from dceara.remote.csb (ovpn-113-201.ams2.redhat.com [10.36.113.201]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AC01277C0; Mon, 28 Sep 2020 18:47:36 +0000 (UTC) From: Dumitru Ceara To: dev@dpdk.org Cc: bruce.richardson@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com Date: Mon, 28 Sep 2020 20:47:29 +0200 Message-Id: <1601318849-16691-1-git-send-email-dceara@redhat.com> In-Reply-To: <1600425415-31834-1-git-send-email-dceara@redhat.com> References: <1600425415-31834-1-git-send-email-dceara@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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 v2] net/ring: advertise multi segment TX and scatter RX. 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. Also advertise scatter RX support. Signed-off-by: Dumitru Ceara --- drivers/net/ring/rte_eth_ring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 40fe1ca..ac1ce1d 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -160,6 +160,8 @@ 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->rx_offload_capa = DEV_RX_OFFLOAD_SCATTER; + 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