]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: query offload capabilities through ndo_setup_tc()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 28 Sep 2022 09:51:57 +0000 (12:51 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Sep 2022 01:52:01 +0000 (18:52 -0700)
commit812bc205abb4e8b5d1b2759072fc31f1908d660e
tree54807e737631995a4502be8a7b52fe35a09e11f4
parent0c40121ef45123f6b444f40c09c5fdd573eb59fd
net/sched: query offload capabilities through ndo_setup_tc()

When adding optional new features to Qdisc offloads, existing drivers
must reject the new configuration until they are coded up to act on it.

Since modifying all drivers in lockstep with the changes in the Qdisc
can create problems of its own, it would be nice if there existed an
automatic opt-in mechanism for offloading optional features.

Jakub proposes that we multiplex one more kind of call through
ndo_setup_tc(): one where the driver populates a Qdisc-specific
capability structure.

First user will be taprio in further changes. Here we are introducing
the definitions for the base functionality.

Link: https://patchwork.kernel.org/project/netdevbpf/patch/20220923163310.3192733-3-vladimir.oltean@nxp.com/
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Co-developed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
include/net/pkt_sched.h
include/net/sch_generic.h
net/sched/sch_api.c