netisr.h (204208) | netisr.h (204498) |
---|---|
1/*- 2 * Copyright (c) 2007-2009 Robert N. M. Watson 3 * Copyright (c) 2010 Juniper Networks, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert N. M. Watson under contract 7 * to Juniper Networks, Inc. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2007-2009 Robert N. M. Watson 3 * Copyright (c) 2010 Juniper Networks, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert N. M. Watson under contract 7 * to Juniper Networks, Inc. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/net/netisr.h 204208 2010-02-22 16:16:16Z rwatson $ | 30 * $FreeBSD: head/sys/net/netisr.h 204498 2010-03-01 00:43:05Z rwatson $ |
31 */ 32 33#ifndef _NET_NETISR_H_ 34#define _NET_NETISR_H_ 35 36/* 37 * The netisr (network interrupt service routine) provides a deferred 38 * execution evironment in which (generally inbound) network processing can --- 123 unchanged lines hidden (view full) --- 162 * calculate a flow. Both protocol handlers may return a new mbuf pointer 163 * for the chain, or NULL if the packet proves invalid or m_pullup() fails. 164 * 165 * XXXRW: If we eventually support dynamic reconfiguration, there should be 166 * protocol handlers to notify them of CPU configuration changes so that they 167 * can rebalance work. 168 */ 169struct mbuf; | 31 */ 32 33#ifndef _NET_NETISR_H_ 34#define _NET_NETISR_H_ 35 36/* 37 * The netisr (network interrupt service routine) provides a deferred 38 * execution evironment in which (generally inbound) network processing can --- 123 unchanged lines hidden (view full) --- 162 * calculate a flow. Both protocol handlers may return a new mbuf pointer 163 * for the chain, or NULL if the packet proves invalid or m_pullup() fails. 164 * 165 * XXXRW: If we eventually support dynamic reconfiguration, there should be 166 * protocol handlers to notify them of CPU configuration changes so that they 167 * can rebalance work. 168 */ 169struct mbuf; |
170typedef void netisr_handler_t (struct mbuf *m); | 170typedef void netisr_handler_t(struct mbuf *m); |
171typedef struct mbuf *netisr_m2cpuid_t(struct mbuf *m, uintptr_t source, 172 u_int *cpuid); 173typedef struct mbuf *netisr_m2flow_t(struct mbuf *m, uintptr_t source); 174typedef void netisr_drainedcpu_t(u_int cpuid); 175 176/* 177 * Data structure describing a protocol handler. 178 */ --- 56 unchanged lines hidden --- | 171typedef struct mbuf *netisr_m2cpuid_t(struct mbuf *m, uintptr_t source, 172 u_int *cpuid); 173typedef struct mbuf *netisr_m2flow_t(struct mbuf *m, uintptr_t source); 174typedef void netisr_drainedcpu_t(u_int cpuid); 175 176/* 177 * Data structure describing a protocol handler. 178 */ --- 56 unchanged lines hidden --- |