All of lore.kernel.org
 help / color / mirror / Atom feed
* ixgbe tuning reset when XDP is setup
@ 2017-12-15 10:24 Eric Leblond
  2017-12-15 15:53 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Leblond @ 2017-12-15 10:24 UTC (permalink / raw)
  To: netdev, xdp-newbies; +Cc: Peter Manev

Hello,

When using an ixgbe card with Suricata we are using the following
commands to get a symmetric hash on RSS load balancing:

./set_irq_affinity 0-15 eth3
ethtool -X eth3 hkey 6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A equal 16
ethtool -x eth3
ethtool -n eth3

Then we start Suricata.

In my current experiment on XDP, I have Suricata that inject the eBPF
program when starting. The consequence of that when using an ixgbe card
is that the load balancing get reset and all interrupts are reaching
the first core.

My analysis is that in the ixgbe_xdp_setup() function we call
ixgbe_setup_tc() that reset the hash tuning parameter.

If we run the affinity script and the ethtool commands after XDP is
loaded then things are going normal again. But this is not an optimal
behavior.

Is this really what is happening ? Is there a known workaround for this
issue ?

BR,
-- 
Eric Leblond <eric@regit.org>

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

end of thread, other threads:[~2018-02-21 20:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 10:24 ixgbe tuning reset when XDP is setup Eric Leblond
2017-12-15 15:53 ` David Miller
2017-12-15 16:03   ` John Fastabend
2017-12-15 16:51     ` Alexander Duyck
2017-12-15 16:56       ` Peter Manev
2018-01-25 13:09         ` Peter Manev
2018-01-25 15:07           ` Alexander Duyck
2018-02-21 20:01             ` Peter Manev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.