* [dpdk-dev] [PATCH 17.11] lib/librte_ether/rte_ethdev.c: Check device count
@ 2020-04-07 16:25 Talal Irfan
2020-04-10 10:37 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Talal Irfan @ 2020-04-07 16:25 UTC (permalink / raw)
To: adrien.mazarguil, thomas; +Cc: dev, Talal Irfan, stable
Bugzilla ID: 6
Cc: dev@dpdk.org
Cc: Thomas Monjalon <thomas@monjalon.net>
Cc: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Cc: stable@dpdk.org
Reported-by: Wang Zhike <wangzhike@jd.com>
Suggested-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Talal Irfan <talal.irfan@emumba.com>
---
lib/librte_ether/rte_ethdev.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 318af2869..ac19baf0c 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -376,6 +376,12 @@ rte_eth_dev_attach(const char *devargs, uint16_t *port_id)
goto err;
}
+ if (current <= 0) {
+ RTE_LOG(ERR, EAL, "No port found for device (%s)\n", name);
+ ret = -EINVAL;
+ goto err;
+ }
+
/* parse devargs, then retrieve device name and args */
if (rte_eal_parse_devargs_str(devargs, &name, &args))
goto err;
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH 17.11] lib/librte_ether/rte_ethdev.c: Check device count
2020-04-07 16:25 [dpdk-dev] [PATCH 17.11] lib/librte_ether/rte_ethdev.c: Check device count Talal Irfan
@ 2020-04-10 10:37 ` Ferruh Yigit
2020-04-10 10:56 ` [dpdk-dev] [dpdk-stable] " Kevin Traynor
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2020-04-10 10:37 UTC (permalink / raw)
To: Talal Irfan, adrien.mazarguil, thomas; +Cc: dev, stable
On 4/7/2020 5:25 PM, Talal Irfan wrote:
> Bugzilla ID: 6
> Cc: dev@dpdk.org
> Cc: Thomas Monjalon <thomas@monjalon.net>
> Cc: Adrien Mazarguil <adrien.mazarguil@6wind.com>
> Cc: stable@dpdk.org
> Reported-by: Wang Zhike <wangzhike@jd.com>
> Suggested-by: Vipin Varghese <vipin.varghese@intel.com>
> Signed-off-by: Talal Irfan <talal.irfan@emumba.com>
> ---
> lib/librte_ether/rte_ethdev.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
> index 318af2869..ac19baf0c 100644
> --- a/lib/librte_ether/rte_ethdev.c
> +++ b/lib/librte_ether/rte_ethdev.c
> @@ -376,6 +376,12 @@ rte_eth_dev_attach(const char *devargs, uint16_t *port_id)
> goto err;
> }
>
> + if (current <= 0) {
> + RTE_LOG(ERR, EAL, "No port found for device (%s)\n", name);
> + ret = -EINVAL;
> + goto err;
> + }
> +
> /* parse devargs, then retrieve device name and args */
> if (rte_eal_parse_devargs_str(devargs, &name, &args))
> goto err;
>
Hi Talal,
Thanks for the fix.
v17.11 support ended, and issue seems not valid for v18.11 and later [1], can
you please confirm this?
And if you confirm can you please close the mentioned defect?
Thanks,
ferruh
[1]
'rte_eth_dev_attach()' removed before v18.11 .
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [dpdk-stable] [PATCH 17.11] lib/librte_ether/rte_ethdev.c: Check device count
2020-04-10 10:37 ` Ferruh Yigit
@ 2020-04-10 10:56 ` Kevin Traynor
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Traynor @ 2020-04-10 10:56 UTC (permalink / raw)
To: Ferruh Yigit, Talal Irfan, adrien.mazarguil, thomas; +Cc: dev, stable
On 10/04/2020 11:37, Ferruh Yigit wrote:
> On 4/7/2020 5:25 PM, Talal Irfan wrote:
>> Bugzilla ID: 6
>> Cc: dev@dpdk.org
>> Cc: Thomas Monjalon <thomas@monjalon.net>
>> Cc: Adrien Mazarguil <adrien.mazarguil@6wind.com>
>> Cc: stable@dpdk.org
>> Reported-by: Wang Zhike <wangzhike@jd.com>
>> Suggested-by: Vipin Varghese <vipin.varghese@intel.com>
>> Signed-off-by: Talal Irfan <talal.irfan@emumba.com>
>> ---
>> lib/librte_ether/rte_ethdev.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
>> index 318af2869..ac19baf0c 100644
>> --- a/lib/librte_ether/rte_ethdev.c
>> +++ b/lib/librte_ether/rte_ethdev.c
>> @@ -376,6 +376,12 @@ rte_eth_dev_attach(const char *devargs, uint16_t *port_id)
>> goto err;
>> }
>>
>> + if (current <= 0) {
>> + RTE_LOG(ERR, EAL, "No port found for device (%s)\n", name);
>> + ret = -EINVAL;
>> + goto err;
>> + }
>> +
>> /* parse devargs, then retrieve device name and args */
>> if (rte_eal_parse_devargs_str(devargs, &name, &args))
>> goto err;
>>
>
> Hi Talal,
>
> Thanks for the fix.
>
> v17.11 support ended, and issue seems not valid for v18.11 and later [1], can
> you please confirm this?
Thanks Talal/Ferruh. Just to add that the roadmap of which stable
releases are maintained is available here:
https://core.dpdk.org/roadmap/#stable
> And if you confirm can you please close the mentioned defect?
>
> Thanks,
> ferruh
>
> [1]
> 'rte_eth_dev_attach()' removed before v18.11 .
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-10 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 16:25 [dpdk-dev] [PATCH 17.11] lib/librte_ether/rte_ethdev.c: Check device count Talal Irfan
2020-04-10 10:37 ` Ferruh Yigit
2020-04-10 10:56 ` [dpdk-dev] [dpdk-stable] " Kevin Traynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).