From: Saeed Mahameed <saeed@kernel•org>
To: "David S. Miller" <davem@davemloft•net>,
Jakub Kicinski <kuba@kernel•org>
Cc: netdev@vger•kernel.org, Tariq Toukan <tariqt@nvidia•com>,
Parav Pandit <parav@nvidia•com>,
Saeed Mahameed <saeedm@nvidia•com>
Subject: [net-next 02/16] net/mlx5: E-Switch, Skip querying SF enabled bits
Date: Tue, 13 Apr 2021 12:29:52 -0700 [thread overview]
Message-ID: <20210413193006.21650-3-saeed@kernel.org> (raw)
In-Reply-To: <20210413193006.21650-1-saeed@kernel.org>
From: Parav Pandit <parav@nvidia•com>
With vhca events, SF state is queried through the VHCA events. Device no
longer expects SF bitmap in the query eswitch functions command.
Hence, remove it to simplify the code.
Signed-off-by: Parav Pandit <parav@nvidia•com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia•com>
---
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
index 6cf04a366f99..b3bc82e419b6 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
@@ -1390,15 +1390,9 @@ const u32 *mlx5_esw_query_functions(struct mlx5_core_dev *dev)
{
int outlen = MLX5_ST_SZ_BYTES(query_esw_functions_out);
u32 in[MLX5_ST_SZ_DW(query_esw_functions_in)] = {};
- u16 max_sf_vports;
u32 *out;
int err;
- max_sf_vports = mlx5_sf_max_functions(dev);
- /* Device interface is array of 64-bits */
- if (max_sf_vports)
- outlen += DIV_ROUND_UP(max_sf_vports, BITS_PER_TYPE(__be64)) * sizeof(__be64);
-
out = kvzalloc(outlen, GFP_KERNEL);
if (!out)
return ERR_PTR(-ENOMEM);
--
2.30.2
next prev parent reply other threads:[~2021-04-13 19:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 19:29 [pull request][net-next 00/16] mlx5 updates 2021-04-13 Saeed Mahameed
2021-04-13 19:29 ` [net-next 01/16] net/mlx5: E-Switch, let user to enable disable metadata Saeed Mahameed
2021-04-13 20:21 ` Jakub Kicinski
2021-04-13 22:40 ` Saeed Mahameed
2021-04-13 22:57 ` Jakub Kicinski
2021-04-13 19:29 ` Saeed Mahameed [this message]
2021-04-13 19:29 ` [net-next 03/16] net/mlx5: E-Switch, Make vport number u16 Saeed Mahameed
2021-04-13 19:29 ` [net-next 04/16] net/mlx5: E-Switch Make cleanup sequence mirror of init Saeed Mahameed
2021-04-13 19:29 ` [net-next 05/16] net/mlx5: E-Switch, Convert a macro to a helper routine Saeed Mahameed
2021-04-13 19:29 ` [net-next 06/16] net/mlx5: E-Switch, Move legacy code to a individual file Saeed Mahameed
2021-04-13 19:29 ` [net-next 07/16] net/mlx5: E-Switch, Initialize eswitch acls ns when eswitch is enabled Saeed Mahameed
2021-04-13 19:29 ` [net-next 08/16] net/mlx5: SF, Use device pointer directly Saeed Mahameed
2021-04-13 19:29 ` [net-next 09/16] net/mlx5: SF, Reuse stored hardware function id Saeed Mahameed
2021-04-13 19:30 ` [net-next 10/16] net/mlx5: DR, Use variably sized data structures for different actions Saeed Mahameed
2021-04-13 19:30 ` [net-next 11/16] net/mlx5: DR, Alloc cmd buffer with kvzalloc() instead of kzalloc() Saeed Mahameed
2021-04-13 19:30 ` [net-next 12/16] net/mlx5: Fix bit-wise and with zero Saeed Mahameed
2021-04-13 19:30 ` [net-next 13/16] net/mlx5: Add a blank line after declarations Saeed Mahameed
2021-04-13 19:30 ` [net-next 14/16] net/mlx5: Remove return statement exist at the end of void function Saeed Mahameed
2021-04-13 19:30 ` [net-next 15/16] net/mlx5: Replace spaces with tab at the start of a line Saeed Mahameed
2021-04-13 19:30 ` [net-next 16/16] net/mlx5e: Fix RQ creation flow for queues which doesn't support XDP Saeed Mahameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210413193006.21650-3-saeed@kernel.org \
--to=saeed@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=parav@nvidia$(echo .)com \
--cc=saeedm@nvidia$(echo .)com \
--cc=tariqt@nvidia$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox