FreeBSD/sys/dev/cxgbe/common/t4_hw.c
/**
 *	t4_read_rss - read the contents of the RSS mapping table
 *	@adapter: the adapter
 *	@map: holds the contents of the RSS mapping table
 *
 *	Reads the contents of the RSS hash->queue mapping table.
 */
read the contents of the RSS mapping table
@adapter: the adapter
@map: holds the contents of the RSS mapping table

Reads the contents of the RSS hash->queue mapping table.
read the contents of the RSS mapping table @adapter : the adapter @map : holds the contents of the RSS mapping table Reads the contents of the RSS hash - > queue mapping table .
int t4_read_rss(struct adapter *adapter, u16 *map)
{
	u32 val;
	int i, ret;
	for (i = 0; i < RSS_NENTRIES / 2; ++i) {
		ret = rd_rss_row(adapter, i, &val);
		if (ret)
			return ret;
		*map++ = G_LKPTBLQUEUE0(val);
		*map++ = G_LKPTBLQUEUE1(val);
	}
	return 0;
}
int t4_read_rss ( struct adapter * adapter , u16 * map ) { u32 val ; int i , ret ; for ( i = 0 ; i < RSS_NENTRIES / 2 ; ++ i ) { ret = rd_rss_row ( adapter , i , & val ) ; if ( ret ) return ret ; * map ++ = G_LKPTBLQUEUE0 ( val ) ; * map ++ = G_LKPTBLQUEUE1 ( val ) ; } return 0 ; }
t4_read_rss - read the contents of the RSS mapping table
      @adapter: the adapter
      @map: holds the contents of the RSS mapping table
t4_read_rss - read the contents of the RSS mapping table @adapter : the adapter @map : holds the contents of the RSS mapping table