bnxt: call devlink_port_type_eth_set() before port register
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Mar 2019 10:14:28 +0000 (11:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2019 18:55:30 +0000 (14:55 -0400)
commitc3f10cbcaa3d5e1980733c3ccd0261df426412d2
tree550e7c04ca4866329f14bd978cffc7ee6b1579ac
parenta0e18132ec51301414a5c92e6c258c2e62fdf08f
bnxt: call devlink_port_type_eth_set() before port register

Call devlink_port_type_eth_set() before devlink_port_register(). Bnxt
instances won't change type during lifetime. This avoids one extra
userspace devlink notification.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c