netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Applicability of using 'txq_trans_update' during ring recovery
@ 2022-04-12 17:01 Ray Jui
  2022-04-12 17:37 ` Jakub Kicinski
  0 siblings, 1 reply; 9+ messages in thread
From: Ray Jui @ 2022-04-12 17:01 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

Hi David/Jakub,

I'd like to run through you on the idea of invoking 'txq_trans_update'
to update the last TX timestamp in the scenario where we temporarily
stop the TX queue to do some recovery work. Is it considered an
acceptable approach to prevent false positive triggering of TX timeout
during the recovery process?

I know in general people use 'netif_carrier_off' during the process when
they reset/change the entire TX/RX ring set and/or other resources on
the Ethernet card. But in our particular case, we have another driver
running (i.e., RoCE) on top and setting 'netif_carrier_off' will cause a
significant side effect on the other driver (e.g., all RoCE QPs will be
terminated). In addition, for this special recovery work on our driver,
we are doing it on a per NAPI ring set basis while keeping the traffic
on other queues running. Using 'netif_carrier_off' will prevent traffic
running from all other queues that are not going through recovery.

Thanks,

Ray

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4194 bytes --]

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

end of thread, other threads:[~2022-04-12 23:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-12 17:01 [RFC] Applicability of using 'txq_trans_update' during ring recovery Ray Jui
2022-04-12 17:37 ` Jakub Kicinski
2022-04-12 18:08   ` Ray Jui
2022-04-12 18:24     ` Michael Chan
2022-04-12 18:36       ` Ray Jui
2022-04-12 19:19         ` Michael Chan
2022-04-12 19:34           ` Ray Jui
2022-04-12 21:49             ` Jakub Kicinski
2022-04-12 22:21               ` Ray Jui

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