mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 16:05:17 -04:00
Re-enable write combining, disabled by default at r295486.
if_ntb(4) strongly benefits from WC, improving throughput from 350Mbit/s to 8-10Gbit/s on my tests. MFC after: 1 week
This commit is contained in:
parent
131bc376b9
commit
b72a6f8a8f
1 changed files with 4 additions and 0 deletions
|
|
@ -616,6 +616,10 @@ ntb_transport_probe(struct ntb_softc *ntb)
|
|||
mw->xlat_size = 0;
|
||||
mw->virt_addr = NULL;
|
||||
mw->dma_addr = 0;
|
||||
|
||||
rc = ntb_mw_set_wc(nt->ntb, i, VM_MEMATTR_WRITE_COMBINING);
|
||||
if (rc)
|
||||
ntb_printf(0, "Unable to set mw%d caching\n", i);
|
||||
}
|
||||
|
||||
qp_bitmap = ntb_db_valid_mask(ntb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue