mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
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
ca3cf4fa2c
commit
e0be9e6857
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204776
@ -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