net/kni: check init result
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 21 Apr 2021 02:14:18 +0000 (10:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Apr 2021 10:17:39 +0000 (12:17 +0200)
commit7fa949fd1122b2e529c538489e2287736f1540e3
tree6181265fa7cbe3ec03355c844e5104d0f41bbb5d
parent8202309f9f76b46b1c2e219263a072fe73d21321
net/kni: check init result

This patch adds checking for rte_kni_init() result.

Fixes: 75e2bc54c018 ("net/kni: add KNI PMD")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/kni/rte_eth_kni.c