Deleted Added
full compact
35c35
< __FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 241343 2012-10-08 07:33:43Z yongari $");
---
> __FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 241388 2012-10-10 01:24:02Z yongari $");
1469,1470c1469,1472
< /* Read watermark not used, 128 bytes for write. */
< dma_rw_ctl |= BGE_PCIDMARWCTL_WR_WAT_SHIFT(3);
---
> if (sc->bge_mps >= 256)
> dma_rw_ctl |= BGE_PCIDMARWCTL_WR_WAT_SHIFT(7);
> else
> dma_rw_ctl |= BGE_PCIDMARWCTL_WR_WAT_SHIFT(3);
3163a3166,3169
> /* Extract supported maximum payload size. */
> sc->bge_mps = pci_read_config(dev, sc->bge_expcap +
> PCIER_DEVICE_CAP, 2);
> sc->bge_mps = 128 << (sc->bge_mps & PCIEM_CAP_MAX_PAYLOAD);
3166,3168c3172,3175
< pci_set_max_read_req(dev, 2048);
< else if (pci_get_max_read_req(dev) != 4096)
< pci_set_max_read_req(dev, 4096);
---
> sc->bge_expmrq = 2048;
> else
> sc->bge_expmrq = 4096;
> pci_set_max_read_req(dev, sc->bge_expmrq);
3644a3652
> pci_set_max_read_req(dev, sc->bge_expmrq);