event/dsw: sort events on dequeue
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Tue, 18 Sep 2018 12:45:12 +0000 (14:45 +0200)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:46:03 +0000 (16:46 +0200)
commit4ba0dcaa42a7df2b720e4e9dce2ff659239df1fe
tree461b29b948648a736c6d3ed5d80d1d150d3d1fcd
parentf6257b22e76768d1eaedfff0cf9802e310d5d4b5
event/dsw: sort events on dequeue

With this patch, the DSW event device will (optionally) sort the event
burst before giving it to the application. The sorting will primarily
be on queue id, and secondary on flow id.

The sorting is an attempt to optimize data and instruction cache usage
for the application, at the cost of additional event device overhead.

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
drivers/event/dsw/dsw_evdev.h
drivers/event/dsw/dsw_event.c
drivers/event/dsw/dsw_sort.h [new file with mode: 0644]