netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* is CONFIG_NET_CLS_ACT always set ?
@ 2007-04-23 21:19 Laurent Chavey
  2007-04-23 22:59 ` jamal
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Chavey @ 2007-04-23 21:19 UTC (permalink / raw)
  To: netdev

if CONFIG_NET_CLS_ACT is not defined, then is the
code below correct ?


netif_receive_skb()
---------------------------
	list_for_each_entry_rcu(ptype, &ptype_all, list) {
		if (!ptype->dev || ptype->dev == skb->dev) {
			if (pt_prev)
				ret = deliver_skb(skb, pt_prev);
			pt_prev = ptype;
		}
	}

#ifdef CONFIG_NET_CLS_ACT
	if (pt_prev) {
		ret = deliver_skb(skb, pt_prev);
		pt_prev = NULL; /* noone else should process this after*/
	} else {
		skb->tc_verd = SET_TC_OK2MUNGE(skb->tc_verd);
	}

	ret = ing_filter(skb);

	if (ret == TC_ACT_SHOT || (ret == TC_ACT_STOLEN)) {
		kfree_skb(skb);
		goto out;
	}

	skb->tc_verd = 0;
ncls:
#endif
handle_diverter(skb);

if (handle_bridge(&skb, &pt_prev, &ret))
	goto out;

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

end of thread, other threads:[~2007-04-24 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 21:19 is CONFIG_NET_CLS_ACT always set ? Laurent Chavey
2007-04-23 22:59 ` jamal
2007-04-23 23:08   ` Laurent Chavey
2007-04-24  0:02     ` jamal
2007-04-24 20:33       ` Laurent Chavey
2007-04-24 23:03         ` Laurent Chavey

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