Date: Mon, 6 Jun 2016 09:07:26 +0000 (UTC) From: Andrew Rybchenko <arybchik@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301493 - head/sys/dev/sfxge Message-ID: <201606060907.u5697QjB046938@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arybchik Date: Mon Jun 6 09:07:26 2016 New Revision: 301493 URL: https://svnweb.freebsd.org/changeset/base/301493 Log: sfxge(4): set up the indirection table using the kernel-driven RSS bucket ids Submitted by: Ivan Malov <Ivan.Malov at oktetlabs.ru> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D6722 Modified: head/sys/dev/sfxge/sfxge_rx.c Modified: head/sys/dev/sfxge/sfxge_rx.c ============================================================================== --- head/sys/dev/sfxge/sfxge_rx.c Mon Jun 6 09:06:38 2016 (r301492) +++ head/sys/dev/sfxge/sfxge_rx.c Mon Jun 6 09:07:26 2016 (r301493) @@ -1129,7 +1129,12 @@ sfxge_rx_start(struct sfxge_softc *sc) * Set up the scale table. Enable all hash types and hash insertion. */ for (index = 0; index < SFXGE_RX_SCALE_MAX; index++) +#ifdef RSS + sc->rx_indir_table[index] = + rss_get_indirection_to_bucket(index) % sc->rxq_count; +#else sc->rx_indir_table[index] = index % sc->rxq_count; +#endif if ((rc = efx_rx_scale_tbl_set(sc->enp, sc->rx_indir_table, SFXGE_RX_SCALE_MAX)) != 0) goto fail;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606060907.u5697QjB046938>