DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] locking around rx_intr_enable/disable?
@ 2019-02-26 18:14 Stephen Hemminger
  2019-02-27  8:57 ` Andrew Rybchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2019-02-26 18:14 UTC (permalink / raw)
  To: dev

I noticed an anomaly in how receive interrupt control is done.

In l3fwd-power there is a per-port lock around calls to enable interrupts
but no locking around the call to disable interrupts.  This looks broken
since intr_disable requires multiple operations on some hardware.

There are three better options:
1) do locking in rte_eth_dev (not application)
2) push any necessary locking down into the driver
3) lock on both places in l3fwd-power (and other usages)

I am thinking #1 is easiest solution.

Which ever solution is done, the documentation should be as well.

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

end of thread, other threads:[~2019-02-27  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 18:14 [dpdk-dev] locking around rx_intr_enable/disable? Stephen Hemminger
2019-02-27  8:57 ` Andrew Rybchenko

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).