net: sched: provide shim definitions for taprio_offload_{get,free}
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 4 Jul 2022 19:02:40 +0000 (22:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Jul 2022 00:50:38 +0000 (17:50 -0700)
commitd7be266adbfd3aca6965ea6a0c36b2c3d8fc9fc8
tree36b2cf00071ee59e1acfd4a36856209f8471068c
parentf05643a0f60bf67c09a5276b81258b845b0c73b4
net: sched: provide shim definitions for taprio_offload_{get,free}

All callers of taprio_offload_get() and taprio_offload_free() prior to
the blamed commit are conditionally compiled based on CONFIG_NET_SCH_TAPRIO.

felix_vsc9959.c is different; it provides vsc9959_qos_port_tas_set()
even when taprio is compiled out.

Provide shim definitions for the functions exported by taprio so that
felix_vsc9959.c is able to compile. vsc9959_qos_port_tas_set() in that
case is dead code anyway, and ocelot_port->taprio remains NULL, which is
fine for the rest of the logic.

Fixes: 1c9017e44af2 ("net: dsa: felix: keep reference on entire tc-taprio config")
Reported-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Colin Foster <colin.foster@in-advantage.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Link: https://lore.kernel.org/r/20220704190241.1288847-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/pkt_sched.h