1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlxsw
Petr Machata 59441fef2b mlxsw: spectrum: Don't use resource ID of 0
In commit 145307460b ("devlink: Remove top_hierarchy arg to
devlink_resource_register"), the "top_hierarchy" parameter to
devlink_resource_register() was removed in favor of using the parameter
"parent_resource_id" exclusively to determine who the parent is. The
root node's resource ID for this purpose is
DEVLINK_RESOURCE_ID_PARENT_TOP with the value 0. It is therefore
problematic that the resource MLXSW_SP_RESOURCE_KVD has also ID of 0.

Fix this by numbering driver-specific resources from 1.

Fixes: 145307460b ("devlink: Remove top_hierarchy arg to devlink_resource_register")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-01 10:56:43 -04:00
..
Kconfig mlxsw: spectrum: Don't depend on ip_gre and ip6_gre 2018-03-12 11:07:16 -04:00
Makefile mlxsw: spectrum: Move SPAN code to separate module 2018-02-13 12:26:25 -05:00
cmd.h
core.c mlxsw: Move "resources_query_enable" out of mlxsw_config_profile 2018-04-01 10:56:43 -04:00
core.h mlxsw: Move "resources_query_enable" out of mlxsw_config_profile 2018-04-01 10:56:43 -04:00
core_acl_flex_actions.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
core_acl_flex_actions.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
core_acl_flex_keys.c
core_acl_flex_keys.h mlxsw: core: Fix flex keys scratchpad offset conflict 2018-02-28 12:32:36 -05:00
core_hwmon.c ethernet: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
core_thermal.c
emad.h
i2c.c mlxsw: core: Add support for reload 2018-01-16 14:15:35 -05:00
i2c.h
ib.h
item.h mlxsw: reg: add rdpm register 2018-01-14 12:21:11 -05:00
minimal.c
pci.c mlxsw: Move "resources_query_enable" out of mlxsw_config_profile 2018-04-01 10:56:43 -04:00
pci.h
pci_hw.h mlxsw: pci: Wait after reset before accessing HW 2018-01-10 15:58:22 -05:00
port.h
reg.h mlxsw: reg: Add register settings for IPv6 multicast routing 2018-03-26 13:14:44 -04:00
resources.h mlxsw: resources: Add multicast ERIF list entries resource 2017-09-19 14:21:40 -07:00
spectrum.c mlxsw: spectrum: Pass mlxsw_core as arg of mlxsw_sp_kvdl_resources_register() 2018-04-01 10:56:43 -04:00
spectrum.h mlxsw: spectrum: Don't use resource ID of 0 2018-04-01 10:56:43 -04:00
spectrum_acl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
spectrum_acl_flex_actions.c mlxsw: spectrum: Keep mirror netdev in mlxsw_sp_span_entry 2018-02-27 14:46:27 -05:00
spectrum_acl_flex_actions.h mlxsw: spectrum_acl: Fix flex actions header ifndef define construct 2018-04-01 10:56:41 -04:00
spectrum_acl_flex_keys.h mlxsw: spectrum: Add tos to the ipv4 acl block 2017-07-17 09:18:23 -07:00
spectrum_acl_tcam.c mlxsw: spectrum_acl: Do not invalidate already invalid ACL groups 2018-03-20 12:11:02 -04:00
spectrum_buffers.c mlxsw: spectrum_buffers: Set a minimum quota for CPU port traffic 2018-03-17 17:34:54 -04:00
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c
spectrum_dpipe.c mlxsw: spectrum_dpipe: Connect dpipe tables to resources 2018-01-16 14:15:35 -05:00
spectrum_dpipe.h mlxsw: spectrum_dpipe: Add initial support for the router adjacency table 2017-09-26 20:04:35 -07:00
spectrum_fid.c mlxsw: spectrum: Treat IPv6 unregistered multicast as broadcast 2018-02-28 12:32:36 -05:00
spectrum_flower.c mlxsw: spectrum: Fix gact_ok offloading 2018-03-09 13:02:13 -05:00
spectrum_ipip.c mlxsw: spectrum_ipip: Support decoding IPv6 tunnel addresses 2018-02-27 14:46:26 -05:00
spectrum_ipip.h mlxsw: spectrum_ipip: Support decoding IPv6 tunnel addresses 2018-02-27 14:46:26 -05:00
spectrum_kvdl.c mlxsw: spectrum: Pass mlxsw_core as arg of mlxsw_sp_kvdl_resources_register() 2018-04-01 10:56:43 -04:00
spectrum_mr.c mlxsw: spectrum_mr: Add ipv6 specific operations 2018-03-26 13:14:44 -04:00
spectrum_mr.h mlxsw: spectrum_mr: Add ipv6 specific operations 2018-03-26 13:14:44 -04:00
spectrum_mr_tcam.c mlxsw: spectrum_router: Support IPv6 multicast to host CPU 2018-03-26 13:14:44 -04:00
spectrum_mr_tcam.h mlxsw: spectrum: Add the multicast routing hardware logic 2017-09-27 11:33:28 -07:00
spectrum_qdisc.c mlxsw: spectrum: qdiscs: prio: Handle graft command 2018-02-28 12:06:01 -05:00
spectrum_router.c mlxsw: spectrum_router: Process IP6MR fib notification 2018-03-26 13:14:44 -04:00
spectrum_router.h mlxsw: spectrum_router: Support IPv6 multicast to host CPU 2018-03-26 13:14:44 -04:00
spectrum_span.c mlxsw: spectrum_span: Prevent duplicate mirrors 2018-03-23 21:50:28 -04:00
spectrum_span.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
spectrum_switchdev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-06 01:20:46 -05:00
switchib.c mlxsw: Move "resources_query_enable" out of mlxsw_config_profile 2018-04-01 10:56:43 -04:00
switchx2.c mlxsw: Move "resources_query_enable" out of mlxsw_config_profile 2018-04-01 10:56:43 -04:00
trap.h mlxsw: spectrum: Add multicast router trap for PIMv6 2018-03-26 13:14:45 -04:00
txheader.h