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 0D82BA046B for ; Mon, 22 Jul 2019 14:35:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A4B7C1BF4C; Mon, 22 Jul 2019 14:35:51 +0200 (CEST) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by dpdk.org (Postfix) with ESMTP id A86861BF38 for ; Mon, 22 Jul 2019 14:35:50 +0200 (CEST) Received: by mail-qt1-f196.google.com with SMTP id l9so38259259qtu.6 for ; Mon, 22 Jul 2019 05:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=diyfKeV8polGlB20fImhh1xtQaP6wmPSPQQC7eX8FS8=; b=NuYjBU73YF3fTFV6FMM20gPL7h9pJOf2bjnFMF6TuUSZQsF7xCHR+RJqd7YyBIfHG3 WYBMgbvxXDhpvdWX4XOW8Ne0WDBtLtzu8m7zcOLMv5xZl25I84FNoUoayJcokcUsteMB +fhUQkuhdQE0UsB2NUUbftE/fCyfP80I5Gwq0+3+5jyw6l+tRAdNYtJDaoGvNFVkEYyw OcW8Ld1k8KK5UGRFu8icbBtFgst3bg2tveoFgZMdpfs4nqnEMKrqeGenuE1m9Dc+To8A MYAJzJ94Fepo34gdeM56x+6g/hpY5m/vajwWnA1HkK8oZGNBHqKJzCGO9j1vTrJpLOEj uXuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=diyfKeV8polGlB20fImhh1xtQaP6wmPSPQQC7eX8FS8=; b=bawKJRPZWt29MDYtpHgkmTUy83EIGjDkEU7xgbk3k+c+tSsvcGkrvWPzoHZEekkaxa qWufLmIegP2TesAW26LjRuksfgGFbiHvFIhSPGPRkGdGf5fvaao+wYf/vGZkrrpkG2Gg iKx1QLwJFSWNO+8nAD76XE8JsZLjcH8QXNi+jrFowV/1kav+/wk5tpWOHFlTPb+H64pM jff+NPn8st2ZpduOufsv6Lp5Z0TK7sPRvMZ9Aua1xkjVUe+fMiikce/pTRlfL2/pqNHr gAskFwL52ezcoe7AsqSUNtpx1TzCBch1dZdX1Oud/asUyBDp/OJ2Cz1JTuLb22eS8y85 QQHw== X-Gm-Message-State: APjAAAUBytkD6m9jQDop1txJbzPW6DZHcjqA3qvWsj1Ihas7zcRa9jSR LYMFe1iRSgwRTJ2g30z+FkJOrSFl+PY= X-Google-Smtp-Source: APXvYqz6ORGI95yyUJvXSBd8YLSuL+/0PjYjV0D+VQmUdA1/SVo9UZ1LqXy0y5fMe3lW0YwwIxD5vw== X-Received: by 2002:ac8:3908:: with SMTP id s8mr4342745qtb.224.1563798949719; Mon, 22 Jul 2019 05:35:49 -0700 (PDT) Received: from localhost.localdomain (pool-173-48-129-93.bstnma.fios.verizon.net. [173.48.129.93]) by smtp.gmail.com with ESMTPSA id h18sm16107725qkj.134.2019.07.22.05.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Jul 2019 05:35:49 -0700 (PDT) From: Ed Czeck To: dev@dpdk.org, ferruh.yigit@intel.com Cc: shepard.siegel@atomicrules.com, john.miller@atomicrules.com, Ed Czeck , stable@dpdk.org Date: Mon, 22 Jul 2019 08:35:40 -0400 Message-Id: <1563798941-11225-1-git-send-email-ed.czeck@atomicrules.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1563312861-26219-1-git-send-email-ed.czeck@atomicrules.com> References: <1563312861-26219-1-git-send-email-ed.czeck@atomicrules.com> Subject: [dpdk-dev] [PATCH 1/2] net/ark: remove queue offset based on port id 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" Queue index was incorrectly incremented with port, which caused incorrect queue packet placement. This manifested when port number was != 0. Fixes: c33d45af3633 ("net/ark: add Tx initial version") Cc: stable@dpdk.org Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev_rx.c | 4 +--- drivers/net/ark/ark_ethdev_tx.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/ark/ark_ethdev_rx.c b/drivers/net/ark/ark_ethdev_rx.c index 7de1a98..6156730 100644 --- a/drivers/net/ark/ark_ethdev_rx.c +++ b/drivers/net/ark/ark_ethdev_rx.c @@ -127,9 +127,7 @@ eth_ark_dev_rx_queue_setup(struct rte_eth_dev *dev, uint32_t i; int status; - /* Future works: divide the Q's evenly with multi-ports */ - int port = dev->data->port_id; - int qidx = port + queue_idx; + int qidx = queue_idx; /* We may already be setup, free memory prior to re-allocation */ if (dev->data->rx_queues[queue_idx] != NULL) { diff --git a/drivers/net/ark/ark_ethdev_tx.c b/drivers/net/ark/ark_ethdev_tx.c index 1967655..08bcf43 100644 --- a/drivers/net/ark/ark_ethdev_tx.c +++ b/drivers/net/ark/ark_ethdev_tx.c @@ -211,9 +211,7 @@ eth_ark_tx_queue_setup(struct rte_eth_dev *dev, struct ark_tx_queue *queue; int status; - /* Future: divide the Q's evenly with multi-ports */ - int port = dev->data->port_id; - int qidx = port + queue_idx; + int qidx = queue_idx; if (!rte_is_power_of_2(nb_desc)) { PMD_DRV_LOG(ERR, -- 2.7.4