From: David Miller <davem@davemloft.net>
To: vladz@broadcom.com
Cc: IMCEAMAILTO-davem+40davemloft+2Enet@broadcom.com,
eilong@broadcom.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] bnx2x: Do Tx handling in a separate tasklet.
Date: Wed, 28 Oct 2009 02:57:42 -0700 (PDT) [thread overview]
Message-ID: <20091028.025742.32857568.davem@davemloft.net> (raw)
In-Reply-To: <8628FE4E7912BF47A96AE7DD7BAC0AADCB2CFF2028@SJEXCHCCR02.corp.ad.broadcom.com>
From: "Vladislav Zolotarov" <vladz@broadcom.com>
Date: Wed, 28 Oct 2009 02:54:37 -0700
> I'd like to start from your last remark: you r absolutely right, and this is the problem we have in the current net-next driver. More than that, this patch is fixing this problem: it moved liberation of Tx SKBs from hardIRQ context (ISR) to the softIRQ context (tasklet) thereby resolving the problem u've mentioned. So, total agreement with u on this one. I must have named the patch differently to emphasize it.
>
> I'd like to summarize the patch I've sent:
> - Take Tx SKB liberation out of hardIRQ.
> - Instead schedule a DPC that handles Tx work.
> - Optimize the access to status block indices: read only the index we are about to use in the current context.
>
> So, could u, pls., apply the patch in order to fix the problem we currently have in bnx2x?
There is no reason not to use NAPI to achieve this objective and that's
the main objection I have to your patch.
Using NAPI will not only allow you to move the SKB freeing to softirq
context but it will also provide fairness between multiple NAPI
contexts active at the same time on the same cpu.
Furthermore, if you combine RX and TX NAPI work for a specific queue
into the same NAPI context, TX liberation can run first and provide
fresh CPU local SKBs for RX packet input processing created replies
to allocate.
You haven't addressed any of that, and I am not going to apply your
patch becuase I don't want your driver to set a precedence here.
next prev parent reply other threads:[~2009-10-28 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 9:54 [PATCH net-next] bnx2x: Do Tx handling in a separate tasklet Vladislav Zolotarov
2009-10-28 9:57 ` David Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-25 12:19 Vladislav Zolotarov
2009-10-25 21:20 ` David Miller
2009-10-26 14:42 ` Vladislav Zolotarov
2009-10-26 22:28 ` David Miller
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=20091028.025742.32857568.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=IMCEAMAILTO-davem+40davemloft+2Enet@broadcom.com \
--cc=eilong@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=vladz@broadcom.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