svn commit: r269753 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Aug 9 14:33:45 UTC 2014
Author: tuexen
Date: Sat Aug 9 14:33:44 2014
New Revision: 269753
URL: http://svnweb.freebsd.org/changeset/base/269753
Log:
Small modification of the sctp_input() cleanup to avoid having
code between declariations.
Modified:
head/sys/netinet/sctp_input.c
Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c Sat Aug 9 14:05:01 2014 (r269752)
+++ head/sys/netinet/sctp_input.c Sat Aug 9 14:33:44 2014 (r269753)
@@ -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,
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 {
More information about the svn-src-all
mailing list