lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140530071434.GA18085@distanz.ch>
Date:	Fri, 30 May 2014 09:14:34 +0200
From:	Tobias Klauser <tklauser@...tanz.ch>
To:	Chris Metcalf <cmetcalf@...era.com>
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] net: tilegx: Use helpers from linux/etherdevice.h
 to check/set MAC

On 2014-05-28 at 21:43:33 +0200, Chris Metcalf <cmetcalf@...era.com> wrote:
> On 5/27/2014 8:04 AM, Tobias Klauser wrote:
> >Use is_valid_ether_addr() to check for a valid MAC address to set on the
> >device.  This will also check for the device address being multicast,
> >which would have been possible previously.
> 
> I don't think having a multicast address here is possible (i.e. as returned
> by gxio_mpipe_link_enumerate_mac), and it confuses the actual issue, which
> is handling the all-zeroes case in a simulator run.  I'd prefer to see
> is_zero_ether_addr() instead.

Ok, I'll send an updated patch which only tests for
!is_zero_ether_addr()

> >Also use ether_addr_copy() instead of a manual memcpy() to set the
> >address.
> >
> >Furthermore, get rid of a redundant assignment of dev->addr_len. This is
> >already set by ether_setup() which is called in tile_net_setup().
> >
> >Signed-off-by: Tobias Klauser <tklauser@...tanz.ch>
> >---
> >  drivers/net/ethernet/tile/tilegx.c |   17 ++++++-----------
> >  1 file changed, 6 insertions(+), 11 deletions(-)
> 
> With the change above,
> 
> Acked-by: Chris Metcalf <cmetcalf@...era.com>
> 
> -- 
> Chris Metcalf, Tilera Corp.
> http://www.tilera.com
> 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