]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rhltable-dups'
authorDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 15:44:13 +0000 (10:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 15:44:13 +0000 (10:44 -0500)
commit6f45d4090f955d3fea1fdbdc51a6375f24ad48a6
treeb4ce7ff013f2a4870d8cbf5f4306c04825010db0
parent8cf01ed2cbde52b5da621f992e5367fcbcebe00f
parent7ce0d2bc7f89decd20729e2b5ec8a78233d1f713
Merge branch 'rhltable-dups'

Paul Blakey says:

====================
rhashtable: Fix rhltable duplicates insertion

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
====================

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