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 39ADEA0C41; Tue, 11 May 2021 08:47:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3197141134; Tue, 11 May 2021 08:46:25 +0200 (CEST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mails.dpdk.org (Postfix) with ESMTP id 0E00B41124 for ; Tue, 11 May 2021 08:46:21 +0200 (CEST) Received: by mail-lf1-f43.google.com with SMTP id a2so6042861lfc.9 for ; Mon, 10 May 2021 23:46:21 -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=nSjkTOZELIJferOl/eL8Ln3fk4rb7ERi/AM+vI7IEKS/VYMWZSnNdUsmHI16O92DSg 7viyJ5gg9umunS9GQjnreWgNwo00go+S3rKsEtZLZZ4mnhWUr6aMAHOg/iWKHIGd00mJ LObZRq0ee7AUG4pnvYNNrzXBv1dIYRK0RymbiTvUYwvAwVMk2IZfu9MtNGQ+/QKxpBkG 6U0S0jVQd/I8J1RHp3p0O4w8dLM/tdOFSlFfGuAN0T3gBb6UlWQuN+ZULuhNRskhraNC GjeSvhXVG/Ko46tmFRc1AwWPKuVX4eIH7er0Wrg/1DkNekZ5pE2e1VQAWjyhTrk4QIxz MzHg== 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=oeDPIxU2vhrCbKXfFjSEo8ikC/AHmpQeci88ESGleHFAI6eSzuzY56/utFU+WEpMch Xs3jkBSdmynNgAoAvOKF3pRkFCYigXkGDMcrJlqs0OC66fKdrKdO6wRplTNBPBpgmZEy whm8zNXbNmPBMPlcVQaEVQhy9XibPdroetKRW2gRPWM4bZEfclKhvdHf9R414pWvDSUF 3FaPV8NQarRSddoxdqvYTmmx9Valpu7eImQ+059vkmq4FdDOnMSNB1e8EBb9uh1SJGax mHF2Nm0pEOgIDaJPpyiQ1pC/3I1K0RwfIgWq+G13dFTjvGfkTP4mRiAk2Cq8Ix8A3iOp 2Eeg== X-Gm-Message-State: AOAM532oT2jcSY8ftANdI6+nfV1jPDYuzbYbRk/oWo6WlTPLNI9ddE3a ycKOBCrWqJWVIrdagR0tgI17tA== X-Google-Smtp-Source: ABdhPJxVsZWdny2wbGz+Ij6oqClFWhwdG3fGrLnr/DiuUm96u/EUnuEzQctZlLhlgj6h0oSuL5HxaQ== X-Received: by 2002:ac2:4568:: with SMTP id k8mr19469100lfm.382.1620715580743; Mon, 10 May 2021 23:46:20 -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 v20sm2496776lfd.92.2021.05.10.23.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 23:46:19 -0700 (PDT) From: Michal Krawczyk To: ferruh.yigit@intel.com Cc: dev@dpdk.org, ndagan@amazon.com, gtzalik@amazon.com, igorch@amazon.com, upstream@semihalf.com, Michal Krawczyk , Amit Bernstein Date: Tue, 11 May 2021 08:45:42 +0200 Message-Id: <20210511064554.10656-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210511064554.10656-1-mk@semihalf.com> References: <87e65a42-4ae5-1a81-8f8e-74759fc14999@intel.com> <20210511064554.10656-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 07/19] 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