All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH next 0/4] bonding: winter cleanup
@ 2017-02-22  1:08 Mahesh Bandewar
  2017-02-22  3:29 ` David Miller
  2017-02-22  7:58 ` Jiri Pirko
  0 siblings, 2 replies; 8+ messages in thread
From: Mahesh Bandewar @ 2017-02-22  1:08 UTC (permalink / raw)
  To: Jay Vosburgh, Andy Gospodarek, Veaceslav Falico,
	Nikolay Aleksandrov, David Miller, Eric Dumazet
  Cc: netdev, Mahesh Bandewar, Mahesh Bandewar

From: Mahesh Bandewar <maheshb@google.com>

Few cleanup patches that I have accumulated over some time now.

(a) First two patches are basically to move the work-queue initialization
    from every ndo_open / bond_open operation to once at the beginning while
    port creation. Work-queue initialization is an unnecessary operation
    for every 'ifup' operation. However we have some mode-specific work-queues
    and mode can change anytime after port creation. So the second patch is
    to ensure the correct work-handler is called based on the mode.

(b) Third patch is simple and straightforward that removes hard-coded value
    that was added into the initial commit and replaces it with the default
    value configured.

(c) The final patch in the series removes the unimplemented "port-moved" state
    from the LACP state machine. This state is defined but never set so
    removing from the state machine logic makes code little cleaner.

Note: None of these patches are making any functional changes.

Mahesh Bandewar (4):
  bonding: restructure arp-monitor
  bonding: initialize work-queues during creation of bond
  bonding: remove hardcoded value
  bonding: remove "port-moved" state that was never implemented

 drivers/net/bonding/bond_3ad.c  | 11 +++--------
 drivers/net/bonding/bond_main.c | 42 ++++++++++++++++++++++++++++-------------
 2 files changed, 32 insertions(+), 21 deletions(-)

-- 
2.11.0.483.g087da7b7c-goog

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22  1:08 [PATCH next 0/4] bonding: winter cleanup Mahesh Bandewar
@ 2017-02-22  3:29 ` David Miller
  2017-02-22  4:36   ` Or Gerlitz
  2017-02-22  7:58 ` Jiri Pirko
  1 sibling, 1 reply; 8+ messages in thread
From: David Miller @ 2017-02-22  3:29 UTC (permalink / raw)
  To: mahesh; +Cc: j.vosburgh, andy, vfalico, nikolay, edumazet, netdev, maheshb

From: Mahesh Bandewar <mahesh@bandewar.net>
Date: Tue, 21 Feb 2017 17:08:16 -0800

> Few cleanup patches that I have accumulated over some time now.

The net-next tree is closed, therefore it is not appropriate to
submit cleanups at this time.

Please wait until after the merge window and the net-next tree
opens back up.

Thank you.

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22  3:29 ` David Miller
@ 2017-02-22  4:36   ` Or Gerlitz
  2017-02-22 19:17     ` Mahesh Bandewar (महेश बंडेवार)
  0 siblings, 1 reply; 8+ messages in thread
From: Or Gerlitz @ 2017-02-22  4:36 UTC (permalink / raw)
  To: David Miller, Jamal Hadi Salim
  Cc: mahesh, Jay Vosburgh, Andy Gospodarek, vfalico, nikolay,
	Eric Dumazet, Linux Netdev List, maheshb

On Wed, Feb 22, 2017 at 5:29 AM, David Miller <davem@davemloft.net> wrote:
> From: Mahesh Bandewar <mahesh@bandewar.net>
> Date: Tue, 21 Feb 2017 17:08:16 -0800
>
>> Few cleanup patches that I have accumulated over some time now.
>
> The net-next tree is closed, therefore it is not appropriate to
> submit cleanups at this time.
>
> Please wait until after the merge window and the net-next tree
> opens back up.

Maybe we should start educating ppl on this by mandating them to come
and bring home made cakes to netdev each time they ignore that? in our
school this is the model for stopping kids and teachers phones to ring
during class time. Jamal - there will be more attendees this way :)

