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 A5914A04B5; Wed, 9 Sep 2020 16:00:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 946201BF8D; Wed, 9 Sep 2020 16:00:50 +0200 (CEST) Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by dpdk.org (Postfix) with ESMTP id 5F0771BF8D for ; Wed, 9 Sep 2020 16:00:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1042; q=dns/txt; s=iport; t=1599660049; x=1600869649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8oaLG+CVpQjMt0z1ejVpArtCNZaqJ4NZglg4OMtMVHw=; b=etwjx/0/lXlcHaS4YxVPUF6YXx4ZTw0ikKOOKQ3plFVIUnpkDy8JFAwI qP2XgZOKw4vWpg9pg1GUF34B6LO2bFgnB+qVzyoUko7vdf2C1GtN9cw9J fLC54wy9jNi1eKDnkQRq+MtpUkoEXfJIxqpRgXEocsCfxsQ4fIG7l+0Uh g=; X-IronPort-AV: E=Sophos;i="5.76,409,1592870400"; d="scan'208";a="801859934" Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 09 Sep 2020 14:00:30 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTP id 089E0SD7001524; Wed, 9 Sep 2020 14:00:28 GMT Received: by cisco.com (Postfix, from userid 508933) id 02FDC20F2005; Wed, 9 Sep 2020 07:00:27 -0700 (PDT) From: Hyong Youb Kim To: Ferruh Yigit Cc: dev@dpdk.org, Hyong Youb Kim , John Daley Date: Wed, 9 Sep 2020 07:00:01 -0700 Message-Id: <20200909140006.23788-2-hyonkim@cisco.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200909140006.23788-1-hyonkim@cisco.com> References: <20200909140006.23788-1-hyonkim@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: alln-core-7.cisco.com Subject: [dpdk-dev] [PATCH 1/6] net/enic: remove obsolete code 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 'next' field in struct enic is unused. The comment in enic_cq_rq() is out-of-date. Remove them. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h index baf6b8790..26535c9aa 100644 --- a/drivers/net/enic/enic.h +++ b/drivers/net/enic/enic.h @@ -106,7 +106,6 @@ struct rte_flow { /* Per-instance private data structure */ struct enic { - struct enic *next; struct rte_pci_device *pdev; struct vnic_enet_config config; struct vnic_dev_bar bar0; @@ -297,10 +296,6 @@ static inline unsigned int enic_vnic_rq_count(struct enic *enic) static inline unsigned int enic_cq_rq(__rte_unused struct enic *enic, unsigned int rq) { - /* Scatter rx uses two receive queues together with one - * completion queue, so the completion queue number is no - * longer the same as the rq number. - */ return rq; } -- 2.26.2