Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-23 Thread Thomas Gleixner
On Thu, 22 Mar 2018, Jesus Sanchez-Palencia wrote: > On 03/21/2018 07:22 AM, Thomas Gleixner wrote: > > Bah, and probably there you need CLOCK_TAI because that's what PTP is based > > on, so clock_system needs to accomodate that as well. Dammit, there goes > > the simple 2 bits implementation.

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-22 Thread Jesus Sanchez-Palencia
Hi, On 03/21/2018 07:22 AM, Thomas Gleixner wrote: > On Tue, 6 Mar 2018, Jesus Sanchez-Palencia wrote: >> $ tc qdisc replace dev enp2s0 parent root handle 100 mqprio num_tc 3 \ >>map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues 1@0 1@1 2@2 hw 0 >> >> $ tc qdisc add dev enp2s0 parent 100:1

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-22 Thread Jesus Sanchez-Palencia
Hi, On 03/21/2018 09:18 AM, Thomas Gleixner wrote: > On Wed, 21 Mar 2018, Richard Cochran wrote: > >> On Wed, Mar 21, 2018 at 03:22:11PM +0100, Thomas Gleixner wrote: >>> Which clockid will be handed in from the application? The network adapter >>> time has no fixed clockid. The only way you

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-21 Thread Thomas Gleixner
On Wed, 21 Mar 2018, Richard Cochran wrote: > On Wed, Mar 21, 2018 at 03:22:11PM +0100, Thomas Gleixner wrote: > > Which clockid will be handed in from the application? The network adapter > > time has no fixed clockid. The only way you can get to it is via a fd based > > posix clock and that

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-21 Thread Richard Cochran
On Wed, Mar 21, 2018 at 03:22:11PM +0100, Thomas Gleixner wrote: > Which clockid will be handed in from the application? The network adapter > time has no fixed clockid. The only way you can get to it is via a fd based > posix clock and that does not work at all because the qdisc setup might >

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-21 Thread Thomas Gleixner
On Tue, 6 Mar 2018, Jesus Sanchez-Palencia wrote: > $ tc qdisc replace dev enp2s0 parent root handle 100 mqprio num_tc 3 \ >map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues 1@0 1@1 2@2 hw 0 > > $ tc qdisc add dev enp2s0 parent 100:1 tbs offload > > In this example, the Qdisc will use HW

[RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-06 Thread Jesus Sanchez-Palencia
Add new queueing modes to tbs qdisc so HW offload is supported. For hw offload, if sorting is on, then the time sorted list will still be used, but when sorting is disabled the enqueue / dequeue flow will be based on a 'raw' FIFO through the usage of qdisc_enqueue_tail() and qdisc_dequeue_head().