From: Julia Lawall <julia.lawall@lip6.fr>
To: Ding Tianhong <dingtianhong@huawei.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
Joe Perches <joe@perches.com>, Jay Vosburgh <fubar@us.ibm.com>,
Veaceslav Falico <vfalico@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Netdev <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH RESEND net-next 1/7] bonding: use ether_addr_equal_unaligned for bond addr compare
Date: Thu, 2 Jan 2014 11:42:46 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.02.1401021140220.2182@localhost6.localdomain6> (raw)
In-Reply-To: <52C541A9.8060002@huawei.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1657 bytes --]
On Thu, 2 Jan 2014, Ding Tianhong wrote:
> On 2014/1/2 18:26, Ding Tianhong wrote:
> > On 2014/1/2 17:14, Julia Lawall wrote:
> >> On Thu, 2 Jan 2014, Ding Tianhong wrote:
> >>
> >>> On 2014/1/2 16:38, Julia Lawall wrote:
> >>>> On Thu, 2 Jan 2014, Ding Tianhong wrote:
> >>>>
> >>>>> On 2014/1/2 15:39, Julia Lawall wrote:
> >>>>>> Are the casts needed
> >>>>>
> >>>>>
> >>>>> Yes, otherwise the warming will report:
> >>>>>
> >>>>> /net-next/drivers/net/bonding/bond_3ad.c:427: warning: passing argument 1 of ‘ether_addr_equal_64bits’ from incompatible pointer type
> >>>>
> >>>> Is it necessary for this driver to use a different type from everyone
> >>>> else?
> >>>>
> >>>> julia
> >>>>
> >>> Did you mean the MAC_ADDRESS_EQUAL is excess?
> >>> I did not remove it because the codes no need to be changed more and it looks that didn't take any negative effect.
> >>
> >> No, I was wondering about the mac_addr type, defined in bond_3ad.h. Other
> >> code just has the array inlined into the containing structure.
> >>
> >> julia
> >>
>
> I reviewed the struct mac_addr again, and feel that even it looks not comfortable, but
> make the lacp struct more meaning for 3ad, what do you think about it, I think no need
> to revert them to u8.
Personally, when I see things that are different, I start wondering about
why. So if there is no reason for it to be different, I would prefer that
it is the same.
Certainly, a mac_addr type is more meaningful than just an array with size
ETH_ALEN, or worse an array with size 6. But I am not sure that it is
practical to introduce that type everywhere.
In any case, it is not a big issue.
julia
prev parent reply other threads:[~2014-01-02 10:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-02 1:12 [PATCH RESEND net-next 1/7] bonding: use ether_addr_equal_unaligned for bond addr compare Ding Tianhong
2014-01-02 7:39 ` Julia Lawall
2014-01-02 8:21 ` Ding Tianhong
2014-01-02 8:38 ` Julia Lawall
2014-01-02 9:00 ` Ding Tianhong
2014-01-02 9:14 ` Julia Lawall
2014-01-02 10:26 ` Ding Tianhong
2014-01-02 10:38 ` Ding Tianhong
2014-01-02 10:42 ` Julia Lawall [this message]
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=alpine.DEB.2.02.1401021140220.2182@localhost6.localdomain6 \
--to=julia.lawall@lip6.fr \
--cc=davem@davemloft.net \
--cc=dingtianhong@huawei.com \
--cc=fubar@us.ibm.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vfalico@redhat.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