DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: add missing return value check
@ 2019-03-21  9:07 Ali Alnubani
  2019-03-21  9:07 ` Ali Alnubani
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Ali Alnubani @ 2019-03-21  9:07 UTC (permalink / raw)
  To: dev; +Cc: Shahaf Shuler, Dekel Peled

Fixes: d86406b965df ("net/mlx5: support new representor naming format")
Cc: dekelp@mellanox.com

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 84d761c8e..1fd988998 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info)
 	bool port_name_set = false;
 	bool port_switch_id_set = false;
 	char c;
+	int ret;
 
 	if (!if_indextoname(ifindex, ifname)) {
 		rte_errno = errno;
@@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info)
 
 	file = fopen(phys_port_name, "rb");
 	if (file != NULL) {
-		fscanf(file, "%s", port_name);
+		ret = fscanf(file, "%s", port_name);
 		fclose(file);
-		port_name_set = mlx5_translate_port_name(port_name, &data);
+		if (ret == 1)
+			port_name_set = mlx5_translate_port_name(port_name, &data);
 	}
 	file = fopen(phys_switch_id, "rb");
 	if (file == NULL) {
-- 
2.19.2

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:07 [dpdk-dev] [PATCH] net/mlx5: add missing return value check Ali Alnubani
@ 2019-03-21  9:07 ` Ali Alnubani
  2019-03-21  9:26 ` Slava Ovsiienko
  2019-03-21  9:34 ` Dekel Peled
  2 siblings, 0 replies; 16+ messages in thread
From: Ali Alnubani @ 2019-03-21  9:07 UTC (permalink / raw)
  To: dev; +Cc: Shahaf Shuler, Dekel Peled

Fixes: d86406b965df ("net/mlx5: support new representor naming format")
Cc: dekelp@mellanox.com

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 84d761c8e..1fd988998 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info)
 	bool port_name_set = false;
 	bool port_switch_id_set = false;
 	char c;
+	int ret;
 
 	if (!if_indextoname(ifindex, ifname)) {
 		rte_errno = errno;
@@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info)
 
 	file = fopen(phys_port_name, "rb");
 	if (file != NULL) {
-		fscanf(file, "%s", port_name);
+		ret = fscanf(file, "%s", port_name);
 		fclose(file);
-		port_name_set = mlx5_translate_port_name(port_name, &data);
+		if (ret == 1)
+			port_name_set = mlx5_translate_port_name(port_name, &data);
 	}
 	file = fopen(phys_switch_id, "rb");
 	if (file == NULL) {
-- 
2.19.2


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:07 [dpdk-dev] [PATCH] net/mlx5: add missing return value check Ali Alnubani
  2019-03-21  9:07 ` Ali Alnubani
@ 2019-03-21  9:26 ` Slava Ovsiienko
  2019-03-21  9:26   ` Slava Ovsiienko
  2019-03-21  9:34 ` Dekel Peled
  2 siblings, 1 reply; 16+ messages in thread
From: Slava Ovsiienko @ 2019-03-21  9:26 UTC (permalink / raw)
  To: Ali Alnubani, dev; +Cc: Shahaf Shuler, Dekel Peled

Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Ali Alnubani
> Sent: Thursday, March 21, 2019 11:07
> To: dev@dpdk.org
> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>
> Subject: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
> 
> Fixes: d86406b965df ("net/mlx5: support new representor naming format")
> Cc: dekelp@mellanox.com
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_ethdev.c
> b/drivers/net/mlx5/mlx5_ethdev.c index 84d761c8e..1fd988998 100644
> --- a/drivers/net/mlx5/mlx5_ethdev.c
> +++ b/drivers/net/mlx5/mlx5_ethdev.c
> @@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct
> mlx5_switch_info *info)
>  	bool port_name_set = false;
>  	bool port_switch_id_set = false;
>  	char c;
> +	int ret;
> 
>  	if (!if_indextoname(ifindex, ifname)) {
>  		rte_errno = errno;
> @@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex,
> struct mlx5_switch_info *info)
> 
>  	file = fopen(phys_port_name, "rb");
>  	if (file != NULL) {
> -		fscanf(file, "%s", port_name);
> +		ret = fscanf(file, "%s", port_name);
>  		fclose(file);
> -		port_name_set = mlx5_translate_port_name(port_name,
> &data);
> +		if (ret == 1)
> +			port_name_set =
> mlx5_translate_port_name(port_name, &data);
>  	}
>  	file = fopen(phys_switch_id, "rb");
>  	if (file == NULL) {
> --
> 2.19.2

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:26 ` Slava Ovsiienko
@ 2019-03-21  9:26   ` Slava Ovsiienko
  0 siblings, 0 replies; 16+ messages in thread
From: Slava Ovsiienko @ 2019-03-21  9:26 UTC (permalink / raw)
  To: Ali Alnubani, dev; +Cc: Shahaf Shuler, Dekel Peled

Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Ali Alnubani
> Sent: Thursday, March 21, 2019 11:07
> To: dev@dpdk.org
> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>
> Subject: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
> 
> Fixes: d86406b965df ("net/mlx5: support new representor naming format")
> Cc: dekelp@mellanox.com
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_ethdev.c
> b/drivers/net/mlx5/mlx5_ethdev.c index 84d761c8e..1fd988998 100644
> --- a/drivers/net/mlx5/mlx5_ethdev.c
> +++ b/drivers/net/mlx5/mlx5_ethdev.c
> @@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct
> mlx5_switch_info *info)
>  	bool port_name_set = false;
>  	bool port_switch_id_set = false;
>  	char c;
> +	int ret;
> 
>  	if (!if_indextoname(ifindex, ifname)) {
>  		rte_errno = errno;
> @@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex,
> struct mlx5_switch_info *info)
> 
>  	file = fopen(phys_port_name, "rb");
>  	if (file != NULL) {
> -		fscanf(file, "%s", port_name);
> +		ret = fscanf(file, "%s", port_name);
>  		fclose(file);
> -		port_name_set = mlx5_translate_port_name(port_name,
> &data);
> +		if (ret == 1)
> +			port_name_set =
> mlx5_translate_port_name(port_name, &data);
>  	}
>  	file = fopen(phys_switch_id, "rb");
>  	if (file == NULL) {
> --
> 2.19.2


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:07 [dpdk-dev] [PATCH] net/mlx5: add missing return value check Ali Alnubani
  2019-03-21  9:07 ` Ali Alnubani
  2019-03-21  9:26 ` Slava Ovsiienko
@ 2019-03-21  9:34 ` Dekel Peled
  2019-03-21  9:34   ` Dekel Peled
  2019-03-24  9:26   ` Shahaf Shuler
  2 siblings, 2 replies; 16+ messages in thread
From: Dekel Peled @ 2019-03-21  9:34 UTC (permalink / raw)
  To: Ali Alnubani, dev; +Cc: Shahaf Shuler

> -----Original Message-----
> From: Ali Alnubani
> Sent: Thursday, March 21, 2019 11:07 AM
> To: dev@dpdk.org
> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>
> Subject: [PATCH] net/mlx5: add missing return value check
> 
> Fixes: d86406b965df ("net/mlx5: support new representor naming format")
> Cc: dekelp@mellanox.com
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_ethdev.c
> b/drivers/net/mlx5/mlx5_ethdev.c index 84d761c8e..1fd988998 100644
> --- a/drivers/net/mlx5/mlx5_ethdev.c
> +++ b/drivers/net/mlx5/mlx5_ethdev.c
> @@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct
> mlx5_switch_info *info)
>  	bool port_name_set = false;
>  	bool port_switch_id_set = false;
>  	char c;
> +	int ret;
> 
>  	if (!if_indextoname(ifindex, ifname)) {
>  		rte_errno = errno;
> @@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex,
> struct mlx5_switch_info *info)
> 
>  	file = fopen(phys_port_name, "rb");
>  	if (file != NULL) {
> -		fscanf(file, "%s", port_name);
> +		ret = fscanf(file, "%s", port_name);
>  		fclose(file);
> -		port_name_set = mlx5_translate_port_name(port_name,
> &data);
> +		if (ret == 1)
> +			port_name_set =
> mlx5_translate_port_name(port_name, &data);
>  	}
>  	file = fopen(phys_switch_id, "rb");
>  	if (file == NULL) {
> --
> 2.19.2

Acked by: Dekel Peled <dekelp@mellanox.com>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:34 ` Dekel Peled
@ 2019-03-21  9:34   ` Dekel Peled
  2019-03-24  9:26   ` Shahaf Shuler
  1 sibling, 0 replies; 16+ messages in thread
From: Dekel Peled @ 2019-03-21  9:34 UTC (permalink / raw)
  To: Ali Alnubani, dev; +Cc: Shahaf Shuler

> -----Original Message-----
> From: Ali Alnubani
> Sent: Thursday, March 21, 2019 11:07 AM
> To: dev@dpdk.org
> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>
> Subject: [PATCH] net/mlx5: add missing return value check
> 
> Fixes: d86406b965df ("net/mlx5: support new representor naming format")
> Cc: dekelp@mellanox.com
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> ---
>  drivers/net/mlx5/mlx5_ethdev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_ethdev.c
> b/drivers/net/mlx5/mlx5_ethdev.c index 84d761c8e..1fd988998 100644
> --- a/drivers/net/mlx5/mlx5_ethdev.c
> +++ b/drivers/net/mlx5/mlx5_ethdev.c
> @@ -1365,6 +1365,7 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct
> mlx5_switch_info *info)
>  	bool port_name_set = false;
>  	bool port_switch_id_set = false;
>  	char c;
> +	int ret;
> 
>  	if (!if_indextoname(ifindex, ifname)) {
>  		rte_errno = errno;
> @@ -1378,9 +1379,10 @@ mlx5_sysfs_switch_info(unsigned int ifindex,
> struct mlx5_switch_info *info)
> 
>  	file = fopen(phys_port_name, "rb");
>  	if (file != NULL) {
> -		fscanf(file, "%s", port_name);
> +		ret = fscanf(file, "%s", port_name);
>  		fclose(file);
> -		port_name_set = mlx5_translate_port_name(port_name,
> &data);
> +		if (ret == 1)
> +			port_name_set =
> mlx5_translate_port_name(port_name, &data);
>  	}
>  	file = fopen(phys_switch_id, "rb");
>  	if (file == NULL) {
> --
> 2.19.2

Acked by: Dekel Peled <dekelp@mellanox.com>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-21  9:34 ` Dekel Peled
  2019-03-21  9:34   ` Dekel Peled
@ 2019-03-24  9:26   ` Shahaf Shuler
  2019-03-24  9:26     ` Shahaf Shuler
  2019-03-25 12:02     ` Ferruh Yigit
  1 sibling, 2 replies; 16+ messages in thread
From: Shahaf Shuler @ 2019-03-24  9:26 UTC (permalink / raw)
  To: Dekel Peled, Ali Alnubani, dev

Thursday, March 21, 2019 11:34 AM, Dekel Peled:
> Subject: RE: [PATCH] net/mlx5: add missing return value check
> 
> > -----Original Message-----
> > From: Ali Alnubani
> > Sent: Thursday, March 21, 2019 11:07 AM
> > To: dev@dpdk.org
> > Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> > <dekelp@mellanox.com>
> > Subject: [PATCH] net/mlx5: add missing return value check
> >
> > Fixes: d86406b965df ("net/mlx5: support new representor naming
> > format")
> > Cc: dekelp@mellanox.com
> >
> > Signed-off-by: Ali Alnubani <alialnu@mellanox.com>

Applied to next-net-mlx, thanks. 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-24  9:26   ` Shahaf Shuler
@ 2019-03-24  9:26     ` Shahaf Shuler
  2019-03-25 12:02     ` Ferruh Yigit
  1 sibling, 0 replies; 16+ messages in thread
From: Shahaf Shuler @ 2019-03-24  9:26 UTC (permalink / raw)
  To: Dekel Peled, Ali Alnubani, dev

Thursday, March 21, 2019 11:34 AM, Dekel Peled:
> Subject: RE: [PATCH] net/mlx5: add missing return value check
> 
> > -----Original Message-----
> > From: Ali Alnubani
> > Sent: Thursday, March 21, 2019 11:07 AM
> > To: dev@dpdk.org
> > Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> > <dekelp@mellanox.com>
> > Subject: [PATCH] net/mlx5: add missing return value check
> >
> > Fixes: d86406b965df ("net/mlx5: support new representor naming
> > format")
> > Cc: dekelp@mellanox.com
> >
> > Signed-off-by: Ali Alnubani <alialnu@mellanox.com>

Applied to next-net-mlx, thanks. 


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-24  9:26   ` Shahaf Shuler
  2019-03-24  9:26     ` Shahaf Shuler
@ 2019-03-25 12:02     ` Ferruh Yigit
  2019-03-25 12:02       ` Ferruh Yigit
  2019-03-27  9:31       ` Ferruh Yigit
  1 sibling, 2 replies; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-25 12:02 UTC (permalink / raw)
  To: Shahaf Shuler, Dekel Peled, Ali Alnubani, dev

On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>
>>> -----Original Message-----
>>> From: Ali Alnubani
>>> Sent: Thursday, March 21, 2019 11:07 AM
>>> To: dev@dpdk.org
>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>> <dekelp@mellanox.com>
>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>
>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>> format")
>>> Cc: dekelp@mellanox.com
>>>
>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> 
> Applied to next-net-mlx, thanks. 
> 

Squashed into relevant commit [1] in next-net, thanks.

[1]
net/mlx5: support new representor naming format

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-25 12:02     ` Ferruh Yigit
@ 2019-03-25 12:02       ` Ferruh Yigit
  2019-03-27  9:31       ` Ferruh Yigit
  1 sibling, 0 replies; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-25 12:02 UTC (permalink / raw)
  To: Shahaf Shuler, Dekel Peled, Ali Alnubani, dev

On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>
>>> -----Original Message-----
>>> From: Ali Alnubani
>>> Sent: Thursday, March 21, 2019 11:07 AM
>>> To: dev@dpdk.org
>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>> <dekelp@mellanox.com>
>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>
>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>> format")
>>> Cc: dekelp@mellanox.com
>>>
>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> 
> Applied to next-net-mlx, thanks. 
> 

Squashed into relevant commit [1] in next-net, thanks.

[1]
net/mlx5: support new representor naming format

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-25 12:02     ` Ferruh Yigit
  2019-03-25 12:02       ` Ferruh Yigit
@ 2019-03-27  9:31       ` Ferruh Yigit
  2019-03-27  9:31         ` Ferruh Yigit
  2019-03-28 10:29         ` Ali Alnubani
  1 sibling, 2 replies; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-27  9:31 UTC (permalink / raw)
  To: Shahaf Shuler, Dekel Peled, Ali Alnubani, dev

On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
> On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
>> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>>
>>>> -----Original Message-----
>>>> From: Ali Alnubani
>>>> Sent: Thursday, March 21, 2019 11:07 AM
>>>> To: dev@dpdk.org
>>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>>> <dekelp@mellanox.com>
>>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>>
>>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>>> format")
>>>> Cc: dekelp@mellanox.com
>>>>
>>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
>>
>> Applied to next-net-mlx, thanks. 
>>
> 
> Squashed into relevant commit [1] in next-net, thanks.
> 
> [1]
> net/mlx5: support new representor naming format
> 

'main' repo get the original patch without squash, so can't squash now,
merged as a incremental patch ...

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-27  9:31       ` Ferruh Yigit
@ 2019-03-27  9:31         ` Ferruh Yigit
  2019-03-28 10:29         ` Ali Alnubani
  1 sibling, 0 replies; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-27  9:31 UTC (permalink / raw)
  To: Shahaf Shuler, Dekel Peled, Ali Alnubani, dev

On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
> On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
>> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>>
>>>> -----Original Message-----
>>>> From: Ali Alnubani
>>>> Sent: Thursday, March 21, 2019 11:07 AM
>>>> To: dev@dpdk.org
>>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>>> <dekelp@mellanox.com>
>>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>>
>>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>>> format")
>>>> Cc: dekelp@mellanox.com
>>>>
>>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
>>
>> Applied to next-net-mlx, thanks. 
>>
> 
> Squashed into relevant commit [1] in next-net, thanks.
> 
> [1]
> net/mlx5: support new representor naming format
> 

'main' repo get the original patch without squash, so can't squash now,
merged as a incremental patch ...

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-27  9:31       ` Ferruh Yigit
  2019-03-27  9:31         ` Ferruh Yigit
@ 2019-03-28 10:29         ` Ali Alnubani
  2019-03-28 10:29           ` Ali Alnubani
  2019-03-28 18:28           ` Ferruh Yigit
  1 sibling, 2 replies; 16+ messages in thread
From: Ali Alnubani @ 2019-03-28 10:29 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Shahaf Shuler, Dekel Peled, dev

Hi Ferruh,

> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Sent: Wednesday, March 27, 2019 11:31 AM
> To: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>; Ali Alnubani <alialnu@mellanox.com>;
> dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
> 
> On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
> > On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
> >> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
> >>> Subject: RE: [PATCH] net/mlx5: add missing return value check
> >>>
> >>>> -----Original Message-----
> >>>> From: Ali Alnubani
> >>>> Sent: Thursday, March 21, 2019 11:07 AM
> >>>> To: dev@dpdk.org
> >>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> >>>> <dekelp@mellanox.com>
> >>>> Subject: [PATCH] net/mlx5: add missing return value check
> >>>>
> >>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
> >>>> format")
> >>>> Cc: dekelp@mellanox.com
> >>>>
> >>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> >>
> >> Applied to next-net-mlx, thanks.
> >>
> >
> > Squashed into relevant commit [1] in next-net, thanks.
> >
> > [1]
> > net/mlx5: support new representor naming format
> >
> 
> 'main' repo get the original patch without squash, so can't squash now,
> merged as a incremental patch ...
> 
> Applied to dpdk-next-net/master, thanks.

A more detailed commit body:

This patch fixes the build failure with message:
    drivers/net/mlx5/mlx5_ethdev.c: In function ‘mlx5_sysfs_switch_info’:
    drivers/net/mlx5/mlx5_ethdev.c:1381:3: error: ignoring return value
    of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
    fscanf(file, "%s", port_name);
    ^
Which reproduces on Ubuntu 16.04 LTS with
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609.

Fixes: b2f3a3810125 ("net/mlx5: support new representor naming format")

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Dekel Peled <dekelp@mellanox.com>


Thanks,
Ali

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-28 10:29         ` Ali Alnubani
@ 2019-03-28 10:29           ` Ali Alnubani
  2019-03-28 18:28           ` Ferruh Yigit
  1 sibling, 0 replies; 16+ messages in thread
From: Ali Alnubani @ 2019-03-28 10:29 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Shahaf Shuler, Dekel Peled, dev

Hi Ferruh,

> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Sent: Wednesday, March 27, 2019 11:31 AM
> To: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> <dekelp@mellanox.com>; Ali Alnubani <alialnu@mellanox.com>;
> dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
> 
> On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
> > On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
> >> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
> >>> Subject: RE: [PATCH] net/mlx5: add missing return value check
> >>>
> >>>> -----Original Message-----
> >>>> From: Ali Alnubani
> >>>> Sent: Thursday, March 21, 2019 11:07 AM
> >>>> To: dev@dpdk.org
> >>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
> >>>> <dekelp@mellanox.com>
> >>>> Subject: [PATCH] net/mlx5: add missing return value check
> >>>>
> >>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
> >>>> format")
> >>>> Cc: dekelp@mellanox.com
> >>>>
> >>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> >>
> >> Applied to next-net-mlx, thanks.
> >>
> >
> > Squashed into relevant commit [1] in next-net, thanks.
> >
> > [1]
> > net/mlx5: support new representor naming format
> >
> 
> 'main' repo get the original patch without squash, so can't squash now,
> merged as a incremental patch ...
> 
> Applied to dpdk-next-net/master, thanks.

A more detailed commit body:

This patch fixes the build failure with message:
    drivers/net/mlx5/mlx5_ethdev.c: In function ‘mlx5_sysfs_switch_info’:
    drivers/net/mlx5/mlx5_ethdev.c:1381:3: error: ignoring return value
    of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
    fscanf(file, "%s", port_name);
    ^
Which reproduces on Ubuntu 16.04 LTS with
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609.

Fixes: b2f3a3810125 ("net/mlx5: support new representor naming format")

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Dekel Peled <dekelp@mellanox.com>


Thanks,
Ali

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-28 10:29         ` Ali Alnubani
  2019-03-28 10:29           ` Ali Alnubani
@ 2019-03-28 18:28           ` Ferruh Yigit
  2019-03-28 18:28             ` Ferruh Yigit
  1 sibling, 1 reply; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-28 18:28 UTC (permalink / raw)
  To: Ali Alnubani; +Cc: Shahaf Shuler, Dekel Peled, dev

On 3/28/2019 10:29 AM, Ali Alnubani wrote:
> Hi Ferruh,
> 
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit@intel.com>
>> Sent: Wednesday, March 27, 2019 11:31 AM
>> To: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>> <dekelp@mellanox.com>; Ali Alnubani <alialnu@mellanox.com>;
>> dev@dpdk.org
>> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
>>
>> On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
>>> On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
>>>> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>>>>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Ali Alnubani
>>>>>> Sent: Thursday, March 21, 2019 11:07 AM
>>>>>> To: dev@dpdk.org
>>>>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>>>>> <dekelp@mellanox.com>
>>>>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>>>>
>>>>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>>>>> format")
>>>>>> Cc: dekelp@mellanox.com
>>>>>>
>>>>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
>>>>
>>>> Applied to next-net-mlx, thanks.
>>>>
>>>
>>> Squashed into relevant commit [1] in next-net, thanks.
>>>
>>> [1]
>>> net/mlx5: support new representor naming format
>>>
>>
>> 'main' repo get the original patch without squash, so can't squash now,
>> merged as a incremental patch ...
>>
>> Applied to dpdk-next-net/master, thanks.
> 
> A more detailed commit body:
> 
> This patch fixes the build failure with message:
>     drivers/net/mlx5/mlx5_ethdev.c: In function ‘mlx5_sysfs_switch_info’:
>     drivers/net/mlx5/mlx5_ethdev.c:1381:3: error: ignoring return value
>     of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
>     fscanf(file, "%s", port_name);
>     ^
> Which reproduces on Ubuntu 16.04 LTS with
> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609.
> 
> Fixes: b2f3a3810125 ("net/mlx5: support new representor naming format")
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> Acked-by: Dekel Peled <dekelp@mellanox.com>

Commit log updated in next-net as suggested, thanks.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
  2019-03-28 18:28           ` Ferruh Yigit
@ 2019-03-28 18:28             ` Ferruh Yigit
  0 siblings, 0 replies; 16+ messages in thread
From: Ferruh Yigit @ 2019-03-28 18:28 UTC (permalink / raw)
  To: Ali Alnubani; +Cc: Shahaf Shuler, Dekel Peled, dev

On 3/28/2019 10:29 AM, Ali Alnubani wrote:
> Hi Ferruh,
> 
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit@intel.com>
>> Sent: Wednesday, March 27, 2019 11:31 AM
>> To: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>> <dekelp@mellanox.com>; Ali Alnubani <alialnu@mellanox.com>;
>> dev@dpdk.org
>> Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add missing return value check
>>
>> On 3/25/2019 12:02 PM, Ferruh Yigit wrote:
>>> On 3/24/2019 9:26 AM, Shahaf Shuler wrote:
>>>> Thursday, March 21, 2019 11:34 AM, Dekel Peled:
>>>>> Subject: RE: [PATCH] net/mlx5: add missing return value check
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Ali Alnubani
>>>>>> Sent: Thursday, March 21, 2019 11:07 AM
>>>>>> To: dev@dpdk.org
>>>>>> Cc: Shahaf Shuler <shahafs@mellanox.com>; Dekel Peled
>>>>>> <dekelp@mellanox.com>
>>>>>> Subject: [PATCH] net/mlx5: add missing return value check
>>>>>>
>>>>>> Fixes: d86406b965df ("net/mlx5: support new representor naming
>>>>>> format")
>>>>>> Cc: dekelp@mellanox.com
>>>>>>
>>>>>> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
>>>>
>>>> Applied to next-net-mlx, thanks.
>>>>
>>>
>>> Squashed into relevant commit [1] in next-net, thanks.
>>>
>>> [1]
>>> net/mlx5: support new representor naming format
>>>
>>
>> 'main' repo get the original patch without squash, so can't squash now,
>> merged as a incremental patch ...
>>
>> Applied to dpdk-next-net/master, thanks.
> 
> A more detailed commit body:
> 
> This patch fixes the build failure with message:
>     drivers/net/mlx5/mlx5_ethdev.c: In function ‘mlx5_sysfs_switch_info’:
>     drivers/net/mlx5/mlx5_ethdev.c:1381:3: error: ignoring return value
>     of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
>     fscanf(file, "%s", port_name);
>     ^
> Which reproduces on Ubuntu 16.04 LTS with
> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609.
> 
> Fixes: b2f3a3810125 ("net/mlx5: support new representor naming format")
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> Acked-by: Dekel Peled <dekelp@mellanox.com>

Commit log updated in next-net as suggested, thanks.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-03-28 18:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21  9:07 [dpdk-dev] [PATCH] net/mlx5: add missing return value check Ali Alnubani
2019-03-21  9:07 ` Ali Alnubani
2019-03-21  9:26 ` Slava Ovsiienko
2019-03-21  9:26   ` Slava Ovsiienko
2019-03-21  9:34 ` Dekel Peled
2019-03-21  9:34   ` Dekel Peled
2019-03-24  9:26   ` Shahaf Shuler
2019-03-24  9:26     ` Shahaf Shuler
2019-03-25 12:02     ` Ferruh Yigit
2019-03-25 12:02       ` Ferruh Yigit
2019-03-27  9:31       ` Ferruh Yigit
2019-03-27  9:31         ` Ferruh Yigit
2019-03-28 10:29         ` Ali Alnubani
2019-03-28 10:29           ` Ali Alnubani
2019-03-28 18:28           ` Ferruh Yigit
2019-03-28 18:28             ` Ferruh Yigit

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).