[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <97949e3e0704231419o21062b6cl5b8cf38e1b412b05@mail.gmail.com>
Date: Mon, 23 Apr 2007 14:19:41 -0700
From: "Laurent Chavey" <chavey@...gle.com>
To: netdev@...r.kernel.org
Subject: is CONFIG_NET_CLS_ACT always set ?
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;
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists