Re: [PATCH net-next 05/15] ice: replace custom AIM algorithm with kernel's DIM library

2021-04-15 Thread Jakub Kicinski
On Thu, 15 Apr 2021 17:03:23 + Keller, Jacob E wrote: > > On Wed, 14 Apr 2021 17:30:03 -0700 Tony Nguyen wrote: > > > +static void ice_tx_dim_work(struct work_struct *work) > > > +{ > > > + struct ice_ring_container *rc; > > > + struct ice_q_vector *q_vector; > > > + struct dim *dim; > > > +

RE: [PATCH net-next 05/15] ice: replace custom AIM algorithm with kernel's DIM library

2021-04-15 Thread Keller, Jacob E
ATCH net-next 05/15] ice: replace custom AIM algorithm with > kernel's DIM library > > On Wed, 14 Apr 2021 17:30:03 -0700 Tony Nguyen wrote: > > +static void ice_tx_dim_work(struct work_struct *work) > > +{ > > + struct ice_ring_container *rc; > > + struct ic

Re: [PATCH net-next 05/15] ice: replace custom AIM algorithm with kernel's DIM library

2021-04-15 Thread Jakub Kicinski
On Wed, 14 Apr 2021 17:30:03 -0700 Tony Nguyen wrote: > +static void ice_tx_dim_work(struct work_struct *work) > +{ > + struct ice_ring_container *rc; > + struct ice_q_vector *q_vector; > + struct dim *dim; > + u16 itr, intrl; > + > + dim = container_of(work, struct dim, work);

[PATCH net-next 05/15] ice: replace custom AIM algorithm with kernel's DIM library

2021-04-14 Thread Tony Nguyen
From: Jacob Keller The ice driver has support for adaptive interrupt moderation, an algorithm for tuning the interrupt rate dynamically. This algorithm is based on various assumptions about ring size, socket buffer size, link speed, SKB overhead, ethernet frame overhead and more. The Linux kerne