From: "Tomar, Nagendra" <nagendra_tomar@adaptec.com>
To: linux-net@vger.kernel.org
Subject: Avoiding re-ordering in netif_rx()
Date: Thu, 31 Jul 2003 10:11:56 +0530 [thread overview]
Message-ID: <Pine.LNX.4.44.0307311003080.16619-100000@localhost.localdomain> (raw)
I am modifying linux kernel 2.4.18 to add support for our TCP offload
card. The problem is:
The packets that I get from the card are fully TCP processed and
in-order.
Now I feed these packets to netif_rx(). marking a flag in the skbuff
which
says that the full TCP/IP processing is done on this packet and the
higher
layers can just bypass the packet protocol processing. On an SMP m/c
different consequtive in-order packets received from the card can be
queued to different per-cpu queues and it might so happen that the later
received packet is added to the socket receive queue first ( bcos the
softirq on the later CPU got a chance to execute first). This
maliciously
reorders the data.
My question is, what is an elegant way of avoiding this. I have a couple
of choices, but I want to know what people think. f.e one way is to
queue
these packets to a single queue and not a per-cpu queue. In this case
order will be honoured.
brilliant suggestions are very welcome !!
Thanx
tomar
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
reply other threads:[~2003-07-31 4:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.44.0307311003080.16619-100000@localhost.localdomain \
--to=nagendra_tomar@adaptec.com \
--cc=linux-net@vger.kernel.org \
/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).