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 8DD45A0524; Thu, 6 May 2021 16:26:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F31441135; Thu, 6 May 2021 16:25:54 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 4AE884112C for ; Thu, 6 May 2021 16:25:52 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id z9so8032524lfu.8 for ; Thu, 06 May 2021 07:25:52 -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=qxBV62xh81ddvhHAUZds8iwWpzPqgMImwSnm5rk7PBJ81FFeA7xOBcrTwlqJ9dciWp JUXkTI40mtLA9z2PtiHAVFGYqQdkjBcmJUmUJYDubTbv0K94Hy9wtB9FpOUh9+8XXpMr JR66BbW4vzLpsJjIEsh7ORh1D03jknznWFkantuVBU5McCmlCFRFuA9i/Wo1BYF891Gt UNvXasE/RjhrqMXt00CQJvrWIgOa1wjRTZa/RrSomtfg9gJ4L5U7cQjC9qgJdY6f+787 u2pBwTnGvUpMpm6vbKIfkeTU3dbKxJHb5rEywW6VJ2bB+HjZXA1eWCSvTSje+zxNtXnt SQsQ== 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=VTuYKA4j/XbCON6CstY9tfWftAvK6ypk0BwOSpAhxtOlHO+BjU9rZ6UGou7FLCf2Cq skwYVHcTAeATYBHvFWwjd2z6QuP3X6XKsB70xBrKJtE0mzkhT/XNob2Vszt88G8Pf/39 RlNM40Kg4EVDgVbaF83ai5YaKJdIMsrhzpJG3yBCEjo0lLDWiJRboOmtT4kZF6AD9Mt2 aHudBGM1cxhVn6VebfXXJ3zHI/8fuTxMgC44Fy2jUpeeJA2c79gxjyc2zBhqEFj3IiNu PfO2LU1NnGgA3v+J7/d2tYzWW9C7TVLoKEAHeZyXNC6wkpb2pO3bDE9VgrGKD2wblNgz lMBw== X-Gm-Message-State: AOAM531fH/KXSBTYmIgy+wPahiMlaZteXiNAzlFjCxpxy+1CDMFa2fda /AST5bnT8rznEw34sb4ZqdotY9Wr/3hotuHD X-Google-Smtp-Source: ABdhPJxa+ZbQea4klYHItZ2l6DnUkv77866jvseWBlGk/s33qayQn2a8Kp9SAFusNvjlWBCxzP0gPg== X-Received: by 2002:ac2:4a7b:: with SMTP id q27mr3254243lfp.362.1620311151631; Thu, 06 May 2021 07:25:51 -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 b40sm892908ljr.101.2021.05.06.07.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 07:25:50 -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: Thu, 6 May 2021 16:25:11 +0200 Message-Id: <20210506142526.28245-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506142526.28245-1-mk@semihalf.com> References: <20210505073348.6394-1-mk@semihalf.com> <20210506142526.28245-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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