Henrik Austad 8a5f2166a6 net: export netdev_txq_to_tc to allow sch_mqprio to compile as module
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 <alexander.h.duyck@intel.com>
Cc: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Henrik Austad <haustad@cisco.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-17 17:00:08 +01:00
..
2017-04-12 22:02:40 +02:00
2017-08-09 22:43:50 -07:00
2017-10-14 18:30:06 -07:00
2017-10-16 21:26:40 +01:00
2017-09-26 09:54:06 -07:00
2017-10-01 22:35:07 -07:00
2017-08-29 15:16:52 -07:00
2017-10-16 21:28:36 +01:00
2017-10-05 18:44:17 -07:00
2017-08-03 09:13:51 -07:00
2017-08-29 15:16:52 -07:00
2017-08-16 11:27:52 -07:00