]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rhashtable-New-features-in-walk-and-bucket'
authorDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 14:58:39 +0000 (09:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 14:58:39 +0000 (09:58 -0500)
commit8c85af448cdbb19400ebdc01496168526a8992a6
tree98769c3324dd57bc2070c08852c9bf1f272ba2b8
parentd5a550dbd47cc762c1164de25c0804d0a7988d40
parent07842d4232685c40efb5f308e4a06d5bfbe77218
Merge branch 'rhashtable-New-features-in-walk-and-bucket'

Tom Herbert says:

====================
rhashtable: New features in walk and bucket

This patch contains some changes to related rhashtable:

- Above allow rhashtable_walk_start to return void
- Add a functon to peek at the next entry during a walk
- Abstract out function to compute a has for a table
- A library function to alloc a spinlocks bucket array
- Call the above function for rhashtable locks allocation

Tested: Exercised using various operations on an ILA xlat
table.

v2:
 - Apply feedback from Herbert. Don't change semantics of resize
   event reporting and -EAGAIN, just simplify API for callers that
   ignore those.
 - Add end_of_table in iter to reliably tell when the iterator has
   reached to the eno.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>