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)
commit4895c42f62f20d4eb7c4c8bd40a7b294506154ec
tree9c0cc5b0ed51d01cfce596bc55f2ddeb0b70ba4f
parent07743ca5c9695f0d5e8079f82d2f2f3b92cc138d
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