Do not mask off the low byte of the chipid, it makes some of the case

statements unreachable and seems to be wrong.  Fixes detection of the number
of ports available on some models.

Sponsored by:	Packet Forensics
This commit is contained in:
jmallett 2010-03-05 22:44:49 +00:00
parent a2ef6b3007
commit f1bff6675f

View File

@ -2181,7 +2181,7 @@ static int octeon_has_4ports (void)
u_int chipid;
int retcode = 1;
chipid = octeon_get_chipid() & 0xffffff00;
chipid = octeon_get_chipid();
switch (chipid) {
case OCTEON_CN31XX_CHIP: