netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about an assignment in handle_ing()
@ 2010-05-24 11:22 Jiri Pirko
  2010-05-25  9:51 ` jamal
  0 siblings, 1 reply; 20+ messages in thread
From: Jiri Pirko @ 2010-05-24 11:22 UTC (permalink / raw)
  To: hadi; +Cc: netdev, davem, herbert, kaber

Hi Jamal.

I want to ask you about the following chunk of code of net/core/dev.c in function handle_ing():

2699        if (*pt_prev) {
2700                *ret = deliver_skb(skb, *pt_prev, orig_dev);
2701                *pt_prev = NULL;
2702        } else {
2703                /* Huh? Why does turning on AF_PACKET affect this? */
2704                skb->tc_verd = SET_TC_OK2MUNGE(skb->tc_verd);
2705        }

The assignment (in "else" statement) was added by you here:
http://linux.bkbits.net:8080/linux-2.6.12-stable/?PAGE=cset&REV=40cfc085xjyQLyB1UiTbgaRZSlCN9w

The comment was added after move of this code by Herbert:
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=f697c3e8b35c18b2698d64137c0fa84b0cdb3d10

Question is if this code is correct here. Maybe I'm missing something but
why is this dependent on a ptype was found previously?

Thanks,

	Jirka

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-06-03 13:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 11:22 Question about an assignment in handle_ing() Jiri Pirko
2010-05-25  9:51 ` jamal
2010-05-25 10:26   ` Herbert Xu
2010-05-25 12:03     ` jamal
2010-05-25 12:12       ` Herbert Xu
2010-05-25 12:20         ` jamal
2010-05-25 12:46           ` Herbert Xu
2010-05-25 13:13             ` jamal
2010-05-25 23:13               ` Herbert Xu
2010-05-26 11:38                 ` jamal
2010-05-30 13:29                   ` jamal
2010-06-03  8:01                     ` Herbert Xu
2010-06-03 12:43                       ` jamal
2010-06-03 12:47                         ` Herbert Xu
2010-06-03 12:53                           ` jamal
2010-06-03 12:56                             ` Herbert Xu
2010-06-03 12:58                             ` Herbert Xu
2010-06-03 12:58                             ` jamal
2010-06-03 13:00                               ` Herbert Xu
2010-06-03 13:01                                 ` jamal

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).