linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlx4
Moshe Shemesh 2645060834 net/mlx4_core: Fix warnings during boot on driverinit param set failures
During boot, mlx4_core sets the driverinit configuration parameters and
updates the devlink module on the initial values calling
devlink_param_driverinit_value_set().
If devlink_param_driverinit_value_set() returns an error mlx4_core
reports kernel module warning.

This caused false alarm during boot in case kernel was compiled with
CONFIG_NET_DEVLINK off.
Fix by removing warning reported in case
devlink_param_driverinit_value_set() fails.

This actually makes the function mlx4_devlink_set_init_value()
redundant to using directly devlink_param_driverinit_value_set() and so
removed.

It fixes the following kernel trace:

 mlx4_core 0000:00:06.0: devlink set parameter 0 value failed (err = -95)
 mlx4_core 0000:00:06.0: devlink set parameter 1 value failed (err = -95)
 mlx4_core 0000:00:06.0: devlink set parameter 4 value failed (err = -95)
 mlx4_core 0000:00:06.0: devlink set parameter 5 value failed (err = -95)
 mlx4_core 0000:00:06.0: devlink set parameter 3 value failed (err = -95)

Fixes: bd1b51dc66 ("mlx4: Add mlx4 initial parameters table and register it")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-11 10:24:35 -07:00
..
alloc.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
catas.c net/mlx4_core: Add Crdump FW snapshot support 2018-07-12 17:37:13 -07:00
cmd.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cq.c drivers, net, mlx4: convert mlx4_cq.refcount from atomic_t to refcount_t 2017-10-22 02:22:38 +01:00
crdump.c net/mlx4_core: Use devlink region_snapshot parameter 2018-07-12 17:37:13 -07:00
en_clock.c net/mlx4_en: fix overflow in mlx4_en_init_timestamp() 2017-02-26 15:39:43 -05:00
en_cq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-09-06 14:45:08 -07:00
en_dcb_nl.c net/mlx4_en: Fix mixed PFC and Global pause user control requests 2018-03-27 12:02:30 -04:00
en_ethtool.c net/mlx4_en: Verify coalescing parameters are in range 2018-05-10 16:09:05 -04:00
en_main.c net/mlx4_en: Fix mixed PFC and Global pause user control requests 2018-03-27 12:02:30 -04:00
en_netdev.c mlx4: remove ndo_poll_controller 2018-09-23 21:55:25 -07:00
en_port.c net/mlx4_en: Add physical RX/TX bytes/packets counters 2018-02-27 14:53:26 -05:00
en_port.h net/mlx4_en: Check the enabling pptx/pprx flags in SET_PORT wrapper flow 2017-01-30 15:26:43 -05:00
en_resources.c net/mlx4: Fix endianness issue in qp context params 2017-10-09 10:33:05 -07:00
en_rx.c net/mlx4/en_rx: Mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
en_selftest.c net/mlx4_en: Fix selftest for small MTUs 2017-12-13 16:38:36 -05:00
en_tx.c net: allow fallback function to pass netdev 2018-07-09 13:57:25 -07:00
eq.c net/mlx4: Use cpumask_available for eq->affinity_mask 2018-09-21 19:20:22 -07:00
fw_qos.c net/mlx4: fix spelling mistake: "availible" -> "available" 2017-08-16 14:23:45 -07:00
fw_qos.h net/mlx4: fix spelling mistake: "availible" -> "available" 2017-08-16 14:23:45 -07:00
fw.c net/mlx4_core: Add health buffer address capability 2018-07-12 17:37:13 -07:00
fw.h net/mlx4_core: Add health buffer address capability 2018-07-12 17:37:13 -07:00
icm.c treewide: kvzalloc() -> kvcalloc() 2018-06-12 16:19:22 -07:00
icm.h mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
intf.c net/mlx4: fix spelling mistake: "Inrerface" -> "Interface" and rephrase message 2018-05-23 14:58:10 -04:00
Kconfig net/mlx4: Use Kconfig flag to remove support of old gen2 Mellanox devices 2017-11-13 10:27:51 +09:00
main.c net/mlx4_core: Fix warnings during boot on driverinit param set failures 2018-10-11 10:24:35 -07:00
Makefile net/mlx4_core: Add Crdump FW snapshot support 2018-07-12 17:37:13 -07:00
mcg.c net/mlx4/mcg: Mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
mlx4_en.h net: allow ndo_select_queue to pass netdev 2018-07-09 13:41:34 -07:00
mlx4_stats.h net/mlx4_en: Add physical RX/TX bytes/packets counters 2018-02-27 14:53:26 -05:00
mlx4.h net/mlx4_core: Allow MTTs starting at any index 2018-07-25 16:30:38 -07:00
mr.c net/mlx4_core: Cleanup FMR unmapping flow 2017-12-28 12:24:05 -05:00
pd.c
port.c net: ethernet: mlx4: Remove unnecessary parentheses 2018-06-04 10:14:39 -04:00
profile.c net/mlx4_core: Allow MTTs starting at any index 2018-07-25 16:30:38 -07:00
qp.c net/mlx4: Fix irq-unsafe spinlock usage 2018-05-23 15:48:58 -04:00
reset.c
resource_tracker.c net/mlx4_core: Save the qpn from the input modifier in RST2INIT wrapper 2018-07-24 16:30:48 -07:00
sense.c
srq.c drivers, net, mlx4: convert mlx4_srq.refcount from atomic_t to refcount_t 2017-10-22 02:22:38 +01:00