Or.

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22  1:08 [PATCH next 0/4] bonding: winter cleanup Mahesh Bandewar
  2017-02-22  3:29 ` David Miller
@ 2017-02-22  7:58 ` Jiri Pirko
  2017-02-22 19:23   ` Mahesh Bandewar (महेश बंडेवार)
  1 sibling, 1 reply; 8+ messages in thread
From: Jiri Pirko @ 2017-02-22  7:58 UTC (permalink / raw)
  To: Mahesh Bandewar
  Cc: Jay Vosburgh, Andy Gospodarek, Veaceslav Falico,
	Nikolay Aleksandrov, David Miller, Eric Dumazet, netdev,
	Mahesh Bandewar

Wed, Feb 22, 2017 at 02:08:16AM CET, mahesh@bandewar.net wrote:
>From: Mahesh Bandewar <maheshb@google.com>
>
>Few cleanup patches that I have accumulated over some time now.
>
>(a) First two patches are basically to move the work-queue initialization
>    from every ndo_open / bond_open operation to once at the beginning while
>    port creation. Work-queue initialization is an unnecessary operation
>    for every 'ifup' operation. However we have some mode-specific work-queues
>    and mode can change anytime after port creation. So the second patch is
>    to ensure the correct work-handler is called based on the mode.
>
>(b) Third patch is simple and straightforward that removes hard-coded value
>    that was added into the initial commit and replaces it with the default
>    value configured.
>
>(c) The final patch in the series removes the unimplemented "port-moved" state
>    from the LACP state machine. This state is defined but never set so
>    removing from the state machine logic makes code little cleaner.
>
>Note: None of these patches are making any functional changes.
>
>Mahesh Bandewar (4):

Mahesh. I understand that you are still using bonding. What's stopping
you from using team instead?

Isn't about the time to start deprecate process of bonding? :O


>  bonding: restructure arp-monitor
>  bonding: initialize work-queues during creation of bond
>  bonding: remove hardcoded value
>  bonding: remove "port-moved" state that was never implemented
>
> drivers/net/bonding/bond_3ad.c  | 11 +++--------
> drivers/net/bonding/bond_main.c | 42 ++++++++++++++++++++++++++++-------------
> 2 files changed, 32 insertions(+), 21 deletions(-)
>
>-- 
>2.11.0.483.g087da7b7c-goog
>

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22  4:36   ` Or Gerlitz
@ 2017-02-22 19:17     ` Mahesh Bandewar (महेश बंडेवार)
  2017-02-22 19:21       ` Andy Gospodarek
  0 siblings, 1 reply; 8+ messages in thread
From: Mahesh Bandewar (महेश बंडेवार) @ 2017-02-22 19:17 UTC (permalink / raw)
  To: Or Gerlitz
  Cc: David Miller, Jamal Hadi Salim, mahesh, Jay Vosburgh,
	Andy Gospodarek, vfalico, nikolay, Eric Dumazet,
	Linux Netdev List

On Tue, Feb 21, 2017 at 8:36 PM, Or Gerlitz <gerlitz.or@gmail.com> wrote:
>
> On Wed, Feb 22, 2017 at 5:29 AM, David Miller <davem@davemloft.net> wrote:
> > From: Mahesh Bandewar <mahesh@bandewar.net>
> > Date: Tue, 21 Feb 2017 17:08:16 -0800
> >
> >> Few cleanup patches that I have accumulated over some time now.
> >
> > The net-next tree is closed, therefore it is not appropriate to
> > submit cleanups at this time.
> >
Oops, My bad! Well, this will give an opportunity for people to have
more time with the patch(s) / clean-up-code :p

> > Please wait until after the merge window and the net-next tree
> > opens back up.
> >
Will do so. Thank you.
>
> Maybe we should start educating ppl on this by mandating them to come
> and bring home made cakes to netdev each time they ignore that?
>
That's a risky proposal Or! You are assuming that someone who can
write code can bake "good" cake too :)

> in our
> school this is the model for stopping kids and teachers phones to ring
> during class time. Jamal - there will be more attendees this way :)
>

> Or.

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22 19:17     ` Mahesh Bandewar (महेश बंडेवार)
@ 2017-02-22 19:21       ` Andy Gospodarek
  0 siblings, 0 replies; 8+ messages in thread
From: Andy Gospodarek @ 2017-02-22 19:21 UTC (permalink / raw)
  To: Mahesh Bandewar (महेश
	बंडेवार)
  Cc: Or Gerlitz, David Miller, Jamal Hadi Salim, mahesh, Jay Vosburgh,
	vfalico, nikolay, Eric Dumazet, Linux Netdev List

On Wed, Feb 22, 2017 at 2:17 PM, Mahesh Bandewar (महेश बंडेवार)
<maheshb@google.com> wrote:
> On Tue, Feb 21, 2017 at 8:36 PM, Or Gerlitz <gerlitz.or@gmail.com> wrote:
>>
>> On Wed, Feb 22, 2017 at 5:29 AM, David Miller <davem@davemloft.net> wrote:
>> > From: Mahesh Bandewar <mahesh@bandewar.net>
>> > Date: Tue, 21 Feb 2017 17:08:16 -0800
>> >
>> >> Few cleanup patches that I have accumulated over some time now.
>> >
>> > The net-next tree is closed, therefore it is not appropriate to
>> > submit cleanups at this time.
>> >
> Oops, My bad! Well, this will give an opportunity for people to have
> more time with the patch(s) / clean-up-code :p
>
>> > Please wait until after the merge window and the net-next tree
>> > opens back up.
>> >
> Will do so. Thank you.
>>
>> Maybe we should start educating ppl on this by mandating them to come
>> and bring home made cakes to netdev each time they ignore that?
>>
> That's a risky proposal Or! You are assuming that someone who can
> write code can bake "good" cake too :)

Just bring the recipe, so if it happens not to be tasty we can tell
you why.  :-D

