From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97B93A0547 for ; Thu, 29 Apr 2021 10:22:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61237410F2; Thu, 29 Apr 2021 10:22:43 +0200 (CEST) Received: from CNSHJSMIN03.NOKIA-SBELL.COM (cnshjsmin03.app.nokia-sbell.com [116.246.26.71]) by mails.dpdk.org (Postfix) with ESMTP id D897A4067E for ; Thu, 29 Apr 2021 10:22:41 +0200 (CEST) X-AuditID: ac189297-c57ff70000013232-52-608a6cd05e1c Received: from CNSHPPEXCH1610.nsn-intra.net (Unknown_Domain [135.251.51.110]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by CNSHJSMIN03.NOKIA-SBELL.COM (Symantec Messaging Gateway) with SMTP id E4.EC.12850.0DC6A806; Thu, 29 Apr 2021 16:22:40 +0800 (HKT) Received: from CNSHPPEXCH1601.nsn-intra.net (135.251.51.101) by CNSHPPEXCH1610.nsn-intra.net (135.251.51.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 29 Apr 2021 16:22:39 +0800 Received: from CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) by CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) with mapi id 15.01.2106.013; Thu, 29 Apr 2021 16:22:39 +0800 From: "Wu, Jianyue (NSB - CN/Hangzhou)" To: "Wu, Jianyue (NSB - CN/Hangzhou)" , "users@dpdk.org" Thread-Topic: How can we enable runtime tx queue setup in XEON X552 eth device? Thread-Index: Adc8z/+JVYxpDBRnSX6XiRbt4NhIowAALHXg Date: Thu, 29 Apr 2021 08:22:39 +0000 Message-ID: References: <99e1f0df930b416c9a5c701bd00c3804@nokia-sbell.com> In-Reply-To: <99e1f0df930b416c9a5c701bd00c3804@nokia-sbell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.251.51.115] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42Jp/22cp3shpyvB4NxEAYvmg+tZHBg9fi1Y yhrAGMVlk5Kak1mWWqRvl8CV8WXWXpaC7zoVO59eZ2tgnKfexcjJISFgIvHt7n7GLkYuDiGB Q0wSm5pvs0A4fxkllm4/zgzhbGKUWL/kPxtIC5uAi8TUHfNZQWwRgXSJxadvgNnCAl4SHds+ skPEAyU2PtvBCGEbSfS1HGACsVkEVCWm3p8AVsMrYCex68wqsLgQkH2s4weYzSlgL3GgZTXY LkYBMYnvp9aAxZkFxCVuPZnPBHG2gMSSPeeZIWxRiZeP/wHdwAFkK0n0bYAqT5XoOtzHArFK UOLkzCcsExhFZiGZNAtJ2SwkZRBxHYkFuz+xQdjaEssWvmaGsc8ceMyELL6AkX0Vo7SzX7CH V7Cvp5+BsZ6fv7eno26wk6uPj56zv+8mRmBErZGYNH0H4/NZH/QOMTJxMB5ilOBgVhLh/b2u M0GINyWxsiq1KD++qDQntfgQozQHi5I4b19hU4KQQHpiSWp2ampBahFMlomDU6qBqT6WTfZN xGWviZm1C9tVwjeveMdkbHzuuvZH06vOi5l4ZXpX3e+dFbP3+oVrFtVPLzouEpFpK2hZ0bTo 2cw5Mz4nhr/yuH2O+eICwcziF5V7Vnz9yDfzxutfHu6V12O072dr2XSzMndvfGU9RevAty8/ E4wvRbsynr94+FqU97Kq2+LJVeeW6x0tfaOdn13ANLNm17qsq7tmrS36fPpSiWWxuu2BKXtm Cnq0y28vMPvrkrCy5dObx0t++gbE7rly0Pn1XfUDvvamP755MnSKegp/Km+M977vLfDq+0z1 o4xlOQU+23kD682fWjrdlXea51GcMU/Ugq3G/+dVLju9iRJeTRbdzLphEjqvd32crsRSnJFo qMVcVJwIAKE7MyUXAwAA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] How can we enable runtime tx queue setup in XEON X552 eth device? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hello, How can we enable runtime tx queue setup in XEON X552 eth device? Thanks in= deed! Now try to add queue in runtime in X552 VF, error will be reported. "rte_eth_tx_quuee_setup: err=3D-16, port =3D 1" Here -16 means EBUSY, because the eth device is already started, if configu= re this interface before start, it is fine. If I try to add dev_capa in ixgbevf_dev_info_get() in DPDK code, then anoth= er error will be reported. "Ethdev port_id=3D0 tx_queue_id=3D1, new added offloads 0x4000 must be with= in per-queue offload capabilities 0x0 in rte_eth_tx_queue_setup()" While in X552 datasheet, it says it is supported. In DPDK i40e driver, seems runtime tx queue setup is supported(setup TxQ wh= en eth interface is running) drivers/net/i40e/i40e_ethdev.c dev_info->dev_capa =3D RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP | RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP; Best Regards, Dave(Jianyue)