ionic: set ionic ptr before setting up ethtool ops
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 4 Dec 2023 21:09:33 +0000 (13:09 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Dec 2023 04:49:50 +0000 (20:49 -0800)
commit46ca79d28fd7f2bbccf226fc0be59c2bd8d63dfe
tree0b06f2c539623f1d838ac5e3f97b06d6091843ad
parent15e54faa5d5e4840974de7fb5cd737c2179a309a
ionic: set ionic ptr before setting up ethtool ops

Set the lif->ionic value that is used in some ethtool callbacks
before setting ethtool ops.  There really shouldn't be any
race issues before this change since the netdev hasn't been
registered yet, but this seems more correct.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Link: https://lore.kernel.org/r/20231204210936.16587-3-shannon.nelson@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c