examples/rxtx_callbacks: fix HW timestamp config
authorHarman Kalra <hkalra@marvell.com>
Tue, 30 Jul 2019 07:46:45 +0000 (07:46 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 09:21:49 +0000 (11:21 +0200)
commit6f327ba1a38eac5a27e2d7279132e07b1ca83f1d
treeaddf5dc30c84b17fd1c54a6d423e1d17e4c439d2
parent7f394eebbba7e51aafeec5819e222c5d7eec68fc
examples/rxtx_callbacks: fix HW timestamp config

Since all PMDs doesn't implement per queue offload capabilities but
supports RX timestamping and also since rx_offload_capa includes all
rx_queue_offload_capa's. Hence moving the logic to enable HW timestamp
via DEV_RX_OFFLOAD_TIMESTAMP flag before device configuration so that
this application can work with all PMDs.

Fixes: cd1dadeb9b2a ("examples/rxtx_callbacks: support HW timestamp")

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
examples/rxtx_callbacks/main.c