netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] rhashtable: Fix rhltable duplicates insertion
@ 2018-03-04 15:29 Paul Blakey
  2018-03-04 15:29 ` [PATCH net v3 1/2] rhashtable: Fix rhlist " Paul Blakey
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Blakey @ 2018-03-04 15:29 UTC (permalink / raw)
  To: Thomas Graf, Herbert Xu, David Miller
  Cc: netdev, Yevgeny Kliteynik, Roi Dayan, Shahar Klein, Mark Bloch,
	Jiri Pirko, Or Gerlitz, Matan Barak, Paul Blakey

On our mlx5 driver fs_core.c, we use the rhltable interface to store
flow groups. We noticed that sometimes we get a warning that flow group isn't
found at removal. This rare case was caused when a specific scenario happened,
insertion of a flow group with a similar match criteria (a duplicate),
but only where the flow group rhash_head was second (or not first)
on the relevant rhashtable bucket list.

The first patch fixes it, and the second one adds a test that show
it is now working.

Paul.

v3 --> v2 changes:
    * added missing fix in rhashtable_lookup_one code path as well.

v1 --> v2 changes:
    * Changed commit messages to better reflect the change

Paul Blakey (2):
  rhashtable: Fix rhlist duplicates insertion
  test_rhashtable: add test case for rhltable with duplicate objects

 include/linux/rhashtable.h |   4 +-
 lib/rhashtable.c           |   4 +-
 lib/test_rhashtable.c      | 134 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 140 insertions(+), 2 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2018-03-07 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-04 15:29 [PATCH net v3 0/2] rhashtable: Fix rhltable duplicates insertion Paul Blakey
2018-03-04 15:29 ` [PATCH net v3 1/2] rhashtable: Fix rhlist " Paul Blakey
2018-03-05  9:48   ` Herbert Xu
2018-03-04 15:29 ` [PATCH net v3 2/2] test_rhashtable: add test case for rhltable with duplicate objects Paul Blakey
2018-03-05  9:48   ` Herbert Xu
2018-03-07 15:44 ` [PATCH net v3 0/2] rhashtable: Fix rhltable duplicates insertion David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).