examples/ntb: fix build
authorDavid Marchand <david.marchand@redhat.com>
Mon, 21 Oct 2019 15:44:54 +0000 (17:44 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 21 Oct 2019 15:46:02 +0000 (17:46 +0200)
commitfe56fe635b1d0933344d60e95d9359034dc52f75
treee45c59adfb4c9f7bb15e46d29c212dd8e9ff0570
parent2c7845a70e708039c3f129de86ffcf1fccfa76d9
examples/ntb: fix build

lcore indexes can't be represented with uint8_t.
Seen on armv8 target:

examples/ntb/ntb_fwd.c: In function ‘cmd_quit_parsed’:
arm64-armv8a-linux-gcc/include/rte_lcore.h:296:8:
error: comparison is always true due to limited range of data type
[-Werror=type-limits]
       i<RTE_MAX_LCORE;      \
        ^
examples/ntb/ntb_fwd.c:164:2: note: in expansion of
macro ‘RTE_LCORE_FOREACH_SLAVE’
  RTE_LCORE_FOREACH_SLAVE(lcore_id) {
  ^~~~~~~~~~~~~~~~~~~~~~~

Fixes: 5194299d6ef5 ("examples/ntb: support more functions")

Signed-off-by: David Marchand <david.marchand@redhat.com>
examples/ntb/ntb_fwd.c