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

2017-10-17 Thread David Miller
From: Henrik Austad 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

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

2017-10-17 Thread David Miller
From: Henrik Austad 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

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

2017-10-17 Thread Duyck, Alexander H
> -Original Message- > From: Eric Dumazet [mailto:eduma...@google.com] > Sent: Tuesday, October 17, 2017 4:21 AM > To: Henrik Austad > Cc: netdev ; David S . Miller > ; Daniel Borkmann ; David > Ahern

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

2017-10-17 Thread Duyck, Alexander H
> -Original Message- > From: Eric Dumazet [mailto:eduma...@google.com] > Sent: Tuesday, October 17, 2017 4:21 AM > To: Henrik Austad > Cc: netdev ; David S . Miller > ; Daniel Borkmann ; David > Ahern ; Duyck, Alexander H > ; Willem de Bruijn ; > John Fastabend ; tcharding ; LKML > ;

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

2017-10-17 Thread Eric Dumazet
On Tue, Oct 17, 2017 at 3:10 AM, Henrik Austad wrote: > 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

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

2017-10-17 Thread Eric Dumazet
On Tue, Oct 17, 2017 at 3:10 AM, Henrik Austad wrote: > 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

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

2017-10-17 Thread Henrik Austad
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:

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

2017-10-17 Thread Henrik Austad
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: