]> git.baikalelectronics.ru Git - kernel.git/commit
[LRO] Fix lro_mgr->features checks
authorBrice Goglin <Brice.Goglin@inria.fr>
Tue, 8 Jan 2008 06:09:08 +0000 (22:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:30:18 +0000 (23:30 -0800)
commitd037e8d844886b80c2f8b537355c9293c9f989a2
tree9faedc7c3735ec04b0434b769e50fecc01dc5e6c
parente7f328ce11278c2fa2fa4e0c4aafd1deaf79b0a1
[LRO] Fix lro_mgr->features checks

lro_mgr->features contains a bitmask of LRO_F_* values which are
defined as power of two, not as bit indexes.
They must be checked with x&LRO_F_FOO, not with test_bit(LRO_F_FOO,&x).

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Acked-by: Andrew Gallatin <gallatin@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_lro.c