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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201109174542.2ab6a3dc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date:   Mon, 9 Nov 2020 17:45:42 -0800
From:   Jakub Kicinski <kuba@...nel.org>
To:     Andrew Lunn <andrew@...n.ch>
Cc:     Tobias Waldekranz <tobias@...dekranz.com>, davem@...emloft.net,
        vivien.didelot@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: dsa: mv88e6xxx: Export VTU as devlink
 region

On Mon, 9 Nov 2020 18:44:15 +0100 Andrew Lunn wrote:
> >  static void
> > @@ -574,9 +670,16 @@ static int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds,
> >  		ops = mv88e6xxx_regions[i].ops;
> >  		size = mv88e6xxx_regions[i].size;
> >  
> > -		if (i == MV88E6XXX_REGION_ATU)
> > +		switch (i) {
> > +		case MV88E6XXX_REGION_ATU:
> >  			size = mv88e6xxx_num_databases(chip) *
> >  				sizeof(struct mv88e6xxx_devlink_atu_entry);
> > +			break;
> > +		case MV88E6XXX_REGION_VTU:
> > +			size = chip->info->max_vid *
> > +				sizeof(struct mv88e6xxx_devlink_vtu_entry);
> > +			break;
> > +		}  
> 

[...]

> Reviewed-by: Andrew Lunn <andrew@...n.ch>

Applied, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