Re: [dpdk-dev] [PATCH] ethdev: report error on name truncation

2019-01-07 Thread Andrew Rybchenko
On 1/7/19 6:53 PM, Stephen Hemminger wrote: On Mon, 7 Jan 2019 17:47:08 +0300 Andrew Rybchenko wrote: On 1/7/19 5:40 PM, Nithin Kumar Dabilpuram wrote: Signed-off-by: Nithin Dabilpuram --- lib/librte_ethdev/rte_ethdev.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-)

Re: [dpdk-dev] [PATCH] ethdev: report error on name truncation

2019-01-07 Thread Stephen Hemminger
On Mon, 7 Jan 2019 17:47:08 +0300 Andrew Rybchenko wrote: > On 1/7/19 5:40 PM, Nithin Kumar Dabilpuram wrote: > > Signed-off-by: Nithin Dabilpuram > > --- > > lib/librte_ethdev/rte_ethdev.c | 12 ++-- > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/lib/librte

Re: [dpdk-dev] [PATCH] ethdev: report error on name truncation

2019-01-07 Thread Thomas Monjalon
Hi, Please provide an explanation of the current behaviour. 07/01/2019 15:40, Nithin Kumar Dabilpuram: > - snprintf(z_name, sizeof(z_name), "eth_p%d_q%d_%s", > - dev->data->port_id, queue_id, ring_name); > + rc = snprintf(z_name, sizeof(z_name), "%s_%s_%d_%d", > +

Re: [dpdk-dev] [PATCH] ethdev: report error on name truncation

2019-01-07 Thread Andrew Rybchenko
On 1/7/19 5:40 PM, Nithin Kumar Dabilpuram wrote: Signed-off-by: Nithin Dabilpuram --- lib/librte_ethdev/rte_ethdev.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 9d5107d..bd45445 100644

[dpdk-dev] [PATCH] ethdev: report error on name truncation

2019-01-07 Thread Nithin Kumar Dabilpuram
Signed-off-by: Nithin Dabilpuram --- lib/librte_ethdev/rte_ethdev.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 9d5107d..bd45445 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte