Home
last modified time | relevance | path

Searched refs:rss_table (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c1595 struct mvpp2_rss_table *rss_table = mvpp22_rss_table_get(port->priv, in mvpp22_port_rss_ctx_indir_set() local
1598 if (!rss_table) in mvpp22_port_rss_ctx_indir_set()
1601 memcpy(rss_table->indir, indir, in mvpp22_port_rss_ctx_indir_set()
1602 MVPP22_RSS_TABLE_ENTRIES * sizeof(rss_table->indir[0])); in mvpp22_port_rss_ctx_indir_set()
1604 mvpp22_rss_fill_table(port, rss_table, rss_ctx); in mvpp22_port_rss_ctx_indir_set()
1613 struct mvpp2_rss_table *rss_table = mvpp22_rss_table_get(port->priv, in mvpp22_port_rss_ctx_indir_get() local
1616 if (!rss_table) in mvpp22_port_rss_ctx_indir_get()
1619 memcpy(indir, rss_table->indir, in mvpp22_port_rss_ctx_indir_get()
1620 MVPP22_RSS_TABLE_ENTRIES * sizeof(rss_table->indir[0])); in mvpp22_port_rss_ctx_indir_get()
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c1186 int *rss_table; in enetc_init_port_rss_memory() local
1194 rss_table = kcalloc(num_rss, sizeof(*rss_table), GFP_KERNEL); in enetc_init_port_rss_memory()
1195 if (!rss_table) in enetc_init_port_rss_memory()
1198 err = enetc_set_rss_table(si, rss_table, num_rss); in enetc_init_port_rss_memory()
1200 kfree(rss_table); in enetc_init_port_rss_memory()
Denetc.c1944 int *rss_table; in enetc_setup_default_rss_table() local
1947 rss_table = kmalloc_array(si->num_rss, sizeof(*rss_table), GFP_KERNEL); in enetc_setup_default_rss_table()
1948 if (!rss_table) in enetc_setup_default_rss_table()
1953 rss_table[i] = i % num_groups; in enetc_setup_default_rss_table()
1955 enetc_set_rss_table(si, rss_table, si->num_rss); in enetc_setup_default_rss_table()
1957 kfree(rss_table); in enetc_setup_default_rss_table()
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c522 return ARRAY_SIZE(pdata->rss_table); in xgbe_get_rxfh_indir_size()
532 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) in xgbe_get_rxfh()
533 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], in xgbe_get_rxfh()
Dxgbe-dev.c380 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { in xgbe_write_rss_lookup_table()
383 pdata->rss_table[i]); in xgbe_write_rss_lookup_table()
403 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) in xgbe_set_rss_lookup_table()
404 XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, table[i]); in xgbe_set_rss_lookup_table()
Dxgbe.h1193 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE]; member
Dxgbe-drv.c1319 XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, in xgbe_start()
/linux-6.1.9/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-common.c157 pdata->rss_table[i] = XLGMAC_SET_REG_BITS( in xlgmac_init()
158 pdata->rss_table[i], in xlgmac_init()
Ddwc-xlgmac.h624 u32 rss_table[XLGMAC_RSS_MAX_TABLE_SIZE]; member
Ddwc-xlgmac-hw.c2348 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { in xlgmac_write_rss_lookup_table()
2351 pdata->rss_table[i]); in xlgmac_write_rss_lookup_table()
2372 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { in xlgmac_set_rss_lookup_table()
2374 pdata->rss_table[i] = XLGMAC_SET_REG_BITS( in xlgmac_set_rss_lookup_table()
2375 pdata->rss_table[i], in xlgmac_set_rss_lookup_table()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c4067 if (vnic->rss_table) { in bnxt_free_vnic_attributes()
4069 vnic->rss_table, in bnxt_free_vnic_attributes()
4071 vnic->rss_table = NULL; in bnxt_free_vnic_attributes()
4138 vnic->rss_table = dma_alloc_coherent(&pdev->dev, in bnxt_alloc_vnic_attributes()
4142 if (!vnic->rss_table) { in bnxt_alloc_vnic_attributes()
4147 vnic->rss_hash_key = ((void *)vnic->rss_table) + size; in bnxt_alloc_vnic_attributes()
5263 vnic->rss_table[i] = cpu_to_le16(vnic->fw_grp_ids[j]); in __bnxt_fill_hw_rss_tbl()
5270 __le16 *ring_tbl = vnic->rss_table; in __bnxt_fill_hw_rss_tbl_p5()
Dbnxt.h1055 __le16 *rss_table; member