]> Git Repo - linux.git/commit
net/mlx4: Postpone the registration of net_device
authorMoni Shoua <[email protected]>
Thu, 30 Jul 2015 15:33:28 +0000 (18:33 +0300)
committerDoug Ledford <[email protected]>
Sun, 30 Aug 2015 22:12:20 +0000 (18:12 -0400)
commit79857cd31fe70145ff007d4e968557af342c8ccd
tree16eb5651b5b51e6619cf2010fe14bad625207555
parent238fdf48f2b54a01cedb5774c3a1e81c94e1a3a0
net/mlx4: Postpone the registration of net_device

The mlx4 network driver was registered in the context of the 'add'
function of the core driver (called when HW should be registered).
This makes the netdev event NETDEV_REGISTER to be sent in a context
where the answer to get_protocol_dev() callback returns NULL. This may
be confusing to listeners of netdev events.
This patch is a preparation to the patch that implements the
get_netdev() callback in the IB/mlx4 driver.

Signed-off-by: Moni Shoua <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/intf.c
include/linux/mlx4/driver.h
This page took 0.052761 seconds and 4 git commands to generate.