Re: [PATCH net 08/13] net: sched: cls_u32: clean tc_u_common hashtable

2018-09-09 Thread Jamal Hadi Salim
On 2018-09-08 9:31 p.m., Al Viro wrote: From: Al Viro * 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 Acked-by: Jamal Hadi Salim cheers, jamal

[PATCH net 08/13] net: sched: cls_u32: clean tc_u_common hashtable

2018-09-08 Thread Al Viro
From: Al Viro * 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 --- net/sched/cls_u32.c | 24 +--- 1 file changed, 9 insertions(+), 15