From: jamal Date: Fri, 4 Jun 2010 02:06:22 +0000 (+0000) Subject: net: Remove unnecessary net action assertion X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=271c1dfa61bc90a57648ff96f3eb92d4b4d4f11e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git net: Remove unnecessary net action assertion The extra assertion to allow packet munging only when there are no other ptypes listening which may have worked around an old bug is unnecessary. It is sufficient to check if the skb is cloned before trampling on it. Thanks to Herbert Xu for being persistent and patient in getting this across. [Note that cloning checks and assertions are the general rule used by tc actions (documentation/networking/tc-actions-env-rules.txt)]. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index b65347c2cf2..c8d127718ff 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2663,9 +2663,6 @@ static inline struct sk_buff *handle_ing(struct sk_buff *skb, if (*pt_prev) { *ret = deliver_skb(skb, *pt_prev, orig_dev); *pt_prev = NULL; - } else { - /* Huh? Why does turning on AF_PACKET affect this? */ - skb->tc_verd = SET_TC_OK2MUNGE(skb->tc_verd); } switch (ing_filter(skb)) {