summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorIvan Ilchenko <ivan.ilchenko@oktetlabs.ru>2019-09-14 12:37:31 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-07 15:00:54 +0200
commitb57e35d6e9eb6ed0a0b7b51b3641f7c6b887a66f (patch)
treeb894932407e664b8780fef349ff97052e1b439b3 /app
parent3c9b7f513143cdfc8c2127e447e6b7501f7cfe97 (diff)
downloaddpdk-b57e35d6e9eb6ed0a0b7b51b3641f7c6b887a66f.zip
dpdk-b57e35d6e9eb6ed0a0b7b51b3641f7c6b887a66f.tar.gz
dpdk-b57e35d6e9eb6ed0a0b7b51b3641f7c6b887a66f.tar.xz
kni: check code of promiscuous mode switch
rte_eth_promiscuous_enable()/rte_eth_promiscuous_disable() return value was changed from void to int, so modify usage of these functions across lib/librte_kni according to new return type. Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_kni.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/test/test_kni.c b/app/test/test_kni.c
index 2c33374..e47ab36 100644
--- a/app/test/test_kni.c
+++ b/app/test/test_kni.c
@@ -601,7 +601,12 @@ test_kni(void)
printf("fail to start port %d\n", port_id);
return -1;
}
- rte_eth_promiscuous_enable(port_id);
+ ret = rte_eth_promiscuous_enable(port_id);
+ if (ret != 0) {
+ printf("fail to enable promiscuous mode for port %d: %s\n",
+ port_id, rte_strerror(-ret));
+ return -1;
+ }
/* basic test of kni processing */
fd = fopen(KNI_MODULE_PARAM_LO, "r");