[dpdk-dev,1/2] net/tap: fix indentation in flow file

Message ID 1507042556-9839-1-git-send-email-matan@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Matan Azrad Oct. 3, 2017, 2:55 p.m. UTC
  Missed 4 spaces were added after break if line.

Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")

Signed-off-by: Matan Azrad <matan@mellanox.com>
---
 drivers/net/tap/tap_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit Oct. 3, 2017, 10:07 p.m. UTC | #1
On 10/3/2017 3:55 PM, Matan Azrad wrote:
> Missed 4 spaces were added after break if line.
> 
> Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")

What do you think fixing this when that code has been touched next time?

> 
> Signed-off-by: Matan Azrad <matan@mellanox.com>
> ---
>  drivers/net/tap/tap_flow.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c
> index eefa868..aa33960 100644
> --- a/drivers/net/tap/tap_flow.c
> +++ b/drivers/net/tap/tap_flow.c
> @@ -1093,7 +1093,7 @@ struct tap_flow_items {
>  				goto exit_action_not_supported;
>  			action = 1;
>  			if (!queue ||
> -			(queue->index > pmd->dev->data->nb_rx_queues - 1))
> +			    (queue->index > pmd->dev->data->nb_rx_queues - 1))
>  				goto exit_action_not_supported;
>  			if (flow)
>  				err = add_action_skbedit(flow, queue->index);
>
  
Pascal Mazon Oct. 4, 2017, 8:15 a.m. UTC | #2
Hi,

I'm surprised there's only one place in the file with indent problem,
but I'm ok with the patch otherwise.

Ferruh, I didn't get what you mean; Matan is modifying tap_flow.c in
patch 2/2, right?

Best regards,
Pascal

On 04/10/2017 00:07, Ferruh Yigit wrote:
> On 10/3/2017 3:55 PM, Matan Azrad wrote:
>> Missed 4 spaces were added after break if line.
>>
>> Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")
> What do you think fixing this when that code has been touched next time?
>
>> Signed-off-by: Matan Azrad <matan@mellanox.com>
>> ---
>>  drivers/net/tap/tap_flow.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c
>> index eefa868..aa33960 100644
>> --- a/drivers/net/tap/tap_flow.c
>> +++ b/drivers/net/tap/tap_flow.c
>> @@ -1093,7 +1093,7 @@ struct tap_flow_items {
>>  				goto exit_action_not_supported;
>>  			action = 1;
>>  			if (!queue ||
>> -			(queue->index > pmd->dev->data->nb_rx_queues - 1))
>> +			    (queue->index > pmd->dev->data->nb_rx_queues - 1))
>>  				goto exit_action_not_supported;
>>  			if (flow)
>>  				err = add_action_skbedit(flow, queue->index);
>>
  
Ferruh Yigit Oct. 4, 2017, 5:26 p.m. UTC | #3
On 10/4/2017 9:15 AM, Pascal Mazon wrote:
> Hi,
> 
> I'm surprised there's only one place in the file with indent problem,
> but I'm ok with the patch otherwise.
> 
> Ferruh, I didn't get what you mean; Matan is modifying tap_flow.c in
> patch 2/2, right?

I wasn't sure about getting the patch that fixes only syntax in one place.
Good to have proper syntax but a commit for this looked like overkill to
me. So I was suggesting keep it as it is and fix syntax when that piece
of code updated later.

But you are the maintainer of the driver, if you have strong opinion to
get it, sure I can.

Thanks,
ferruh

