]> git.proxmox.com Git - ovs.git/commit
dpif-netdev: Fix zero length keys insertion to EMC.
authorIlya Maximets <i.maximets@samsung.com>
Wed, 25 Jul 2018 16:09:31 +0000 (19:09 +0300)
committerIan Stokes <ian.stokes@intel.com>
Wed, 8 Aug 2018 21:06:21 +0000 (22:06 +0100)
commit18e08953cf3bdbc1f73a1b7349322259e6be2748
tree157d95244da747926cfc7496842d79894bc57e49
parentc3cc694b93dd523176d2131a4b1b3b3170644638
dpif-netdev: Fix zero length keys insertion to EMC.

'key.len' should be calculated before inserting to EMC, otherwise
resulting entry will match with any packet with the same hash.

CC: Yipeng Wang <yipeng1.wang@intel.com>
Fixes: 60d8ccae135f ("dpif-netdev: Add SMC cache after EMC cache")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/dpif-netdev.c