diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-22 08:47:12 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-22 08:47:12 +0000 |
commit | 0bc61cd39b69ff48f8f66c0a1db9645b2a52abbf (patch) | |
tree | 585de69acbbc8911f498a4228e2939d503ab3a33 /sys/dev/pci/if_em.h | |
parent | 81d52fa723f1cc8277fc6e2874936863960f774e (diff) |
Use FOREACH_QUEUE() where nothing else is required to support multi-queues.
Tested by Hrvoje Popovski and jmatthew@, ok jmatthew@
Diffstat (limited to 'sys/dev/pci/if_em.h')
-rw-r--r-- | sys/dev/pci/if_em.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em.h b/sys/dev/pci/if_em.h index 03f8a263c25..ba3e2dad1b6 100644 --- a/sys/dev/pci/if_em.h +++ b/sys/dev/pci/if_em.h @@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /* $FreeBSD: if_em.h,v 1.26 2004/09/01 23:22:41 pdeuskar Exp $ */ -/* $OpenBSD: if_em.h,v 1.76 2020/03/23 15:02:51 mpi Exp $ */ +/* $OpenBSD: if_em.h,v 1.77 2020/04/22 08:47:11 mpi Exp $ */ #ifndef _EM_H_DEFINED_ #define _EM_H_DEFINED_ @@ -367,6 +367,12 @@ struct em_queue { struct timeout rx_refill; }; + +#define FOREACH_QUEUE(_sc, _que) \ + for ((_que) = (_sc)->queues; \ + (_que) < ((_sc)->queues + (_sc)->num_queues); \ + (_que)++) + /* Our adapter structure */ struct em_softc { struct device sc_dev; |