Re: [RFC 0/3] introduce coroutine library

2023-04-28 Thread fengchengwen
On 2023/4/26 19:27, Ferruh Yigit wrote: > On 4/25/2023 3:11 AM, fengchengwen wrote: >> On 2023/4/25 0:08, Stephen Hemminger wrote: >>> On Mon, 24 Apr 2023 13:02:05 + >>> Chengwen Feng wrote: >>> This patchset introduces the coroutine library which will help refactor the hns3 PMD's re

Re: [RFC 0/3] introduce coroutine library

2023-04-26 Thread Ferruh Yigit
On 4/25/2023 3:11 AM, fengchengwen wrote: > On 2023/4/25 0:08, Stephen Hemminger wrote: >> On Mon, 24 Apr 2023 13:02:05 + >> Chengwen Feng wrote: >> >>> This patchset introduces the coroutine library which will help refactor >>> the hns3 PMD's reset process. >>> >>> The hns3 single function re

Re: [RFC 0/3] introduce coroutine library

2023-04-25 Thread Mattias Rönnblom
On 2023-04-24 15:02, Chengwen Feng wrote: This patchset introduces the coroutine library which will help refactor the hns3 PMD's reset process. The hns3 single function reset process consists of the following steps: 1.stop_service(); 2.prepare_reset(); 3.delay(100ms); 4.notif

Re: [RFC 0/3] introduce coroutine library

2023-04-24 Thread Garrett D'Amore
First time poster here: I worry a bit about a coroutine approach as it may be challenging for some uses like ours.  We have a purely event driven loop with a Reactor model written in D.  The details are not specifically needed here, except to point out that an approach based on ucontext.h or so

Re: [RFC 0/3] introduce coroutine library

2023-04-24 Thread fengchengwen
On 2023/4/25 10:16, Stephen Hemminger wrote: > On Tue, 25 Apr 2023 10:11:43 +0800 > fengchengwen wrote: > >> On 2023/4/25 0:08, Stephen Hemminger wrote: >>> On Mon, 24 Apr 2023 13:02:05 + >>> Chengwen Feng wrote: >>> This patchset introduces the coroutine library which will help refa

Re: [RFC 0/3] introduce coroutine library

2023-04-24 Thread Stephen Hemminger
On Tue, 25 Apr 2023 10:11:43 +0800 fengchengwen wrote: > On 2023/4/25 0:08, Stephen Hemminger wrote: > > On Mon, 24 Apr 2023 13:02:05 + > > Chengwen Feng wrote: > > > >> This patchset introduces the coroutine library which will help refactor > >> the hns3 PMD's reset process. > >> > >> Th

Re: [RFC 0/3] introduce coroutine library

2023-04-24 Thread fengchengwen
On 2023/4/25 0:08, Stephen Hemminger wrote: > On Mon, 24 Apr 2023 13:02:05 + > Chengwen Feng wrote: > >> This patchset introduces the coroutine library which will help refactor >> the hns3 PMD's reset process. >> >> The hns3 single function reset process consists of the following steps: >>

Re: [RFC 0/3] introduce coroutine library

2023-04-24 Thread Stephen Hemminger
On Mon, 24 Apr 2023 13:02:05 + Chengwen Feng wrote: > This patchset introduces the coroutine library which will help refactor > the hns3 PMD's reset process. > > The hns3 single function reset process consists of the following steps: > 1.stop_service(); > 2.prepare_reset(); > 3.d

[RFC 0/3] introduce coroutine library

2023-04-24 Thread Chengwen Feng
This patchset introduces the coroutine library which will help refactor the hns3 PMD's reset process. The hns3 single function reset process consists of the following steps: 1.stop_service(); 2.prepare_reset(); 3.delay(100ms); 4.notify_hw(); 5.wait_hw_reset_done(); // multiple