From: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
To: "Sexton, Rory" <rory.sexton@intel.com>,
"konstantin.v.ananyev@yandex.ru" <konstantin.v.ananyev@yandex.ru>
Cc: "dev@dpdk.org" <dev@dpdk.org>, nd <nd@arm.com>, nd <nd@arm.com>
Subject: RE: [RFC 0/1] ring: add callback infrastructire to ring library
Date: Wed, 5 Apr 2023 15:49:43 +0000 [thread overview]
Message-ID: <DBAPR08MB581447CE24E07900907975CC98909@DBAPR08MB5814.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <DM6PR11MB4282BE89A81EF2C9B17B52DCEC909@DM6PR11MB4282.namprd11.prod.outlook.com>
<snip>
>
> Hi Honnappa,
>
> Responses inline.
> I will continue with an initial implementation of this feature and capture
> performance data as suggested.
>
> Rgds,
> Rory
>
> > -----Original Message-----
> > From: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
> > Sent: Wednesday, April 5, 2023 1:46 AM
> > To: Sexton, Rory <rory.sexton@intel.com>;
> > konstantin.v.ananyev@yandex.ru
> > Cc: dev@dpdk.org; nd <nd@arm.com>; nd <nd@arm.com>
> > Subject: RE: [RFC 0/1] ring: add callback infrastructire to ring
> > library
> >
> > Hi Roxy,
Sincere apologies for spelling your name incorrectly.
> > Thanks for the work, few questions inline.
> >
> > > -----Original Message-----
> > > From: Rory Sexton <rory.sexton@intel.com>
> > > Sent: Thursday, March 23, 2023 6:38 AM
> > > To: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>;
> > > konstantin.v.ananyev@yandex.ru
> > > Cc: dev@dpdk.org; Rory Sexton <rory.sexton@intel.com>
> > > Subject: [RFC 0/1] ring: add callback infrastructire to ring library
> > >
> > > This is an RFC proposing the addition of a callback infrastructure
> > > to the ring library, particularly in the ring dequeue functions, but
> > > they could also be added to the enqueue functions if desired.
> > >
> > > Callbacks in the ring dequeue functions would be beneficial for a
> > > number of reasons including but not limited to the following:
> > > - would allow users to register specific functions to be called on dequeue
> of a
> > > ring avoiding the need to call the function within application code on
> several
> > > threads reading from said ring.
> > I do not completely understand the 'avoiding the need to call the function
> within application code on several threads reading from said ring'.
> Irrespective of where the feature is implemented (either in ring library or the
> application), the call back function will be called on all the threads that
> receive from this queue.
> I just mean the callback infrastructure would handle the call back function
> rather than developer needing to call their implemented function explicitly
Thanks for clarifying
>
> >
<snip>
>
> >
> > >
> > > The addition of callbacks wouldn't impact the reading of rings by
> > > more than 1 cycle when no callbacks are registered. They could also
> > > additionally be compiled in/out as desired to give more confidence
> > > in maintaining performance when callbacks are not required.
> > I would prefer to keep this feature on always as maintenance is easier. But, I
> think we should make that decision only after we have performance data. Is it
> possible to provide some performance data with this feature on but no
> callbacks registered?
> Agreed that keeping the feature always on would be easier long-term.
> I can capture performance data with the feature on but no callbacks
> registered.
> We can base the final implementation with that data in mind.
Ack
<snip>
prev parent reply other threads:[~2023-04-05 15:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-23 11:37 Rory Sexton
2023-03-23 11:37 ` [RFC 1/1] ring: add infrastructure to allow callbacks within the " Rory Sexton
2023-10-31 21:41 ` Stephen Hemminger
2023-03-23 11:55 ` [RFC 0/1] ring: add callback infrastructire to " Morten Brørup
2023-04-05 0:46 ` Honnappa Nagarahalli
2023-04-05 14:44 ` Sexton, Rory
2023-04-05 15:49 ` Honnappa Nagarahalli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DBAPR08MB581447CE24E07900907975CC98909@DBAPR08MB5814.eurprd08.prod.outlook.com \
--to=honnappa.nagarahalli@arm.com \
--cc=dev@dpdk.org \
--cc=konstantin.v.ananyev@yandex.ru \
--cc=nd@arm.com \
--cc=rory.sexton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).