examples/ntb: add return code checks
authorXiaoyun Li <xiaoyun.li@intel.com>
Fri, 25 Oct 2019 07:01:01 +0000 (15:01 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 27 Oct 2019 12:46:03 +0000 (13:46 +0100)
commitec4a1d40a5bde90135d7fdac88e3dc76e8d998f5
treed9e194047828653b07e0742c0643e3777f164c3f
parenta5d4ea594307c77af393386212a434c63e9dd96b
examples/ntb: add return code checks

This patch adds return value checking and error handling for
rte_rawdev_en/dequeue_buffers() and rte_eth_link_get().

Coverity issue: 350247, 350250, 350251, 350252, 350253, 350254
Fixes: 5194299d6ef5 ("examples/ntb: support more functions")

Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
examples/ntb/ntb_fwd.c