]> git.baikalelectronics.ru Git - kernel.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)
commitfb361aa95da2f80038899d2cd285eb59aa6c25ab
treec0de954cd9f65b6c6368215261992f0b7c3b7337
parent324d6ca591fd4e4465b86209c0de5ad1fe08c614
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