From: Mahesh Bandewar <maheshb@google.com>
To: Jay Vosburgh <jay.vosburgh@canonical.com>
Cc: Andy Gospodarek <gospo@cumulusnetworks.com>,
Andy Gospodarek <andy@greyhouse.net>,
Veaceslav Falico <vfalico@gmail.com>,
Nikolay Aleksandrov <nikolay@redhat.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH next 4/6] bonding: Allow userspace to set system_priority
Date: Sun, 8 Feb 2015 21:44:07 -0800 [thread overview]
Message-ID: <CAF2d9jhkSD+EyHLzJSjS9rXdDCSfEQyFD5X9-D9KmGPFeu2RWA@mail.gmail.com> (raw)
In-Reply-To: <13353.1423381584@famine>
On Sat, Feb 7, 2015 at 11:46 PM, Jay Vosburgh
<jay.vosburgh@canonical.com> wrote:
> Mahesh Bandewar <maheshb@google.com> wrote:
>
>>On Fri, Feb 6, 2015 at 10:19 PM, Jay Vosburgh
>><jay.vosburgh@canonical.com> wrote:
>>> Andy Gospodarek <gospo@cumulusnetworks.com> wrote:
>>>
>>>>On Fri, Feb 06, 2015 at 04:51:54PM -0800, Mahesh Bandewar wrote:
>>>>> This patch allows user to randomize the system-priority in an ad-system.
>>>>> The allowed range is 1 - 0xFFFF while default value is 0xFFFF. If user
>>>>> does not specify this value, the system defaults to 0xFFFF, which is
>>>>> what it was before this patch.
>>>>>
>>>>> Following example code could set the value -
>>>>> # modprobe bonding mode=4
>>>>> # sys_prio=$(( 1 + RANDOM + RANDOM ))
>>>>> # echo $sys_prio > /sys/class/net/bond0/bonding/ad_actor_system_priority
>>>>
>>>>If I can convince you to change 'ad_actor_system_macaddr' to something
>>>>different can I also convince you to change this to something shorter,
>>>>too? :)
>>>>
>>>>Maybe 'ad_sys_priority' or something?
>>>
>>> The name, verbose as it is, is from the 802.1AX standard, and
>>> there's also a "partner_system_priority" (which is not a user-settable
>>> thing, it's a field in the LACPDUs). My suggestion would therefore be
>>> "ad_actor_sys_prio" for this one, as I think there's some value in
>>> continuity with the names from the standard.
>>>
>>> The MAC address one in the standard is just "actor_system";
>>> there's a "partner_system" here, too, which is also a field in the
>>> LACPDU. I'm ok with calling that one just "actor_system," as presumably
>>> anyone changing it will know what it means.
>>>
>>Thank you guys for the suggestions. I didn't like those very long
>>names either but when there is something that already has name
>>similar, I defaulted to being verbose. I will have the name changed to
>>-
>>
>>ad_actor_system_priority - ad_actor_sys_prio
>>ad_actor_system_mac_address - ad_actor_system
>>ad_actor_user_port_key - ad_user_portkey
>>
>>Is this reasonable enough?
>
> Perhaps nitpicking, but I'd call it ad_user_port_key.
>
> I agree that this one should not have "actor" in it, as this
> particular value is an invention of bonding and isn't directly part of
> the standard. In bonding, the "user key" (always 0 prior to this
> patch), speed, and duplex are used to generate the actor_admin_port_key
> and actor_oper_port_key. Those latter two are part of the standard, but
> have no required format.
>
Actually I was thinking of making ad_actor_sysprio instead of making
ad_user_port_key (feels like having more underscores makes it
unnecessary longer). That way all three look similar. So
ad_actor_sysprio
ad_actor_system
ad_user_portkey
All carry the same theme of meaning. Otherwise we could do something like -
ad_actor_sys_prio
ad_actor_sys_mac
ad_user_port_key
Which one seems more logical / reasonable?
> -J
>
> ---
> -Jay Vosburgh, jay.vosburgh@canonical.com
next prev parent reply other threads:[~2015-02-09 5:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-07 0:51 [PATCH next 4/6] bonding: Allow userspace to set system_priority Mahesh Bandewar
2015-02-07 3:38 ` Andy Gospodarek
2015-02-07 6:19 ` Jay Vosburgh
2015-02-07 19:26 ` Mahesh Bandewar
2015-02-08 7:46 ` Jay Vosburgh
2015-02-09 5:44 ` Mahesh Bandewar [this message]
2015-02-10 7:05 ` Jay Vosburgh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAF2d9jhkSD+EyHLzJSjS9rXdDCSfEQyFD5X9-D9KmGPFeu2RWA@mail.gmail.com \
--to=maheshb@google.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gospo@cumulusnetworks.com \
--cc=jay.vosburgh@canonical.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@redhat.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).