From 96eeabefbe7b3d14e195815f4913c7c08a52b716 Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Fri, 27 Jan 2017 22:30:27 +0000 Subject: [PATCH] Replace customized busmaster code with standardized setup call. Reported by: jhb --- sys/net/iflib.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index acad313c51cc..23a548e6dd96 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -4781,12 +4781,9 @@ iflib_msix_init(if_ctx_t ctx) ** successfully initialize us. */ { - uint16_t pci_cmd_word; int msix_ctrl, rid; - pci_cmd_word = pci_read_config(dev, PCIR_COMMAND, 2); - pci_cmd_word |= PCIM_CMD_BUSMASTEREN; - pci_write_config(dev, PCIR_COMMAND, pci_cmd_word, 2); + pci_enable_busmaster(dev); rid = 0; if (pci_find_cap(dev, PCIY_MSIX, &rid) == 0 && rid != 0) { rid += PCIR_MSIX_CTRL;