event/sw: fix hashing of flow on ordered ingress
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 10 Apr 2017 15:56:43 +0000 (16:56 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Apr 2017 22:24:50 +0000 (00:24 +0200)
commit7904c82a787cef322907850325b3b2c8b9dbe1c1
tree17e100c34780ca1a1b5393fa3698e1a8205cdbd3
parentda51d4d956516c4968261dbb4ce49c1434f18b71
event/sw: fix hashing of flow on ordered ingress

The flow id of packets was not being hashed on ingress
on an ordered queue. Fix by applying same hashing as is
applied in the atomic queue case. The hashing itself is
broken out into a macro to avoid duplication of code.

Fixes: 617995dfc5b2 ("event/sw: add scheduling logic")

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/event/sw/sw_evdev_scheduler.c