Fix toeplitz initialization key and rss key len for mlx4
[samplevnf.git] / VNFs / DPPD-PROX / cfgfile.c
index dc22507..2bc9e5f 100644 (file)
@@ -274,6 +274,11 @@ int cfg_parse(struct cfg_file *pcfg, struct cfg_section *psec)
                        do {
 
                                ret = fgets(buffer, sizeof(buffer), pcfg->pfile);
+                               /* remove comments */
+                               if (*ret == ';') {
+                                       *ret = '\0';
+                               }
+
                                if (ret && *ret != '[') {
                                        size_t l = strlen(buffer);
                                        prox_strncpy(lines, buffer, max_len);