net/mlx5: move device spawn configuration to probing
authorYongseok Koh <yskoh@mellanox.com>
Thu, 1 Nov 2018 17:20:31 +0000 (17:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commitf87bfa8eaedf59643f2cae405e691f0e04685f2a
treeb12a59cbe5f07ef11a17cebd01ac7538ad02a653
parentf420f03d6772f9951a627efd978abce9d903928d
net/mlx5: move device spawn configuration to probing

When a device is spawned, it does make more sense that the configuration
parameters are passed by callee. Furthermore, setting default value for
some configuration would need PCIe device ID which can be found in the
probe function.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c