>> in our
>> school this is the model for stopping kids and teachers phones to ring
>> during class time. Jamal - there will be more attendees this way :)
>>
>
>> Or.

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22  7:58 ` Jiri Pirko
@ 2017-02-22 19:23   ` Mahesh Bandewar (महेश बंडेवार)
  2017-02-22 20:26     ` Jiri Pirko
  0 siblings, 1 reply; 8+ messages in thread
From: Mahesh Bandewar (महेश बंडेवार) @ 2017-02-22 19:23 UTC (permalink / raw)
  To: Jiri Pirko
  Cc: Mahesh Bandewar, Jay Vosburgh, Andy Gospodarek, Veaceslav Falico,
	Nikolay Aleksandrov, David Miller, Eric Dumazet, netdev

On Tue, Feb 21, 2017 at 11:58 PM, Jiri Pirko <jiri@resnulli.us> wrote:
> Wed, Feb 22, 2017 at 02:08:16AM CET, mahesh@bandewar.net wrote:
>>From: Mahesh Bandewar <maheshb@google.com>
>>
>>Few cleanup patches that I have accumulated over some time now.
>>
>>(a) First two patches are basically to move the work-queue initialization
>>    from every ndo_open / bond_open operation to once at the beginning while
>>    port creation. Work-queue initialization is an unnecessary operation
>>    for every 'ifup' operation. However we have some mode-specific work-queues
>>    and mode can change anytime after port creation. So the second patch is
>>    to ensure the correct work-handler is called based on the mode.
>>
>>(b) Third patch is simple and straightforward that removes hard-coded value
>>    that was added into the initial commit and replaces it with the default
>>    value configured.
>>
>>(c) The final patch in the series removes the unimplemented "port-moved" state
>>    from the LACP state machine. This state is defined but never set so
>>    removing from the state machine logic makes code little cleaner.
>>
>>Note: None of these patches are making any functional changes.
>>
>>Mahesh Bandewar (4):
>
> Mahesh. I understand that you are still using bonding. What's stopping
> you from using team instead?
>
Let me just say this, if it was trivial enough, we'd have done with it
by now. :)

> Isn't about the time to start deprecate process of bonding? :O
>
>
>>  bonding: restructure arp-monitor
>>  bonding: initialize work-queues during creation of bond
>>  bonding: remove hardcoded value
>>  bonding: remove "port-moved" state that was never implemented
>>
>> drivers/net/bonding/bond_3ad.c  | 11 +++--------
>> drivers/net/bonding/bond_main.c | 42 ++++++++++++++++++++++++++++-------------
>> 2 files changed, 32 insertions(+), 21 deletions(-)
>>
>>--
>>2.11.0.483.g087da7b7c-goog
>>

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

* Re: [PATCH next 0/4] bonding: winter cleanup
  2017-02-22 19:23   ` Mahesh Bandewar (महेश बंडेवार)
@ 2017-02-22 20:26     ` Jiri Pirko
  0 siblings, 0 replies; 8+ messages in thread
From: Jiri Pirko @ 2017-02-22 20:26 UTC (permalink / raw)
  To: Mahesh Bandewar (महेश
	बंडेवार)
  Cc: Mahesh Bandewar, Jay Vosburgh, Andy Gospodarek, Veaceslav Falico,
	Nikolay Aleksandrov, David Miller, Eric Dumazet, netdev

Wed, Feb 22, 2017 at 08:23:13PM CET, maheshb@google.com wrote:
>On Tue, Feb 21, 2017 at 11:58 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>> Wed, Feb 22, 2017 at 02:08:16AM CET, mahesh@bandewar.net wrote:
>>>From: Mahesh Bandewar <maheshb@google.com>
>>>
>>>Few cleanup patches that I have accumulated over some time now.
>>>
>>>(a) First two patches are basically to move the work-queue initialization
>>>    from every ndo_open / bond_open operation to once at the beginning while
>>>    port creation. Work-queue initialization is an unnecessary operation
>>>    for every 'ifup' operation. However we have some mode-specific work-queues
>>>    and mode can change anytime after port creation. So the second patch is
>>>    to ensure the correct work-handler is called based on the mode.
>>>
>>>(b) Third patch is simple and straightforward that removes hard-coded value
>>>    that was added into the initial commit and replaces it with the default
>>>    value configured.
>>>
>>>(c) The final patch in the series removes the unimplemented "port-moved" state
>>>    from the LACP state machine. This state is defined but never set so
>>>    removing from the state machine logic makes code little cleaner.
>>>
>>>Note: None of these patches are making any functional changes.
>>>
>>>Mahesh Bandewar (4):
>>
>> Mahesh. I understand that you are still using bonding. What's stopping
>> you from using team instead?
>>
>Let me just say this, if it was trivial enough, we'd have done with it
>by now. :)

What exactly is the blocker? Can I help?

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

end of thread, other threads:[~2017-02-22 20:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22  1:08 [PATCH next 0/4] bonding: winter cleanup Mahesh Bandewar
2017-02-22  3:29 ` David Miller
2017-02-22  4:36   ` Or Gerlitz
2017-02-22 19:17     ` Mahesh Bandewar (महेश बंडेवार)
2017-02-22 19:21       ` Andy Gospodarek
2017-02-22  7:58 ` Jiri Pirko
2017-02-22 19:23   ` Mahesh Bandewar (महेश बंडेवार)
2017-02-22 20:26     ` Jiri Pirko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.