if_vtnetvar.h (265286) | if_vtnetvar.h (268010) |
---|---|
1/*- 2 * Copyright (c) 2011, Bryan Venteicher <bryanv@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2011, Bryan Venteicher <bryanv@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/sys/dev/virtio/network/if_vtnetvar.h 265286 2014-05-03 19:40:41Z bryanv $ | 26 * $FreeBSD: stable/10/sys/dev/virtio/network/if_vtnetvar.h 268010 2014-06-29 00:37:59Z bryanv $ |
27 */ 28 29#ifndef _IF_VTNETVAR_H 30#define _IF_VTNETVAR_H 31 32struct vtnet_softc; 33 34struct vtnet_statistics { --- 34 unchanged lines hidden (view full) --- 69}; 70 71struct vtnet_rxq { 72 struct mtx vtnrx_mtx; 73 struct vtnet_softc *vtnrx_sc; 74 struct virtqueue *vtnrx_vq; 75 struct sglist *vtnrx_sg; 76 int vtnrx_id; | 27 */ 28 29#ifndef _IF_VTNETVAR_H 30#define _IF_VTNETVAR_H 31 32struct vtnet_softc; 33 34struct vtnet_statistics { --- 34 unchanged lines hidden (view full) --- 69}; 70 71struct vtnet_rxq { 72 struct mtx vtnrx_mtx; 73 struct vtnet_softc *vtnrx_sc; 74 struct virtqueue *vtnrx_vq; 75 struct sglist *vtnrx_sg; 76 int vtnrx_id; |
77 int vtnrx_process_limit; | |
78 struct vtnet_rxq_stats vtnrx_stats; 79 struct taskqueue *vtnrx_tq; 80 struct task vtnrx_intrtask; 81 char vtnrx_name[16]; 82} __aligned(CACHE_LINE_SIZE); 83 84#define VTNET_RXQ_LOCK(_rxq) mtx_lock(&(_rxq)->vtnrx_mtx) 85#define VTNET_RXQ_UNLOCK(_rxq) mtx_unlock(&(_rxq)->vtnrx_mtx) --- 264 unchanged lines hidden --- | 77 struct vtnet_rxq_stats vtnrx_stats; 78 struct taskqueue *vtnrx_tq; 79 struct task vtnrx_intrtask; 80 char vtnrx_name[16]; 81} __aligned(CACHE_LINE_SIZE); 82 83#define VTNET_RXQ_LOCK(_rxq) mtx_lock(&(_rxq)->vtnrx_mtx) 84#define VTNET_RXQ_UNLOCK(_rxq) mtx_unlock(&(_rxq)->vtnrx_mtx) --- 264 unchanged lines hidden --- |