xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* AF_XDP (i40e) behavior change in 5.11?
@ 2021-03-24  2:30 Dan Siemon
  2021-03-24 10:00 ` Magnus Karlsson
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Siemon @ 2021-03-24  2:30 UTC (permalink / raw)
  To: xdp-newbies

./xsk_fwd -i ens1f0 -q 2 -i ens1f1 -q 2 -c 5 -i ens1f0 -q 3 -i ens1f1 -
q 3 -c 6

On 5.10, the cores (2,3) assigned interrupts for the queues (2,3) are
idle when there is no traffic.

On 5.11, the cores immediately go to 100% system time when the program
starts (as viewed in htop). There is no network traffic.

Intel 710/i40e.

I tried this with xsk_fwd built from 5.10 and 5.11 trees with the same
result.

Is this behavior change expected?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AF_XDP (i40e) behavior change in 5.11?
  2021-03-24  2:30 AF_XDP (i40e) behavior change in 5.11? Dan Siemon
@ 2021-03-24 10:00 ` Magnus Karlsson
  2021-03-25 22:17   ` Dan Siemon
  0 siblings, 1 reply; 4+ messages in thread
From: Magnus Karlsson @ 2021-03-24 10:00 UTC (permalink / raw)
  To: Dan Siemon; +Cc: Xdp

On Wed, Mar 24, 2021 at 10:22 AM Dan Siemon <dan@coverfire.com> wrote:
>
> ./xsk_fwd -i ens1f0 -q 2 -i ens1f1 -q 2 -c 5 -i ens1f0 -q 3 -i ens1f1 -
> q 3 -c 6
>
> On 5.10, the cores (2,3) assigned interrupts for the queues (2,3) are
> idle when there is no traffic.
>
> On 5.11, the cores immediately go to 100% system time when the program
> starts (as viewed in htop). There is no network traffic.
>
> Intel 710/i40e.
>
> I tried this with xsk_fwd built from 5.10 and 5.11 trees with the same
> result.
>
> Is this behavior change expected?

Thanks for reporting this. No, this is not intentional. I did send up
a fix for a bug in the i40e driver that was introduced in 5.11. It
might be the culprit. Could you please try the patch below and see if
it works? It is not yet in net.

https://www.spinics.net/lists/netdev/msg729128.html

/Magnus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AF_XDP (i40e) behavior change in 5.11?
  2021-03-24 10:00 ` Magnus Karlsson
@ 2021-03-25 22:17   ` Dan Siemon
  2021-03-26  7:37     ` Magnus Karlsson
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Siemon @ 2021-03-25 22:17 UTC (permalink / raw)
  To: Magnus Karlsson; +Cc: Xdp

On Wed, 2021-03-24 at 11:00 +0100, Magnus Karlsson wrote:
> On Wed, Mar 24, 2021 at 10:22 AM Dan Siemon <dan@coverfire.com>
> wrote:
> > 
> > ./xsk_fwd -i ens1f0 -q 2 -i ens1f1 -q 2 -c 5 -i ens1f0 -q 3 -i
> > ens1f1 -
> > q 3 -c 6
> > 
> > On 5.10, the cores (2,3) assigned interrupts for the queues (2,3)
> > are
> > idle when there is no traffic.
> > 
> > On 5.11, the cores immediately go to 100% system time when the
> > program
> > starts (as viewed in htop). There is no network traffic.
> > 
> > Intel 710/i40e.
> > 
> > I tried this with xsk_fwd built from 5.10 and 5.11 trees with the
> > same
> > result.
> > 
> > Is this behavior change expected?
> 
> Thanks for reporting this. No, this is not intentional. I did send up
> a fix for a bug in the i40e driver that was introduced in 5.11. It
> might be the culprit. Could you please try the patch below and see if
> it works? It is not yet in net.
> 
> https://www.spinics.net/lists/netdev/msg729128.htm

Hi Magnus,

It appears (quick testing) that the patch fixes the problem.

Thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AF_XDP (i40e) behavior change in 5.11?
  2021-03-25 22:17   ` Dan Siemon
@ 2021-03-26  7:37     ` Magnus Karlsson
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Karlsson @ 2021-03-26  7:37 UTC (permalink / raw)
  To: Dan Siemon; +Cc: Xdp

On Thu, Mar 25, 2021 at 11:17 PM Dan Siemon <dan@coverfire.com> wrote:
>
> On Wed, 2021-03-24 at 11:00 +0100, Magnus Karlsson wrote:
> > On Wed, Mar 24, 2021 at 10:22 AM Dan Siemon <dan@coverfire.com>
> > wrote:
> > >
> > > ./xsk_fwd -i ens1f0 -q 2 -i ens1f1 -q 2 -c 5 -i ens1f0 -q 3 -i
> > > ens1f1 -
> > > q 3 -c 6
> > >
> > > On 5.10, the cores (2,3) assigned interrupts for the queues (2,3)
> > > are
> > > idle when there is no traffic.
> > >
> > > On 5.11, the cores immediately go to 100% system time when the
> > > program
> > > starts (as viewed in htop). There is no network traffic.
> > >
> > > Intel 710/i40e.
> > >
> > > I tried this with xsk_fwd built from 5.10 and 5.11 trees with the
> > > same
> > > result.
> > >
> > > Is this behavior change expected?
> >
> > Thanks for reporting this. No, this is not intentional. I did send up
> > a fix for a bug in the i40e driver that was introduced in 5.11. It
> > might be the culprit. Could you please try the patch below and see if
> > it works? It is not yet in net.
> >
> > https://www.spinics.net/lists/netdev/msg729128.htm
>
> Hi Magnus,
>
> It appears (quick testing) that the patch fixes the problem.

Perfect! I will send a mail and try to get it through the internal
testing as soon as possible so we can get it up on the list and
merged.

Thank you: Magnus

> Thanks.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-26  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  2:30 AF_XDP (i40e) behavior change in 5.11? Dan Siemon
2021-03-24 10:00 ` Magnus Karlsson
2021-03-25 22:17   ` Dan Siemon
2021-03-26  7:37     ` Magnus Karlsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).