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 A44CAA0546; Fri, 30 Apr 2021 14:58:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 090E5411E8; Fri, 30 Apr 2021 14:57:51 +0200 (CEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mails.dpdk.org (Postfix) with ESMTP id CEE7A41143 for ; Fri, 30 Apr 2021 14:57:44 +0200 (CEST) Received: by mail-wm1-f41.google.com with SMTP id n84so10619097wma.0 for ; Fri, 30 Apr 2021 05:57:44 -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=aiyztqmb2JrOvNPAe6I0px6F9VLe/kiuH9oBen8dWTpmIXSA1CqFAcSCZIOgX61q2l B9Aci0Vn2zZ6JK+tIkEoojll1WMIAsMiQfaQGsOU23nfT09ixNWFnia9bGFAHyqau+FA gcJr28frIQUdgke2shWCYvPdPVWb4BFMTUAISlgxEovRd18bMjf5rhjPc4qHIw9p3gEV gP9J5c9yxtSfOoRWzgnRxmgMJx0qhuZm0zLWZgn9jzPBVy1m8eL6ZdKQ6QQ/hIsC153E VjxzYQ2skZSXgJzDQq3ZwGLywHYICEO/10zJuKbkrYDDZ2WmytgC35D7CltH5Y7N3SvT YQUQ== 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=FcarvcBXNuLz7xnybJjk3TCJtJafUyqOs0kjOlRR8mR/Z8Zb/m/P28H6yZ/1C+bcDX RC6eYa2lOaszYcs/W42qmFZe847BCQbpyBS29M+Eks0E2YEniy5P7dmHJqbdsdgxyVXZ W6sf23KnkFo3RWHfcXQNG8PUcp/4wq/EOK3lu8x2gP0tKHA6suJug89r8owy3LPRzS+2 t9DgPGncBSLpubUG75EDd12ZO7d6aZH4LbrV5yMF+64uP2Qm1dyco1h3dCzeUfsVmOE0 JeKWk8nITlJ4JIBswj+XTR+c3gCiw99xdfe0RibKl49x0ytpspKKzrVAOec18JthlAuV 4NWg== X-Gm-Message-State: AOAM531gPD9PEbiQ82bM4ObsTzUVVGlnqL2Y8RLeKsLFp9Kg70poSkGF 5CYXmJFNY9q5kS5oHkqQJCq8kjCO0zuLdZj6 X-Google-Smtp-Source: ABdhPJy/G0I07Bvjjq0UdLR302HD3KMfdMrv++zNWmsi53g9kmLwp7SOILrJOVWPN4wnhUxRuzks3w== X-Received: by 2002:a1c:7515:: with SMTP id o21mr6002531wmc.90.1619787464329; Fri, 30 Apr 2021 05:57:44 -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 l13sm13476245wmj.3.2021.04.30.05.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 05:57:43 -0700 (PDT) From: Michal Krawczyk To: dev@dpdk.org Cc: ndagan@amazom.com, gtzalik@amazon.com, igorch@amazon.com, mw@semihalf.com, Michal Krawczyk , Amit Bernstein Date: Fri, 30 Apr 2021 14:57:10 +0200 Message-Id: <20210430125725.28796-8-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210430125725.28796-1-mk@semihalf.com> References: <20210430125725.28796-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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