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; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"