[spp] [PATCH 2/7] shared: fix wrong port_type in parsing dev name
Yasufumi Ogawa
yasufum.o at gmail.com
Thu Jan 16 13:02:30 CET 2020
Correct parse_dev_name() which returns port_type PCAP for eth_null
wrongly because of a typo. This patch is to fix to return NULLPMD
correctly.
Fixes: 146516c139c2 ("shared: add parsing ethdev name")
Signed-off-by: Yasufumi Ogawa <yasufum.o at gmail.com>
---
src/shared/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/common.c b/src/shared/common.c
index a098aed..85e2f06 100644
--- a/src/shared/common.c
+++ b/src/shared/common.c
@@ -126,7 +126,7 @@ int parse_dev_name(char *dev_name, int *port_type, int *port_id)
strncpy(pid_str, dev_name + strlen(VDEV_ETH_NULL),
pid_len);
*port_id = (int)strtol(pid_str, NULL, 10);
- *port_type = PCAP;
+ *port_type = NULLPMD;
/* TODO(yasufum) add checking invalid port type and return -1 */
} else {
--
2.17.1
More information about the spp
mailing list