diff options
author | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2016-09-15 09:03:08 +0100 |
---|---|---|
committer | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2016-09-16 14:29:15 +0100 |
commit | c216b95d0278eff271f12766cc630baaa21d8af0 (patch) | |
tree | f703949f7c41f397e26cc762777bdec873219515 /examples/udpfwd/parse.h | |
parent | 258f299a2a152acab4ce497673eb293c5da15f73 (diff) |
allocated all port and all cpu momory together instead of realloc
Change-Id: I3240e6afefb5d784e08e3a5a1b70ada7d5b4b223
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'examples/udpfwd/parse.h')
-rw-r--r-- | examples/udpfwd/parse.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/udpfwd/parse.h b/examples/udpfwd/parse.h index e25e64e..7df7671 100644 --- a/examples/udpfwd/parse.h +++ b/examples/udpfwd/parse.h @@ -16,6 +16,8 @@ #ifndef __PARSE_H__ #define __PARSE_H__ +#include <sched.h> + #define PARSE_LIST_DELIM "-" union parse_val { @@ -68,7 +70,8 @@ format_addr(const struct sockaddr_storage *sp, char buf[], size_t len) return inet_ntop(sp->ss_family, addr, buf, len); } -int parse_netbe_arg(struct netbe_port *prt, const char *arg); +int parse_netbe_arg(struct netbe_port *prt, const char *arg, + rte_cpuset_t *cpuset); int netbe_parse_dest(const char *fname, struct netbe_dest_prm *prm); |