]> git.baikalelectronics.ru Git - kernel.git/commit
net: Only store high 16 bits of kernel generated filter priorities
authorRobert Love <robert.w.love@intel.com>
Sat, 2 May 2009 20:48:32 +0000 (13:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 May 2009 20:48:32 +0000 (13:48 -0700)
commit0a97977047867a7ddaf29a1495d994ee4b83919f
tree872f9521e3f51018be9afd9492e7509e42478621
parentd70e2bc84c3a16f8db0b43dd29700ed0510865c2
net: Only store high 16 bits of kernel generated filter priorities

The kernel should only be using the high 16 bits of a kernel
generated priority. Filter priorities in all other cases only
use the upper 16 bits of the u32 'prio' field of 'struct tcf_proto',
but when the kernel generates the priority of a filter is saves all
32 bits which can result in incorrect lookup failures when a filter
needs to be deleted or modified.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c