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 A5C01A00BE; Wed, 20 Apr 2022 12:50:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4545E4068E; Wed, 20 Apr 2022 12:50:44 +0200 (CEST) Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mails.dpdk.org (Postfix) with ESMTP id CB96E40687 for ; Wed, 20 Apr 2022 12:50:43 +0200 (CEST) Received: by mail-il1-f180.google.com with SMTP id y16so712511ilc.7 for ; Wed, 20 Apr 2022 03:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5QeCcjCG2d9clNlWEiS4RRwg3GKnA053lV6GvKyZk0g=; b=dPJo47efGYHH4noavYrUHL5EJL30WRvuagnLERtgmK6MzVxaDvt5Pd65h22I/blfTz 5mehcCgwvBZskmbYyZES77/TcNH5JmCdh7WV/kON0E58iaA1wRxRa6M+Z94uWoOWcfRy Nd4GjJ+UKI8r/9S3MasyxK0J+rRnnLoRBt7fRRsrgI9UspOTAx0+pax4lz3WinCpD8tB +qN6qz8u9YqgRVupRAaA0SLkIr9sCE0n0/DbIbIpz8o9I6Pdewv1vCpXH/8aeeb62LcU f9GPir3olESLnZ0Ra9BATVimwyWX5yt5q1/+OntJbeGDOS1A5IBZBxAG9ZtxieJdLoy8 dc7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5QeCcjCG2d9clNlWEiS4RRwg3GKnA053lV6GvKyZk0g=; b=jnwKDlLm7xreZPh1+gDdS1c6UZk/3KmRFu/xJVzdNgH9C+N5nXnK4Oo0yRUvTeRW7U zZTWwJKczP/mH9bKzROX2V5tkO60+bBbBLSRRhPiB64GmKpAujedPksm5u02nXtAbnkk KtMSzZ5W8tCAKy4A4wFamdlEwpx/rrryAZBqA/R1SNjRvU8tQQ7IUSu9RtzWk9tDnsYI WLgz9d1G+CMwMm8jWkmu5Mmb1lUEVRHTJtcYczO4lwqgU6sBHPNhsH6SYC37ek5jmJsW KX4TkziDG3cuuAISVGToRtJ4/yUgUcjr9ZLz6DAGWWF29pt8wlyQRLt/W6JIHjZ87Z97 SoCA== X-Gm-Message-State: AOAM531HzW+PLaoDFPpqqKsHOclzOZNM6O+/LeUeSPhLLm8u1Jgx9D/9 +jFB6M2fwTHS8AzhwyU3lUUaJ7W55hKlb0biF4Q= X-Google-Smtp-Source: ABdhPJzvk2LwL5xYa8Dq5LExPcu978yphM+58Wa72f+m44ibTJ0r7WQO5l8LYPWtdDTrkLOLx/iVUHg8GgrVjtKzzic= X-Received: by 2002:a05:6e02:1a03:b0:2cc:5211:fbae with SMTP id s3-20020a056e021a0300b002cc5211fbaemr2534436ild.75.1650451843215; Wed, 20 Apr 2022 03:50:43 -0700 (PDT) MIME-Version: 1.0 References: <20220420081650.2043183-1-feifei.wang2@arm.com> <20220420081650.2043183-4-feifei.wang2@arm.com> In-Reply-To: <20220420081650.2043183-4-feifei.wang2@arm.com> From: Jerin Jacob Date: Wed, 20 Apr 2022 16:20:17 +0530 Message-ID: Subject: Re: [PATCH v1 3/5] ethdev: add API for direct rearm mode To: Feifei Wang Cc: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Ray Kinsella , dpdk-dev , nd , Honnappa Nagarahalli , Ruifeng Wang Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, Apr 20, 2022 at 1:47 PM Feifei Wang wrote: > > Add API for enabling direct rearm mode and for mapping RX and TX > queues. Currently, the API supports 1:1(txq : rxq) mapping. > > Suggested-by: Honnappa Nagarahalli > Signed-off-by: Feifei Wang > Reviewed-by: Ruifeng Wang > Reviewed-by: Honnappa Nagarahalli > --- > + * > + * @return > + * - (0) if successful. > + */ > +__rte_experimental > +int rte_eth_direct_rxrearm_map(uint16_t rx_port_id, uint16_t rx_queue_id, > + uint16_t tx_port_id, uint16_t tx_queue_id); Won't existing rte_eth_hairpin_* APIs work to achieve the same?