> 
> Best regards,
> Pascal
> 
> On 04/10/2017 00:07, Ferruh Yigit wrote:
>> On 10/3/2017 3:55 PM, Matan Azrad wrote:
>>> Missed 4 spaces were added after break if line.
>>>
>>> Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")
>> What do you think fixing this when that code has been touched next time?
>>
>>> Signed-off-by: Matan Azrad <matan@mellanox.com>
>>> ---
>>>  drivers/net/tap/tap_flow.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c
>>> index eefa868..aa33960 100644
>>> --- a/drivers/net/tap/tap_flow.c
>>> +++ b/drivers/net/tap/tap_flow.c
>>> @@ -1093,7 +1093,7 @@ struct tap_flow_items {
>>>  				goto exit_action_not_supported;
>>>  			action = 1;
>>>  			if (!queue ||
>>> -			(queue->index > pmd->dev->data->nb_rx_queues - 1))
>>> +			    (queue->index > pmd->dev->data->nb_rx_queues - 1))
>>>  				goto exit_action_not_supported;
>>>  			if (flow)
>>>  				err = add_action_skbedit(flow, queue->index);
>>>
>
  
Ferruh Yigit Oct. 5, 2017, 9:33 p.m. UTC | #4
On 10/4/2017 6:26 PM, Ferruh Yigit wrote:
> On 10/4/2017 9:15 AM, Pascal Mazon wrote:
>> Hi,
>>
>> I'm surprised there's only one place in the file with indent problem,
>> but I'm ok with the patch otherwise.
>>
>> Ferruh, I didn't get what you mean; Matan is modifying tap_flow.c in
>> patch 2/2, right?
> 
> I wasn't sure about getting the patch that fixes only syntax in one place.
> Good to have proper syntax but a commit for this looked like overkill to
> me. So I was suggesting keep it as it is and fix syntax when that piece
> of code updated later.
> 
> But you are the maintainer of the driver, if you have strong opinion to
> get it, sure I can.

What has been fixed is still in next-net, so I can squash this.

<...>

>>>> Missed 4 spaces were added after break if line.
>>>>
>>>> Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")
>>> What do you think fixing this when that code has been touched next time?
>>>
>>>> Signed-off-by: Matan Azrad <matan@mellanox.com>

Squashed into relevant commit in next-net, thanks.
  
Pascal Mazon Oct. 16, 2017, 8:04 a.m. UTC | #5
Hi,

Sorry for the delay, I was on vacation.

Nevermind this indent patch for now.
Matan, could you integrate it (squashed) when you'll have a new patch
modifying tap_flow.c?

Thank you.

Regards,
Pascal

On 05/10/2017 23:33, Ferruh Yigit wrote:
> On 10/4/2017 6:26 PM, Ferruh Yigit wrote:
>> On 10/4/2017 9:15 AM, Pascal Mazon wrote:
>>> Hi,
>>>
>>> I'm surprised there's only one place in the file with indent problem,
>>> but I'm ok with the patch otherwise.
>>>
>>> Ferruh, I didn't get what you mean; Matan is modifying tap_flow.c in
>>> patch 2/2, right?
>> I wasn't sure about getting the patch that fixes only syntax in one place.
>> Good to have proper syntax but a commit for this looked like overkill to
>> me. So I was suggesting keep it as it is and fix syntax when that piece
>> of code updated later.
>>
>> But you are the maintainer of the driver, if you have strong opinion to
>> get it, sure I can.
> What has been fixed is still in next-net, so I can squash this.
>
> <...>
>
>>>>> Missed 4 spaces were added after break if line.
>>>>>
>>>>> Fixes: 7a6811d78ed6 ("net/tap: fix flow and port commands")
>>>> What do you think fixing this when that code has been touched next time?
>>>>
>>>>> Signed-off-by: Matan Azrad <matan@mellanox.com>
> Squashed into relevant commit in next-net, thanks.
  

Patch

diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c
index eefa868..aa33960 100644
--- a/drivers/net/tap/tap_flow.c
+++ b/drivers/net/tap/tap_flow.c
@@ -1093,7 +1093,7 @@  struct tap_flow_items {
 				goto exit_action_not_supported;
 			action = 1;
 			if (!queue ||
-			(queue->index > pmd->dev->data->nb_rx_queues - 1))
+			    (queue->index > pmd->dev->data->nb_rx_queues - 1))
 				goto exit_action_not_supported;
 			if (flow)
 				err = add_action_skbedit(flow, queue->index);