diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-09 14:33:44 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-09 14:33:44 +0000 |
commit | 9f6eff7a405c28c295923582577ab823cc135b71 (patch) | |
tree | d3839e847a70d1a92e05b68a2144c3d6f5691181 /sys/netinet | |
parent | 0c41ee73837359ee311aa54d0de3bdcc391a0992 (diff) | |
download | FreeBSD-src-9f6eff7a405c28c295923582577ab823cc135b71.zip FreeBSD-src-9f6eff7a405c28c295923582577ab823cc135b71.tar.gz |
Small modification of the sctp_input() cleanup to avoid having
code between declariations.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_input.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 6098f90..8848b7e 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -6109,7 +6109,7 @@ extern int *sctp_cpuarry; #endif int -sctp_input(struct mbuf **mp, int *offp, int proto) +sctp_input(struct mbuf **mp, int *offp, int proto SCTP_UNUSED) { struct mbuf *m; int off; @@ -6117,13 +6117,13 @@ sctp_input(struct mbuf **mp, int *offp, int proto) m = *mp; off = *offp; #if defined(__FreeBSD__) && defined(SCTP_MCORE_INPUT) && defined(SMP) - struct ip *ip; - struct sctphdr *sh; - int offset; - int cpu_to_use; - uint32_t flowid, tag; - if (mp_ncpus > 1) { + struct ip *ip; + struct sctphdr *sh; + int offset; + int cpu_to_use; + uint32_t flowid, tag; + if (m->m_flags & M_FLOWID) { flowid = m->m_pkthdr.flowid; } else { |