test/event: improve compatibility for timer adapter
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Sat, 16 Mar 2019 20:27:39 +0000 (20:27 +0000)
committerJerin Jacob <jerinj@marvell.com>
Tue, 2 Apr 2019 01:10:40 +0000 (03:10 +0200)
commit2385a7f5e654b4c1e89a0d966bccf8d386050512
tree34f61b34594700db9082102c2bd4b5c6c2bd7ddb
parentd69d085883140fce1e356ccb69adfae4f0ab6869
test/event: improve compatibility for timer adapter

Check if eventdev is open system eventdevs i.e. max_num_events = -1
before asserting.
Allow event timer adapter to adjust the resolution using
RTE_EVENT_TIMER_ADAPTER_F_ADJUST_RES and re-calculate timeout ticks
based on the adjusted resolution.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
app/test/test_event_timer_adapter.c