Date: Mon, 11 Jan 2016 11:19:30 -0800 From: Adrian Chadd <adrian.chadd@gmail.com> To: Navdeep Parhar <np@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r293674 - head/sys/dev/cxgbe Message-ID: <CAJ-VmonPaHEi1bgTqftMNQsv=ThYLReZUXpo%2BLi2dYpy5QS5Gw@mail.gmail.com> In-Reply-To: <201601111752.u0BHqgCE038958@repo.freebsd.org> References: <201601111752.u0BHqgCE038958@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
wooo, thanks! -a On 11 January 2016 at 09:52, Navdeep Parhar <np@freebsd.org> wrote: > Author: np > Date: Mon Jan 11 17:52:42 2016 > New Revision: 293674 > URL: https://svnweb.freebsd.org/changeset/base/293674 > > Log: > cxgbe: bind the ithreads that handle NIC rx to the correct CPU if the kernel > is built with option RSS. > > Modified: > head/sys/dev/cxgbe/t4_main.c > > Modified: head/sys/dev/cxgbe/t4_main.c > ============================================================================== > --- head/sys/dev/cxgbe/t4_main.c Mon Jan 11 17:33:51 2016 (r293673) > +++ head/sys/dev/cxgbe/t4_main.c Mon Jan 11 17:52:42 2016 (r293674) > @@ -3642,6 +3642,9 @@ setup_intr_handlers(struct adapter *sc) > #ifdef DEV_NETMAP > struct sge_nm_rxq *nm_rxq; > #endif > +#ifdef RSS > + int nbuckets = rss_getnumbuckets(); > +#endif > > /* > * Setup interrupts. > @@ -3700,6 +3703,10 @@ setup_intr_handlers(struct adapter *sc) > t4_intr, rxq, s); > if (rc != 0) > return (rc); > +#ifdef RSS > + bus_bind_intr(sc->dev, irq->res, > + rss_getcpu(q % nbuckets)); > +#endif > irq++; > rid++; > vi->nintr++; >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonPaHEi1bgTqftMNQsv=ThYLReZUXpo%2BLi2dYpy5QS5Gw>