]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/mlx4_core: Load higher level modules according to ports type
authorEyal Perry <eyalpe@mellanox.com>
Tue, 15 Oct 2013 14:55:24 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2013 19:10:50 +0000 (15:10 -0400)
commitb046ffe54dc13ff8ae918c83bedb71aa7919d63b
treec0de954cd9f65b6c6368215261992f0b7c3b7337
parent39e210fd23d45cf2521aaf0855c838bc5e37fbd6
net/mlx4_core: Load higher level modules according to ports type

Mellanox ConnectX architecture is:  mlx4_core is the lower level
PCI driver which register on the PCI id, and protocol specific drivers
are depended on it: mlx4_en - for Ethernet and mlx4_ib for Infiniband.
NIC could have multiple ports which can change their type dynamically.
We use the request_module() call to load the relevant protocol driver
when needed: on loading time or at port type change event.

Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c