[dpdk-dev] [PATCH 2/2] devargs: remove limit on parameters length

2015-01-07 Thread Stephen Hemminger
On Wed, 7 Jan 2015 14:03:29 +0100 David Marchand wrote: > + buf = strdup(devargs_str); > + if (buf == NULL) { > + RTE_LOG(ERR, EAL, "cannot allocate temp memory for devargs\n"); > + goto fail; > + } > + If string is only used in same function you might

[dpdk-dev] [PATCH 2/2] devargs: remove limit on parameters length

2015-01-07 Thread David Marchand
As far as I know, there is no reason why we should have a limit on the length of parameters that can be given for a device. Remove this limit by using dynamic allocations. Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_devargs.c | 26 +-