Thread (4 messages) flat view 4 messages, 4 authors, 2017-10-17

Re: [PATCH] net: export netdev_txq_to_tc to allow sch_mqprio to compile as module

From: David Miller <davem@davemloft.net>
Date: 2017-10-17 16:01:00
Also in: lkml

From: Henrik Austad <redacted>
Date: Tue, 17 Oct 2017 12:10:10 +0200
In commit 32302902ff09 ("mqprio: Reserve last 32 classid values for HW
traffic classes and misc IDs") sch_mqprio started using netdev_txq_to_tc
to find the correct tc instead of dev->tc_to_txq[]

However, when mqprio is compiled as a module, it cannot resolve the
symbol, leading to this error:

     ERROR: "netdev_txq_to_tc" [net/sched/sch_mqprio.ko] undefined!

This adds an EXPORT_SYMBOL() since the other user in the kernel
(netif_set_xps_queue) is also EXPORT_SYMBOL() (and not _GPL) or in a
sysfs-callback.

Cc: Alexander Duyck <redacted>
Cc: Jesus Sanchez-Palencia <redacted>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Henrik Austad <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help