]> git.baikalelectronics.ru Git - kernel.git/commit
net: Remove unnecessary net action assertion
authorjamal <hadi@cyberus.ca>
Fri, 4 Jun 2010 02:06:22 +0000 (02:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2010 08:10:44 +0000 (01:10 -0700)
commit28f3d582ed82f29861695c6baa1384fab922e758
tree4c49a74ec730279a6aa0fe05eeedb1f652f73a03
parentfa9d632de15ee1985210bf2a6974b03d127d9e0a
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 <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c