Vasundhara Volam cda2cab077 bnxt_en: Move devlink_register before registering netdev
Latest kernels get the phys_port_name via devlink, if
ndo_get_phys_port_name is not defined. To provide the phys_port_name
correctly, register devlink before registering netdev.

Also call devlink_port_type_eth_set() after registering netdev as
devlink port updates the netdev structure and notifies user.

Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-01-27 11:33:28 +01:00
..
2020-01-25 10:43:19 +01:00
2020-01-21 12:02:25 +01:00
2019-12-09 10:36:44 -08:00
2020-01-17 11:27:49 +01:00
2020-01-14 11:31:41 -08:00
2019-12-08 17:48:42 -08:00