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 01E50A04B5; Tue, 27 Oct 2020 14:20:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6300737AF; Tue, 27 Oct 2020 14:20:43 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id 749912C7A; Tue, 27 Oct 2020 14:20:41 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 0065410DA; Tue, 27 Oct 2020 09:20:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 27 Oct 2020 09:20:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=R43wrBnk7M/5hX3HaYx1ezm7AQ QmhQGAGGy7PjpYX2s=; b=Nbd8Zf2ySWXeHAwRS9Bk6Ocmghc0j4Ed/JeEcJu5l4 srtJVuBR0MtT3lc1qgIsbyxn0pGBkhdHSRYeBySEdu76/gdiK62sr3KWXVAxgTwn JJ4yHGNhUWOkWXmUev/FD0WUT+Gzw8v6M5o68AtQ5i8RYdF3MJ+j90HLidzVliA6 IJCsjqHFkLAmr85H241SlB95dTeN6UXo+Av/mw13W+RWrVtf596rB6Q9Y49m2VlP 70SO1cuF28t7BqFx/iJeJrDAW9ADmD781Bc50lMqiUQFrk52hNXrJq+5FZN4905g w2fEeoIxHS3nhjVPocqtiUF21DfHXCdp2bOZb2q2xfKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=R43wrBnk7M/5hX3Ha Yx1ezm7AQQmhQGAGGy7PjpYX2s=; b=YwE6BbmWbC+MRWUyjtt13Ef9q8c4FpxRL qtKtABTw32TRgxLqf0i5XGb6HeUQzmadZqUPDmDU7Ehzjj06+jcryB0kv8FJ+wcN zf0TY+yzbzKdmabv8F4yBPpPeoUf9jHEyMxnn7iQYfccxmBvaJW+6mrrfV6RqDLr 2XoGIltDYDkx3ok8WJBtrvfAlz7/RODTNhF99Y6JIUggBpPjt47UO8Na+3OEW1+h vBeFo1AFdKAT/uF85qq+shpYBpClqBzLgAfv/BfEYul7CX2UQ9LiiYH+cPso5C9J Dz9gD1bIzc+3V5bRdnzz9eYp/aOARWC4qIgDCL4TbZjDE3x+VJNEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeelgdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfo ohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtffrrg htthgvrhhnpedvledvudehvdduudevuedvveehgeduleegiefgjeehudehtddtgeduffej iefhgfenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdr nhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 423B7328005D; Tue, 27 Oct 2020 09:20:37 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org, Ferruh Yigit , Andrew Rybchenko , Qi Zhang , Konstantin Ananyev Date: Tue, 27 Oct 2020 14:20:22 +0100 Message-Id: <20201027132022.2308478-1-thomas@monjalon.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ethdev: move non-offload capabilities 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" The definitions of RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP and RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP were inserted before the last comment of Tx offloads. It is moved in a better place, with comments moved to be before the definition. A group comment is added to better describe device capabilities. Fixes: cac923cfea47 ("ethdev: support runtime queue setup") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- lib/librte_ethdev/rte_ethdev.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index e341a08817..ba997f16ce 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -1408,21 +1408,22 @@ struct rte_eth_conf { #define DEV_TX_OFFLOAD_IP_TNL_TSO 0x00080000 /** Device supports outer UDP checksum */ #define DEV_TX_OFFLOAD_OUTER_UDP_CKSUM 0x00100000 - /** Device supports send on timestamp */ #define DEV_TX_OFFLOAD_SEND_ON_TIMESTAMP 0x00200000 - - -#define RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP 0x00000001 -/**< Device supports Rx queue setup after device started*/ -#define RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP 0x00000002 -/**< Device supports Tx queue setup after device started*/ - /* * If new Tx offload capabilities are defined, they also must be * mentioned in rte_tx_offload_names in rte_ethdev.c file. */ +/**@{@name Device capabilities + * Non-offload capabilities reported in rte_eth_dev_info.dev_capa. + */ +/** Device supports Rx queue setup after device started. */ +#define RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP 0x00000001 +/** Device supports Tx queue setup after device started. */ +#define RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP 0x00000002 +/**@}*/ + /* * Fallback default preferred Rx/Tx port parameters. * These are used if an application requests default parameters -- 2.28.0