Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] rhashtable: New features in walk and bucket locks
@ 2017-12-01  0:03 Tom Herbert
  2017-12-01  0:03 ` [PATCH net-next 1/5] rhashtable: Don't reset walker table in rhashtable_walk_start Tom Herbert
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Tom Herbert @ 2017-12-01  0:03 UTC (permalink / raw)
  To: davem; +Cc: netdev, rohit, herbert, Tom Herbert

This patch contains some changes to related rhashtable:

- Remove check of a NULL table in rhash_table_walk
- 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.

Tom Herbert (5):
  rhashtable: Don't reset walker table in rhashtable_walk_start
  rhashtable: Add rhastable_walk_peek
  rhashtable: abstract out function to get hash
  spinlock: Add library function to allocate spinlock buckets array
  rhashtable: Call library function alloc_bucket_locks

 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c       |   6 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c   |   7 +-
 fs/gfs2/glock.c                                    |   8 +-
 include/linux/rhashtable.h                         |  31 ++--
 include/linux/spinlock.h                           |   6 +
 include/net/sctp/sctp.h                            |   2 +-
 lib/Makefile                                       |   2 +-
 lib/bucket_locks.c                                 |  54 +++++++
 lib/rhashtable.c                                   | 168 ++++++++++++---------
 lib/test_rhashtable.c                              |   6 +-
 net/ipv6/ila/ila_xlat.c                            |   4 +-
 net/ipv6/seg6.c                                    |   4 +-
 net/mac80211/mesh_pathtbl.c                        |  34 ++---
 net/netfilter/nft_set_hash.c                       |  10 +-
 net/netlink/af_netlink.c                           |   5 +-
 net/netlink/diag.c                                 |   8 +-
 net/sctp/proc.c                                    |   6 +-
 net/sctp/socket.c                                  |  19 +--
 net/tipc/socket.c                                  |   6 +-
 19 files changed, 212 insertions(+), 174 deletions(-)
 create mode 100644 lib/bucket_locks.c

-- 
2.11.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-12-02  1:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-01  0:03 [PATCH net-next 0/5] rhashtable: New features in walk and bucket locks Tom Herbert
2017-12-01  0:03 ` [PATCH net-next 1/5] rhashtable: Don't reset walker table in rhashtable_walk_start Tom Herbert
2017-12-01 22:18   ` Herbert Xu
2017-12-01 23:29     ` Tom Herbert
2017-12-02  1:07       ` Tom Herbert
2017-12-01  0:03 ` [PATCH net-next 2/5] rhashtable: Add rhastable_walk_peek Tom Herbert
2017-12-01  0:38   ` Herbert Xu
2017-12-01  1:15     ` Tom Herbert
2017-12-01  1:21       ` Herbert Xu
2017-12-01  3:50         ` Tom Herbert
2017-12-01  0:03 ` [PATCH net-next 3/5] rhashtable: abstract out function to get hash Tom Herbert
2017-12-01  0:03 ` [PATCH net-next 4/5] spinlock: Add library function to allocate spinlock buckets array Tom Herbert
2017-12-01  0:03 ` [PATCH net-next 5/5] rhashtable: Call library function alloc_bucket_locks Tom Herbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox