[dpdk-dev] [PATCH 07/11] kvargs: be strict when matching a key

2014-01-30 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 07/11] kvargs: be strict when matching a key > > When we match a key

[dpdk-dev] [PATCH 07/11] kvargs: be strict when matching a key

2014-01-28 Thread Olivier Matz
When we match a key in is_valid_key() and rte_kvargs_process(), do a strict comparison (strcmp()) instead of using strstr(s1, s2) which tries a find s1 in s2. This old behavior could lead to unexpected match, for instance "cola" match "chocolate". Surprisingly, no patch was needed on rte_kvargs_co