diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2007-05-29 14:17:47 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2007-05-29 14:17:47 +0000 |
commit | 3c6f35363034720fb16505d13b748ecc1c5e7e93 (patch) | |
tree | bda3c1b843c9dcad5f2bd68d77041d89148c477b /sys/netinet | |
parent | 995c7fd1bf57d48a40605c36ffaacfb048d677eb (diff) | |
download | src-3c6f35363034720fb16505d13b748ecc1c5e7e93.tar.gz src-3c6f35363034720fb16505d13b748ecc1c5e7e93.zip |
Adds gcc attribute to prevent inlining of a function. If
it goes inline we may well blow the stack if witness and
such are enabled.
Notes
Notes:
svn path=/head/; revision=170099
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_input.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 935a90de622a..bf4b292a35fb 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -3435,11 +3435,14 @@ sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp, * cookie-echo processing - return NULL to discard the packet (ie. no asoc, * bad packet,...) otherwise return the tcb for this packet */ -static struct sctp_tcb * -sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, - struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, - struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, - uint32_t vrf_id, uint32_t table_id) +#ifdef __GNUC__ +__attribute__((noinline)) +#endif + static struct sctp_tcb * + sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, + struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, + struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, + uint32_t vrf_id, uint32_t table_id) { struct sctp_association *asoc; uint32_t vtag_in; |