Skip to contentSkip to conversation

librte_cfgfile (rte_cfgfile.h): modify the macros values

PATCH Superseded Jasvinder Singh 2 participants 3 messages Sep 2, 2015 – Sep 3, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 librte_cfgfile (rte_cfgfile.h): modify the macros values

This patch refers to the ABI change proposed for librte_cfgfile (rte_cfgfile.h).
In order to allow for longer names and values, the new values of macros CFG_NAME_LEN and CFG_NAME_VAL are set.

---
 lib/librte_cfgfile/rte_cfgfile.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
lib/librte_cfgfile/rte_cfgfile.h +7 -2
index 7c9fc91..d443782 100644
@@ -47,8 +47,13 @@ extern "C" {
 *
 ***/
 
-#define CFG_NAME_LEN 32
-#define CFG_VALUE_LEN 64
+#ifndef CFG_NAME_LEN
+#define CFG_NAME_LEN 64
+#endif
+
+#ifndef CFG_VALUE_LEN
+#define CFG_VALUE_LEN 256
+#endif
 
 /** Configuration file */
 struct rte_cfgfile;
Signature · 1 line
2.1.0
#1 lore raw

2015-09-02 16:53, Jasvinder Singh:

Quoted 7 lines

This patch refers to the ABI change proposed for librte_cfgfile (rte_cfgfile.h).
In order to allow for longer names and values, the new values of macros CFG_NAME_LEN and CFG_NAME_VAL are set.

---
 lib/librte_cfgfile/rte_cfgfile.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

If the ABI is changed, the LIBABIVER number must be bumped. The release notes must also be updated and the deprecation announce must be removed.
Thanks

#2 lore raw
Quoted 20 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Wednesday, September 2, 2015 9:48 PM
To: Singh, Jasvinder
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] librte_cfgfile (rte_cfgfile.h): modify the macros values

2015-09-02 16:53, Jasvinder Singh:

Quoted 1 line

This patch refers to the ABI change proposed for librte_cfgfile

(rte_cfgfile.h).

Quoted 1 line

In order to allow for longer names and values, the new values of macros

CFG_NAME_LEN and CFG_NAME_VAL are set.

Quoted 5 lines
---
 lib/librte_cfgfile/rte_cfgfile.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 4 lines

If the ABI is changed, the LIBABIVER number must be bumped. The release notes must also be updated and the deprecation announce must be removed.
Thanks

Thanks, Thomas. I will submit v2 patch.