]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_u32: clean tc_u_common hashtable
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Oct 2018 10:22:39 +0000 (06:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:33:35 +0000 (10:33 -0700)
commit37b81f1d731e6bdaab407196352c3dd84aa96c04
tree9c0cc5b0ed51d01cfce596bc55f2ddeb0b70ba4f
parent9baf73413afba7c03b8865a77a4674eeedff7f65
net: sched: cls_u32: clean tc_u_common hashtable

* calculate key *once*, not for each hash chain element
* let tc_u_hash() return the pointer to chain head rather than index -
callers are cleaner that way.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c