Commit de33efd0 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

devlink: fix sb register stub in case devlink is disabled

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: bf797471 ("devlink: add shared buffer configuration")
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 608b9977
...@@ -184,7 +184,9 @@ static inline void devlink_port_split_set(struct devlink_port *devlink_port, ...@@ -184,7 +184,9 @@ static inline void devlink_port_split_set(struct devlink_port *devlink_port,
static inline int devlink_sb_register(struct devlink *devlink, static inline int devlink_sb_register(struct devlink *devlink,
unsigned int sb_index, u32 size, unsigned int sb_index, u32 size,
u16 ingress_pools_count, u16 ingress_pools_count,
u16 egress_pools_count, u16 tc_count) u16 egress_pools_count,
u16 ingress_tc_count,
u16 egress_tc_count)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment