* napi driver for multiport device with the only one dma channel - is it possible?
@ 2018-12-13 13:30 Jan Petrous
2018-12-13 18:18 ` Stephen Hemminger
0 siblings, 1 reply; 3+ messages in thread
From: Jan Petrous @ 2018-12-13 13:30 UTC (permalink / raw)
To: netdev@vger.kernel.org
Hi,
am I understand it right that I can not use NAPI-powered design in case
when there is only one rx queue and one tx queue (only two
dma channels) usable for data transfer with the ethernet controller for
all interfaces (2 ports or more)?
I could imagine there would be possibility to declare for example rx
queue sharable between napi interfaces, but I was not able to find
anything like that.
I agree that it is a bit strange configuration but we have to support
such corner case (when other dma channels are used by independent
systems).
I seems like I have to create two drivers - one with napi, when at
least the same number of dma channels are free for use and second one
without napi (because of not enough dma channels).
Thanks.
/Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: napi driver for multiport device with the only one dma channel - is it possible?
2018-12-13 13:30 napi driver for multiport device with the only one dma channel - is it possible? Jan Petrous
@ 2018-12-13 18:18 ` Stephen Hemminger
2018-12-14 8:09 ` Jan Petrous
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2018-12-13 18:18 UTC (permalink / raw)
To: Jan Petrous; +Cc: netdev@vger.kernel.org
On Thu, 13 Dec 2018 13:30:50 +0000
Jan Petrous <jan.petrous@nxp.com> wrote:
> Hi,
>
> am I understand it right that I can not use NAPI-powered design in case
> when there is only one rx queue and one tx queue (only two
> dma channels) usable for data transfer with the ethernet controller for
> all interfaces (2 ports or more)?
>
> I could imagine there would be possibility to declare for example rx
> queue sharable between napi interfaces, but I was not able to find
> anything like that.
>
> I agree that it is a bit strange configuration but we have to support
> such corner case (when other dma channels are used by independent
> systems).
>
> I seems like I have to create two drivers - one with napi, when at
> least the same number of dma channels are free for use and second one
> without napi (because of not enough dma channels).
>
>
> Thanks.
> /Jan
It is possible. Sky2 for some hardware has a single NAPI (on port 0)
and if the card is dual port the napi of port 0 is used by port 1.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: napi driver for multiport device with the only one dma channel - is it possible?
2018-12-13 18:18 ` Stephen Hemminger
@ 2018-12-14 8:09 ` Jan Petrous
0 siblings, 0 replies; 3+ messages in thread
From: Jan Petrous @ 2018-12-14 8:09 UTC (permalink / raw)
To: stephen@networkplumber.org; +Cc: netdev@vger.kernel.org
Hi Steven.
On Thu, 2018-12-13 at 10:18 -0800, Stephen Hemminger wrote:
> On Thu, 13 Dec 2018 13:30:50 +0000
> Jan Petrous <jan.petrous@nxp.com> wrote:
>
> > Hi,
> >
> > am I understand it right that I can not use NAPI-powered design in
> > case
> > when there is only one rx queue and one tx queue (only two
> > dma channels) usable for data transfer with the ethernet controller
> > for
> > all interfaces (2 ports or more)?
> >
> > I could imagine there would be possibility to declare for example
> > rx
> > queue sharable between napi interfaces, but I was not able to find
> > anything like that.
> >
> > I agree that it is a bit strange configuration but we have to
> > support
> > such corner case (when other dma channels are used by independent
> > systems).
> >
> > I seems like I have to create two drivers - one with napi, when at
> > least the same number of dma channels are free for use and second
> > one
> > without napi (because of not enough dma channels).
> >
> >
> > Thanks.
> > /Jan
>
> It is possible. Sky2 for some hardware has a single NAPI (on port 0)
> and if the card is dual port the napi of port 0 is used by port 1.
Thanks for the hint. It is exactly what I was searching for.
/Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-14 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13 13:30 napi driver for multiport device with the only one dma channel - is it possible? Jan Petrous
2018-12-13 18:18 ` Stephen Hemminger
2018-12-14 8:09 ` Jan Petrous
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).