Mercurial > illumos > illumos-gate
changeset 10845:01ebe6cbdd64
6718272 BGE should verify whether 5754/5755 need to use partial checksum
author | yong tan - Sun Microsystems - Beijing China <Yong.Tan@Sun.COM> |
---|---|
date | Fri, 23 Oct 2009 10:29:05 +0800 |
parents | f77776222c0d |
children | c5c4ad9b1fc5 |
files | usr/src/uts/common/io/bge/bge_chip2.c usr/src/uts/common/io/bge/bge_main2.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/bge/bge_chip2.c Thu Oct 22 17:15:10 2009 -0700 +++ b/usr/src/uts/common/io/bge/bge_chip2.c Fri Oct 23 10:29:05 2009 +0800 @@ -2030,6 +2030,7 @@ } else { cidp->chip_label = 5705; cidp->pci_type = BGE_PCI; + cidp->flags |= CHIP_FLAG_PARTIAL_CSUM; } cidp->mbuf_lo_water_rdma = RDMA_MBUF_LOWAT_5705; cidp->mbuf_lo_water_rmac = MAC_RX_MBUF_LOWAT_5705; @@ -2040,7 +2041,6 @@ cidp->rx_rings = BGE_RECV_RINGS_MAX_5705; cidp->tx_rings = BGE_SEND_RINGS_MAX_5705; cidp->flags |= CHIP_FLAG_NO_JUMBO; - cidp->flags |= CHIP_FLAG_PARTIAL_CSUM; cidp->statistic_type = BGE_STAT_REG; dev_ok = B_TRUE; break; @@ -2093,7 +2093,8 @@ cidp->rx_rings = BGE_RECV_RINGS_MAX_5705; cidp->tx_rings = BGE_SEND_RINGS_MAX_5705; cidp->flags |= CHIP_FLAG_NO_JUMBO; - cidp->flags |= CHIP_FLAG_PARTIAL_CSUM; + if (cidp->device == DEVICE_ID_5755M) + cidp->flags |= CHIP_FLAG_PARTIAL_CSUM; cidp->statistic_type = BGE_STAT_REG; dev_ok = B_TRUE; break;
--- a/usr/src/uts/common/io/bge/bge_main2.c Thu Oct 22 17:15:10 2009 -0700 +++ b/usr/src/uts/common/io/bge/bge_main2.c Fri Oct 23 10:29:05 2009 +0800 @@ -37,7 +37,7 @@ /* * Make sure you keep the version ID up to date! */ -static char bge_version[] = "Broadcom Gb Ethernet v1.10"; +static char bge_version[] = "Broadcom Gb Ethernet v1.11"; /* * Property names