| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /*$NetBSD: ixv.c,v 1.156 2021/03/11 02:30:47 msaitoh Exp $*/ | | 1 | /*$NetBSD: ixv.c,v 1.157 2021/03/31 07:52:14 msaitoh Exp $*/ |
2 | | | 2 | |
3 | /****************************************************************************** | | 3 | /****************************************************************************** |
4 | | | 4 | |
5 | Copyright (c) 2001-2017, Intel Corporation | | 5 | Copyright (c) 2001-2017, Intel Corporation |
6 | All rights reserved. | | 6 | All rights reserved. |
7 | | | 7 | |
8 | Redistribution and use in source and binary forms, with or without | | 8 | Redistribution and use in source and binary forms, with or without |
9 | modification, are permitted provided that the following conditions are met: | | 9 | modification, are permitted provided that the following conditions are met: |
10 | | | 10 | |
11 | 1. Redistributions of source code must retain the above copyright notice, | | 11 | 1. Redistributions of source code must retain the above copyright notice, |
12 | this list of conditions and the following disclaimer. | | 12 | this list of conditions and the following disclaimer. |
13 | | | 13 | |
14 | 2. Redistributions in binary form must reproduce the above copyright | | 14 | 2. Redistributions in binary form must reproduce the above copyright |
| @@ -3348,27 +3348,27 @@ ixv_allocate_msix(struct adapter *adapte | | | @@ -3348,27 +3348,27 @@ ixv_allocate_msix(struct adapter *adapte |
3348 | ixgbe_deferred_mq_start_work, adapter, IXGBE_WORKQUEUE_PRI, IPL_NET, | | 3348 | ixgbe_deferred_mq_start_work, adapter, IXGBE_WORKQUEUE_PRI, IPL_NET, |
3349 | IXGBE_WORKQUEUE_FLAGS); | | 3349 | IXGBE_WORKQUEUE_FLAGS); |
3350 | if (error) { | | 3350 | if (error) { |
3351 | aprint_error_dev(dev, "couldn't create workqueue for deferred Tx\n"); | | 3351 | aprint_error_dev(dev, "couldn't create workqueue for deferred Tx\n"); |
3352 | } | | 3352 | } |
3353 | adapter->txr_wq_enqueued = percpu_alloc(sizeof(u_int)); | | 3353 | adapter->txr_wq_enqueued = percpu_alloc(sizeof(u_int)); |
3354 | | | 3354 | |
3355 | snprintf(wqname, sizeof(wqname), "%sTxRx", device_xname(dev)); | | 3355 | snprintf(wqname, sizeof(wqname), "%sTxRx", device_xname(dev)); |
3356 | error = workqueue_create(&adapter->que_wq, wqname, | | 3356 | error = workqueue_create(&adapter->que_wq, wqname, |
3357 | ixv_handle_que_work, adapter, IXGBE_WORKQUEUE_PRI, IPL_NET, | | 3357 | ixv_handle_que_work, adapter, IXGBE_WORKQUEUE_PRI, IPL_NET, |
3358 | IXGBE_WORKQUEUE_FLAGS); | | 3358 | IXGBE_WORKQUEUE_FLAGS); |
3359 | if (error) { | | 3359 | if (error) { |
3360 | aprint_error_dev(dev, | | 3360 | aprint_error_dev(dev, |
3361 | "couldn't create workqueue\n"); | | 3361 | "couldn't create workqueue for Tx/Rx\n"); |
3362 | } | | 3362 | } |
3363 | | | 3363 | |
3364 | /* and Mailbox */ | | 3364 | /* and Mailbox */ |
3365 | cpu_id++; | | 3365 | cpu_id++; |
3366 | snprintf(intr_xname, sizeof(intr_xname), "%s link", device_xname(dev)); | | 3366 | snprintf(intr_xname, sizeof(intr_xname), "%s link", device_xname(dev)); |
3367 | adapter->vector = vector; | | 3367 | adapter->vector = vector; |
3368 | intrstr = pci_intr_string(pc, adapter->osdep.intrs[vector], intrbuf, | | 3368 | intrstr = pci_intr_string(pc, adapter->osdep.intrs[vector], intrbuf, |
3369 | sizeof(intrbuf)); | | 3369 | sizeof(intrbuf)); |
3370 | #ifdef IXGBE_MPSAFE | | 3370 | #ifdef IXGBE_MPSAFE |
3371 | pci_intr_setattr(pc, &adapter->osdep.intrs[vector], PCI_INTR_MPSAFE, | | 3371 | pci_intr_setattr(pc, &adapter->osdep.intrs[vector], PCI_INTR_MPSAFE, |
3372 | true); | | 3372 | true); |
3373 | #endif | | 3373 | #endif |
3374 | /* Set the mbx handler function */ | | 3374 | /* Set the mbx handler function */ |