|
@@ -132,8 +132,7 @@ MODULE_PARM_DESC(log_num_vlan, "Log2 max number of VLANs per ETH port (0-7)");
|
|
|
|
|
|
static bool use_prio;
|
|
|
module_param_named(use_prio, use_prio, bool, 0444);
|
|
|
-MODULE_PARM_DESC(use_prio, "Enable steering by VLAN priority on ETH ports "
|
|
|
- "(0/1, default 0)");
|
|
|
+MODULE_PARM_DESC(use_prio, "Enable steering by VLAN priority on ETH ports (deprecated)");
|
|
|
|
|
|
int log_mtts_per_seg = ilog2(MLX4_MTT_ENTRY_PER_SEG);
|
|
|
module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
|
|
@@ -290,7 +289,6 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
|
|
|
|
|
dev->caps.log_num_macs = log_num_mac;
|
|
|
dev->caps.log_num_vlans = MLX4_LOG_NUM_VLANS;
|
|
|
- dev->caps.log_num_prios = use_prio ? 3 : 0;
|
|
|
|
|
|
for (i = 1; i <= dev->caps.num_ports; ++i) {
|
|
|
dev->caps.port_type[i] = MLX4_PORT_TYPE_NONE;
|
|
@@ -358,7 +356,6 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
|
|
dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FC_ADDR] =
|
|
|
(1 << dev->caps.log_num_macs) *
|
|
|
(1 << dev->caps.log_num_vlans) *
|
|
|
- (1 << dev->caps.log_num_prios) *
|
|
|
dev->caps.num_ports;
|
|
|
dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FC_EXCH] = MLX4_NUM_FEXCH;
|
|
|
|
|
@@ -2596,7 +2593,7 @@ static void __mlx4_remove_one(struct pci_dev *pdev)
|
|
|
/* in SRIOV it is not allowed to unload the pf's
|
|
|
* driver while there are alive vf's */
|
|
|
if (mlx4_is_master(dev) && mlx4_how_many_lives_vf(dev))
|
|
|
- printk(KERN_ERR "Removing PF when there are assigned VF's !!!\n");
|
|
|
+ pr_warn("Removing PF when there are assigned VF's !!!\n");
|
|
|
mlx4_stop_sense(dev);
|
|
|
mlx4_unregister_device(dev);
|
|
|
|
|
@@ -2767,22 +2764,26 @@ static struct pci_driver mlx4_driver = {
|
|
|
static int __init mlx4_verify_params(void)
|
|
|
{
|
|
|
if ((log_num_mac < 0) || (log_num_mac > 7)) {
|
|
|
- pr_warning("mlx4_core: bad num_mac: %d\n", log_num_mac);
|
|
|
+ pr_warn("mlx4_core: bad num_mac: %d\n", log_num_mac);
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
if (log_num_vlan != 0)
|
|
|
- pr_warning("mlx4_core: log_num_vlan - obsolete module param, using %d\n",
|
|
|
- MLX4_LOG_NUM_VLANS);
|
|
|
+ pr_warn("mlx4_core: log_num_vlan - obsolete module param, using %d\n",
|
|
|
+ MLX4_LOG_NUM_VLANS);
|
|
|
+
|
|
|
+ if (use_prio != 0)
|
|
|
+ pr_warn("mlx4_core: use_prio - obsolete module param, ignored\n");
|
|
|
|
|
|
if ((log_mtts_per_seg < 1) || (log_mtts_per_seg > 7)) {
|
|
|
- pr_warning("mlx4_core: bad log_mtts_per_seg: %d\n", log_mtts_per_seg);
|
|
|
+ pr_warn("mlx4_core: bad log_mtts_per_seg: %d\n",
|
|
|
+ log_mtts_per_seg);
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
/* Check if module param for ports type has legal combination */
|
|
|
if (port_type_array[0] == false && port_type_array[1] == true) {
|
|
|
- printk(KERN_WARNING "Module parameter configuration ETH/IB is not supported. Switching to default configuration IB/IB\n");
|
|
|
+ pr_warn("Module parameter configuration ETH/IB is not supported. Switching to default configuration IB/IB\n");
|
|
|
port_type_array[0] = true;
|
|
|
}
|
|
|
|