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:
parent
a2ef6b3007
commit
f1bff6675f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user