From 1c0efb8bb54238809d2d95dcd93d4c96fa72ab8e Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 27 Dec 2021 10:56:55 +0000 Subject: [PATCH] Bump rxpost and rxcomplete ring size to 1024 for newer chips. --- sys/dev/pci/if_bwfm_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index dc27d298055..4c05b448ce6 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.58 2021/12/20 19:24:32 patrick Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.59 2021/12/27 10:56:55 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt @@ -622,7 +622,7 @@ bwfm_pci_preinit(struct bwfm_softc *bwfm) &ring_mem_ptr)) goto cleanup; /* TX rxpost ring: Send clean data mbufs for RX */ - if (bwfm_pci_setup_ring(sc, &sc->sc_rxpost_submit, 512, 32, + if (bwfm_pci_setup_ring(sc, &sc->sc_rxpost_submit, 1024, 32, h2d_w_idx_ptr, h2d_r_idx_ptr, 1, idx_offset, &ring_mem_ptr)) goto cleanup; @@ -636,7 +636,7 @@ bwfm_pci_preinit(struct bwfm_softc *bwfm) d2h_w_idx_ptr, d2h_r_idx_ptr, 1, idx_offset, &ring_mem_ptr)) goto cleanup; - if (bwfm_pci_setup_ring(sc, &sc->sc_rx_complete, 512, + if (bwfm_pci_setup_ring(sc, &sc->sc_rx_complete, 1024, sc->sc_shared_version >= 7 ? 40 : 32, d2h_w_idx_ptr, d2h_r_idx_ptr, 2, idx_offset, &ring_mem_ptr)) -- 2.20.1