devlink: fix sb register stub in case devlink is disabled
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: bf7974710a
("devlink: add shared buffer configuration")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
608b997726
Коммит
de33efd0fb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче