From: Tariq Toukan <ttoukan.linux@gmail.com>
To: linux@treblig.org, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com
Cc: ionut@badula.org, tariqt@nvidia.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] net: ethernet: mlx4: remove unused struct 'mlx4_port_config'
Date: Mon, 27 May 2024 08:29:51 +0300 [thread overview]
Message-ID: <57520ee5-0d7d-40df-8edc-de85b1005453@gmail.com> (raw)
In-Reply-To: <20240526172428.134726-4-linux@treblig.org>
On 26/05/2024 20:24, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 'mlx4_port_config was added by
> commit ab9c17a009ee ("mlx4_core: Modify driver initialization flow to
> accommodate SRIOV for Ethernet")
> but remained unused.
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
> drivers/net/ethernet/mellanox/mlx4/main.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
> index 98688e4dbec5..febeadfdd5a5 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/main.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/main.c
> @@ -169,12 +169,6 @@ module_param_array(port_type_array, int, &arr_argc, 0444);
> MODULE_PARM_DESC(port_type_array, "Array of port types: HW_DEFAULT (0) is default "
> "1 for IB, 2 for Ethernet");
>
> -struct mlx4_port_config {
> - struct list_head list;
> - enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1];
> - struct pci_dev *pdev;
> -};
> -
> static atomic_t pf_loading = ATOMIC_INIT(0);
>
> static int mlx4_devlink_ierr_reset_get(struct devlink *devlink, u32 id,
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Thanks for your patch.
next prev parent reply other threads:[~2024-05-27 5:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 17:24 [PATCH 0/4] net: ethernet: dead struct removals linux
2024-05-26 17:24 ` [PATCH 1/4] net: ethernet: starfire: remove unused structs linux
2024-05-26 17:24 ` [PATCH 2/4] net: ethernet: liquidio: " linux
2024-05-26 17:24 ` [PATCH 3/4] net: ethernet: mlx4: remove unused struct 'mlx4_port_config' linux
2024-05-27 5:29 ` Tariq Toukan [this message]
2024-05-26 17:24 ` [PATCH 4/4] net: ethernet: 8390: ne2k-pci: remove unused struct 'ne2k_pci_card' linux
2024-05-28 13:30 ` [PATCH 0/4] net: ethernet: dead struct removals patchwork-bot+netdevbpf
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=57520ee5-0d7d-40df-8edc-de85b1005453@gmail.com \
--to=ttoukan.linux@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ionut@badula.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tariqt@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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