[spp] [PATCH 21/57] spp_vf: fix comparison operator in spp_vf.c
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Thu Dec 28 05:55:28 CET 2017
From: Hiroyuki Nakamura <nakamura.hioryuki at po.ntt-tx.co.jp>
Signed-off-by: Kentaro Watanabe <watanabe.kentaro.z01 at as.ntt-tx.co.jp>
Signed-off-by: Yasufum Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
src/vf/spp_vf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index 208dd30..7bb1ac0 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -1103,7 +1103,7 @@ spp_update_classifier_table(
return SPP_RET_NG;
}
- if (unlikely(patch_info->use_flg != 0)) {
+ if (unlikely(patch_info->use_flg == 0)) {
RTE_LOG(ERR, APP, "Port not added. ( port = %d:%d )\n", port->if_type, port->if_no);
return SPP_RET_NOT_ADD_PORT;
}
--
1.9.1
More information about the spp
mailing list