Date: Sat, 9 Aug 2014 14:33:44 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269753 - head/sys/netinet Message-ID: <53e63148.291d.71cb6cd3@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e63148.291d.71cb6cd3>