Re: [PATCH net-next v3 6/8] bnxt_en: Implement ethtool -X to set indirection table.

2020-07-06 Thread Michael Chan
On Mon, Jul 6, 2020 at 11:52 AM Jakub Kicinski wrote: > Maybe let me just type out what I had in mind: > > unsigned int bnxt_max_rss_ring(bp) > { > int i, tbl_size, max_ring; > > if (!bp->rss_indir_tbl) > return 0; > > max_ring = 0; > tbl_size = bnxt

Re: [PATCH net-next v3 6/8] bnxt_en: Implement ethtool -X to set indirection table.

2020-07-06 Thread Jakub Kicinski
On Sun, 5 Jul 2020 18:22:10 -0400 Michael Chan wrote: > + /* Reset the RSS indir table if we cannot reserve all the RX rings */ > + if (rx_rings != bp->rx_nr_rings) { > + netdev_warn(bp->dev, "Able to reserve only %d out of %d > requested RX rings\n", > +

[PATCH net-next v3 6/8] bnxt_en: Implement ethtool -X to set indirection table.

2020-07-05 Thread Michael Chan
With the new infrastructure in place, we can now support the setting of the indirection table from ethtool. When changing channels, in a rare case that firmware cannot reserve the rings that were promised, the RSS map will revert to default. v3: Add warning messages when firmware cannot reserve t