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 2D695A0524; Wed, 5 May 2021 09:35:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBF4541137; Wed, 5 May 2021 09:34:11 +0200 (CEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id DE3CA4111E for ; Wed, 5 May 2021 09:34:08 +0200 (CEST) Received: by mail-wm1-f46.google.com with SMTP id b11-20020a7bc24b0000b0290148da0694ffso2787214wmj.2 for ; Wed, 05 May 2021 00:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Sw5i2yLiKvMGYwLKt0qDxjPwKtISh+9sE1hkQur5jXg=; b=DwoXLTVp0Zxwf3tCVHTpoyc9pb8MXFh0LJqGXjuzxHNOxothIHQeSIOgB3KTgpDUUU H5bME0EZUV+ZeedKGzhSlQltI/WT/RL90l0a8F0haLRpOxvLBr26co1ehW7ROG18vbnf F3IXUO9ht2y+41s11KcD99s/jlvHY96ARWMtgdPlYVA2I62K9qhH6k9zoj2hQHBFVBjy AYOHJgtlEF2XXgrdSmyMPICpC7DTohBxxv54PUe8ShTG4sRTmwXfO5jtnmh6QZSbnkOS MUf1MNFpA0Me6EnvPwLlLJOpAou/ic8upEQ+K7RwhuLBqtHFCP6ginyrWUNM8v550jJh srPg== 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:mime-version:content-transfer-encoding; bh=Sw5i2yLiKvMGYwLKt0qDxjPwKtISh+9sE1hkQur5jXg=; b=oEBvAgY2SxlohLQj/gagSzfUrBo7R3b6FuEJ3xXqb58cA3qdLrBee6fqvrGCOejTni yne5i4SJzIDonVbdtGneOtiL5TWRzmMfwp4mRV2lC4FxFjA9Gf31eGxmereirpwxD+xy Kd4vmfKC3eOHRVQPBEIQLEWCMsmjpfAR7CGF0rc85MgpL5YLqRV46ILfjf9EkRapHD6x C0Xjfa7+KL6pL9h9bU4awmVg/2AiM2Opv2y9BrOoHu2RT8NecsxJxswp+SAuNch/V6Nd Lbp4QiRGMgVm6F7hy9XbAmnpFLPM8iZ21dnUEdoxHXfuDJGgWwc9Fkd9VnPQ6nQzUV1C BwYA== X-Gm-Message-State: AOAM530gNF3kK+FcyWq+ao8BD7rnxe9a9fNJziZ5mySVs1KoN8az8zw6 uRbkSaMShj09puKBfTSvLTiHcnzjOVo883Iv X-Google-Smtp-Source: ABdhPJzPkwM2EfaerZCIFwNevK7U87AzmduNJ3kQvELu5It9TpmgdClJaxGSrZ0f9MtAwCS7kEZx9A== X-Received: by 2002:a1c:60c2:: with SMTP id u185mr31277062wmb.157.1620200048320; Wed, 05 May 2021 00:34:08 -0700 (PDT) Received: from DESKTOP-U5LNN3J.localdomain (89-79-189-199.dynamic.chello.pl. [89.79.189.199]) by smtp.gmail.com with ESMTPSA id t17sm4679856wmq.12.2021.05.05.00.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 00:34:07 -0700 (PDT) From: Michal Krawczyk To: dev@dpdk.org Cc: ndagan@amazon.com, gtzalik@amazon.com, igorch@amazon.com, upstream@semihalf.com, Michal Krawczyk , Amit Bernstein Date: Wed, 5 May 2021 09:33:33 +0200 Message-Id: <20210505073348.6394-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210505073348.6394-1-mk@semihalf.com> References: <20210430125725.28796-1-mk@semihalf.com> <20210505073348.6394-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 07/22] net/ena/base: remove indir table from ENA feat ctx 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 Sender: "dev" The RSS indirection table shouldn't be included as a part of the device features context. If the driver has to acquire it, it can be done using the separate API whenever the RSS configuration is needed. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Amit Bernstein --- drivers/net/ena/base/ena_com.c | 11 ----------- drivers/net/ena/base/ena_com.h | 1 - 2 files changed, 12 deletions(-) diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c index d025c9cee1..5ca36ab6d9 100644 --- a/drivers/net/ena/base/ena_com.c +++ b/drivers/net/ena/base/ena_com.c @@ -2054,17 +2054,6 @@ int ena_com_get_dev_attr_feat(struct ena_com_dev *ena_dev, else return rc; - rc = ena_com_get_feature(ena_dev, &get_resp, - ENA_ADMIN_RSS_INDIRECTION_TABLE_CONFIG, 0); - if (!rc) - memcpy(&get_feat_ctx->ind_table, &get_resp.u.ind_table, - sizeof(get_resp.u.ind_table)); - else if (rc == ENA_COM_UNSUPPORTED) - memset(&get_feat_ctx->ind_table, 0x0, - sizeof(get_feat_ctx->ind_table)); - else - return rc; - return 0; } diff --git a/drivers/net/ena/base/ena_com.h b/drivers/net/ena/base/ena_com.h index cd116e90e6..ca84e2e8bc 100644 --- a/drivers/net/ena/base/ena_com.h +++ b/drivers/net/ena/base/ena_com.h @@ -338,7 +338,6 @@ struct ena_com_dev_get_features_ctx { struct ena_admin_feature_offload_desc offload; struct ena_admin_ena_hw_hints hw_hints; struct ena_admin_feature_llq_desc llq; - struct ena_admin_feature_rss_ind_table ind_table; }; struct ena_com_create_io_ctx { -- 2.25.1