From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A11103D3A4 for ; Mon, 13 Nov 2023 23:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jtrm6bwD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62B35C433C7; Mon, 13 Nov 2023 23:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699916490; bh=RJCHsO/j81Ch3TOk+80uDyM7v3CGIJRGarrYVT4QWXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jtrm6bwDbDtWGioKoYvwcGBwOPyyUByl3Osxo8t87SHKyM5tVmltvHo1GATm4CWbn 8rfwlVGYGFQxvAzAYAuQGPJiljwFbIJJCeKcuc/WKvAhTwe87lRIYaxShOfzBy0Zos QO1/2jGC4Yx0Y38u1/w+XMgvw0UqoMtUAQExF8hqPDyJIQhqDzveJTncVWimY7lO74 p4n+AOBZdlpQ56RT2ANV5oxGeWOFeD2L57ESJcBKygsaBJQGVmI4AUM6FfWwGpbgCx a03aYImbWtrS919g2FeT0ght/irDat5KP4+txiHMkquqZ0VmttRk8lZvCJG05/+F2K LkRIrj3GJP34A== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Gal Pressman Subject: [net-next 14/14] net/mlx5e: Remove early assignment to netdev->features Date: Mon, 13 Nov 2023 15:00:51 -0800 Message-ID: <20231113230051.58229-15-saeed@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231113230051.58229-1-saeed@kernel.org> References: <20231113230051.58229-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Tariq Toukan The netdev->features is initialized to netdev->hw_features at a later point in the flow. Remove any redundant earlier assignment. Signed-off-by: Tariq Toukan Reviewed-by: Gal Pressman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index ea58c6917433..3aecdf099a2f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -5244,7 +5244,6 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev) netdev->gso_partial_features |= NETIF_F_GSO_UDP_L4; netdev->hw_features |= NETIF_F_GSO_UDP_L4; - netdev->features |= NETIF_F_GSO_UDP_L4; mlx5_query_port_fcs(mdev, &fcs_supported, &fcs_enabled); -- 2.41.0