net/sched: refactor mqprio qopt reconstruction to a library function
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 4 Feb 2023 13:53:02 +0000 (15:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 10:06:44 +0000 (10:06 +0000)
commit9dd6ad674cc74a62cc85de6e02cb29d47e9c4eb5
treee193209fedbbf8e51baf1dbf7f9165c74a0cc61e
parent1dfe086dd7efb36d3d619a90782c6ca186a1bae9
net/sched: refactor mqprio qopt reconstruction to a library function

The taprio qdisc will need to reconstruct a struct tc_mqprio_qopt from
netdev settings once more in a future patch, but this code was already
written twice, once in taprio and once in mqprio.

Refactor the code to a helper in the common mqprio library.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_mqprio.c
net/sched/sch_mqprio_lib.c
net/sched/sch_mqprio_lib.h
net/sched/sch_taprio.c