From: Wolfgang Wegner <ww@kt.e-technik.uni-dortmund.de>
To: Wolfgang Wegner <ww@kt.e-technik.uni-dortmund.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sk_buff modification problem -> (almost) solved
Date: Sun, 26 May 2002 19:35:29 +0200 [thread overview]
Message-ID: <20020526193529.A11200@bigmac.e-technik.uni-dortmund.de> (raw)
In-Reply-To: <20020524100434.B1778@bigmac.e-technik.uni-dortmund.de> <20020526010025.A18021@bigmac.e-technik.uni-dortmund.de>
Hi,
I finally found the source of the problem, and was such able to solve
it for me. Unfortunately, I do not really understand, why all this
behaves that way.
In short:
I inserted a new member into struct sk_buff, which was filled in in the
driver (orinoco.c) and should be evaluated "upstairs". However, the contents
of this field was already lost in netif_rx...
(Like this:
[orinoco.c, orinoco_ev_rx]
skb->rcvtime.is_valid=1;
printk("orinoco.c: skb=%p, is_valid=%d\n",skb,skb->rcvtime.is_valid);
netif_rx(skb);
[linux/net/core/dev.c]
int netif_rx(struct sk_buff *skb)
{
int this_cpu = smp_processor_id();
struct softnet_data *queue;
unsigned long flags;
if (skb->stamp.tv_sec == 0)
do_gettimeofday(&skb->stamp);
printk("netif_rx: skb=%p, is_valid=%d\n",skb,skb->rcvtime.is_valid);
dmesg:
May 26 14:41:05 licht kernel: orinoco.c: skb=c3d40d80, is_valid=1
May 26 14:41:05 licht kernel: netif_rx: skb=c3d40d80, is_valid=0
May 26 14:41:05 licht kernel: orinoco.c: skb=c3d400c0, is_valid=1
May 26 14:41:05 licht kernel: netif_rx: skb=c3d400c0, is_valid=0
...and so on)
It turned out to be a problem with the pcmcia-cs-3.1.33 package i was using,
now i modified the in-kernel orinoco driver to generate the timestamps i want,
and everything works as expected.
What i do not understand is how such a behaviour can evolve, without any
compiler warning?
Just post it again because i really would be interested which trap i ran
into here... ;-)
Wolfgang
next prev parent reply other threads:[~2002-05-26 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-24 8:04 sk_buff misunderstanding? Wolfgang Wegner
2002-05-24 7:52 ` David S. Miller
2002-05-24 8:11 ` Wolfgang Wegner
2002-05-25 23:00 ` sk_buff modification problem Wolfgang Wegner
2002-05-26 17:35 ` Wolfgang Wegner [this message]
2002-05-26 19:52 ` sk_buff modification problem -> (almost) solved kuznet
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=20020526193529.A11200@bigmac.e-technik.uni-dortmund.de \
--to=ww@kt.e-technik.uni-dortmund.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®