[NET]: Avoid unnecessary cloning for ingress filtering
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 14 Oct 2007 07:38:47 +0000 (00:38 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 15 Oct 2007 19:26:26 +0000 (12:26 -0700)
commitf697c3e8b35c18b2698d64137c0fa84b0cdb3d10
treea234201c36081f540179195dfabfce4b434aa0f2
parent776c729e8d91b2740583a2169678f2d3f383458b
[NET]: Avoid unnecessary cloning for ingress filtering

As it is we always invoke pt_prev before ing_filter, even if there are no
ingress filters attached.  This can cause unnecessary cloning in pt_prev.

This patch changes it so that we only invoke pt_prev if there are ingress
filters attached.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c