Deleted Added
full compact
cxgb_tom.h (174641) cxgb_tom.h (176472)
1
2/**************************************************************************
3
4Copyright (c) 2007, Chelsio Inc.
5All rights reserved.
6
7Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are met:

--- 13 unchanged lines hidden (view full) ---

22CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27POSSIBILITY OF SUCH DAMAGE.
28
29
1
2/**************************************************************************
3
4Copyright (c) 2007, Chelsio Inc.
5All rights reserved.
6
7Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are met:

--- 13 unchanged lines hidden (view full) ---

22CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27POSSIBILITY OF SUCH DAMAGE.
28
29
30$FreeBSD: head/sys/dev/cxgb/ulp/tom/cxgb_tom.h 174641 2007-12-16 05:27:26Z kmacy $
30$FreeBSD: head/sys/dev/cxgb/ulp/tom/cxgb_tom.h 176472 2008-02-23 01:06:17Z kmacy $
31
32***************************************************************************/
33#ifndef CXGB_TOM_H_
34#define CXGB_TOM_H_
35#include <sys/protosw.h>
36
37#define LISTEN_INFO_HASH_SIZE 32
38

--- 94 unchanged lines hidden (view full) ---

133#define TP_ABORT_RPL_RCVD (1 << 5)
134#define TP_ABORT_REQ_RCVD (1 << 6)
135#define TP_CLOSE_CON_REQUESTED (1 << 7)
136#define TP_SYN_RCVD (1 << 8)
137#define TP_ESTABLISHED (1 << 9)
138
139void t3_init_tunables(struct tom_data *t);
140
31
32***************************************************************************/
33#ifndef CXGB_TOM_H_
34#define CXGB_TOM_H_
35#include <sys/protosw.h>
36
37#define LISTEN_INFO_HASH_SIZE 32
38

--- 94 unchanged lines hidden (view full) ---

133#define TP_ABORT_RPL_RCVD (1 << 5)
134#define TP_ABORT_REQ_RCVD (1 << 6)
135#define TP_CLOSE_CON_REQUESTED (1 << 7)
136#define TP_SYN_RCVD (1 << 8)
137#define TP_ESTABLISHED (1 << 9)
138
139void t3_init_tunables(struct tom_data *t);
140
141void t3_sysctl_register(struct adapter *sc, const struct tom_tunables *p);
142
141static __inline struct mbuf *
142m_gethdr_nofail(int len)
143{
144 struct mbuf *m;
145
146 m = m_gethdr(M_NOWAIT, MT_DATA);
147 if (m == NULL) {
148 panic("implement lowmem cache\n");
149 }
150
151 KASSERT(len < MHLEN, ("requested header size too large for mbuf"));
152 m->m_pkthdr.len = m->m_len = len;
153 return (m);
154}
155
156
157#endif
143static __inline struct mbuf *
144m_gethdr_nofail(int len)
145{
146 struct mbuf *m;
147
148 m = m_gethdr(M_NOWAIT, MT_DATA);
149 if (m == NULL) {
150 panic("implement lowmem cache\n");
151 }
152
153 KASSERT(len < MHLEN, ("requested header size too large for mbuf"));
154 m->m_pkthdr.len = m->m_len = len;
155 return (m);
156}
157
158
159#endif