/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | rx_res.c | 306 struct mlx5e_rx_res *rx_res; in mlx5e_rx_res_alloc() local 308 rx_res = kvzalloc(sizeof(*rx_res), GFP_KERNEL); in mlx5e_rx_res_alloc() 309 if (!rx_res) in mlx5e_rx_res_alloc() 312 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc() 313 if (!rx_res->rss_rqns) { in mlx5e_rx_res_alloc() 314 kvfree(rx_res); in mlx5e_rx_res_alloc() 319 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc() 320 if (!rx_res->rss_vhca_ids) { in mlx5e_rx_res_alloc() 321 kvfree(rx_res->rss_rqns); in mlx5e_rx_res_alloc() 322 kvfree(rx_res); in mlx5e_rx_res_alloc() [all …]
|
H A D | fs.h | 101 struct mlx5e_rx_res *rx_res, bool ntuple); 109 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 128 struct mlx5e_rx_res *rx_res, 133 struct mlx5e_rx_res *rx_res); 141 struct mlx5e_rx_res *rx_res,
|
H A D | ptp.c | 808 u32 tirn = mlx5e_rx_res_get_tirn_ptp(priv->rx_res); in mlx5e_ptp_rx_set_fs()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib.c | 374 err = mlx5e_arfs_create_tables(priv->fs, priv->rx_res, in mlx5i_create_flow_steering() 382 err = mlx5e_create_ttc_table(priv->fs, priv->rx_res); in mlx5i_create_flow_steering() 427 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5i_init_rx() 430 if (IS_ERR(priv->rx_res)) { in mlx5i_init_rx() 431 err = PTR_ERR(priv->rx_res); in mlx5i_init_rx() 442 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_init_rx() 443 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_init_rx() 455 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_cleanup_rx() 456 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_cleanup_rx()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 892 struct mlx5e_rx_res *rx_res, in mlx5e_set_inner_ttc_params() argument 907 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_inner_ttc_params() 908 mlx5e_rx_res_get_tirn_rss_inner(rx_res, in mlx5e_set_inner_ttc_params() 914 struct mlx5e_rx_res *rx_res, in mlx5e_set_ttc_params() argument 930 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_ttc_params() 931 mlx5e_rx_res_get_tirn_rss(rx_res, tt); in mlx5e_set_ttc_params() 1274 struct mlx5e_rx_res *rx_res) in mlx5e_create_inner_ttc_table() argument 1281 mlx5e_set_inner_ttc_params(fs, rx_res, &ttc_params); in mlx5e_create_inner_ttc_table() 1288 struct mlx5e_rx_res *rx_res) in mlx5e_create_ttc_table() argument 1292 mlx5e_set_ttc_params(fs, rx_res, &ttc_params, true); in mlx5e_create_ttc_table() [all …]
|
H A D | en_arfs.c | 215 struct mlx5e_rx_res *rx_res, in arfs_add_default_rule() argument 235 dest.tir_num = mlx5e_rx_res_get_tirn_rss(rx_res, tt); in arfs_add_default_rule() 349 struct mlx5e_rx_res *rx_res, in arfs_create_table() argument 375 err = arfs_add_default_rule(fs, rx_res, type); in arfs_create_table() 386 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 407 err = arfs_create_table(fs, rx_res, i); in mlx5e_arfs_create_tables() 597 dest.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, arfs_rule->rxq); in arfs_add_rule() 620 dst.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, rxq); in arfs_modify_rule_rq()
|
H A D | en_rep.c | 967 mlx5e_set_ttc_params(priv->fs, priv->rx_res, &ttc_params, false); in mlx5e_create_rep_ttc_table() 1078 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx() 1081 if (IS_ERR(priv->rx_res)) { in mlx5e_init_rep_rx() 1082 err = PTR_ERR(priv->rx_res); in mlx5e_init_rep_rx() 1108 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_init_rep_rx() 1109 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_init_rep_rx() 1124 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_cleanup_rep_rx() 1125 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_cleanup_rep_rx()
|
H A D | en_fs_ethtool.c | 434 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn() 450 *tirn = mlx5e_rx_res_get_tirn_direct(priv->rx_res, fs->ring_cookie); in flow_get_tirn() 809 index = mlx5e_rx_res_rss_index(priv->rx_res, eth_rule->rss); in mlx5e_ethtool_get_flow() 936 err = mlx5e_rx_res_rss_set_hash_fields(priv->rx_res, rss_idx, tt, rx_hash_field); in mlx5e_set_rss_hash_opt() 958 hash_field = mlx5e_rx_res_rss_get_hash_fields(priv->rx_res, rss_idx, tt); in mlx5e_get_rss_hash_opt()
|
H A D | en_main.c | 2907 struct mlx5e_rx_res *res = priv->rx_res; in mlx5e_modify_tirs_packet_merge() 3116 if (priv->rx_res) { in mlx5e_num_channels_changed() 3117 mlx5e_rx_res_rss_update_num_channels(priv->rx_res, count); in mlx5e_num_channels_changed() 3120 mlx5e_rx_res_rss_set_indir_uniform(priv->rx_res, count); in mlx5e_num_channels_changed() 3186 if (priv->rx_res) in mlx5e_activate_priv_channels() 3187 mlx5e_rx_res_channels_activate(priv->rx_res, &priv->channels); in mlx5e_activate_priv_channels() 3199 if (priv->rx_res) in mlx5e_deactivate_priv_channels() 3200 mlx5e_rx_res_channels_deactivate(priv->rx_res); in mlx5e_deactivate_priv_channels() 5706 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx() 5709 if (IS_ERR(priv->rx_res)) { in mlx5e_init_nic_rx() [all …]
|
H A D | en_ethtool.c | 460 if (mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc == ETH_RSS_HASH_XOR) { in mlx5e_ethtool_set_channels() 1461 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, in mlx5e_get_rxfh() 1492 err = mlx5e_rx_res_rss_destroy(priv->rx_res, *rss_context); in mlx5e_set_rxfh() 1497 err = mlx5e_rx_res_rss_init(priv->rx_res, rss_context, count); in mlx5e_set_rxfh() 1502 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, *rss_context, in mlx5e_set_rxfh()
|
H A D | Makefile | 25 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \
|
H A D | en.h | 882 struct mlx5e_rx_res *rx_res; member
|
H A D | en_tc.c | 770 mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc, in mlx5e_hairpin_create_indirect_rqt() 789 rss_hash = mlx5e_rx_res_get_current_hash(priv->rx_res); in mlx5e_hairpin_create_indirect_tirs()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc.c | 1909 struct enetc_bdr_resource *rx_res; in enetc_alloc_rx_resources() local 1912 rx_res = kcalloc(priv->num_rx_rings, sizeof(*rx_res), GFP_KERNEL); in enetc_alloc_rx_resources() 1913 if (!rx_res) in enetc_alloc_rx_resources() 1919 err = enetc_alloc_rx_resource(&rx_res[i], rx_ring->dev, in enetc_alloc_rx_resources() 1925 return rx_res; in enetc_alloc_rx_resources() 1929 enetc_free_rx_resource(&rx_res[i]); in enetc_alloc_rx_resources() 1931 kfree(rx_res); in enetc_alloc_rx_resources() 1936 static void enetc_free_rx_resources(const struct enetc_bdr_resource *rx_res, in enetc_free_rx_resources() argument 1942 enetc_free_rx_resource(&rx_res[i]); in enetc_free_rx_resources() 1944 kfree(rx_res); in enetc_free_rx_resources() [all …]
|
H A D | enetc.h | 368 const struct enetc_bdr_resource *rx_res; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
H A D | pool.c | 136 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, true); in mlx5e_xsk_enable_locked() 185 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, false); in mlx5e_xsk_disable_locked()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rx.c | 295 struct iwl_rx_mpdu_res_start *rx_res; in iwl_mvm_rx_rx_mpdu() local 303 if (unlikely(pkt_len < sizeof(*rx_res))) { in iwl_mvm_rx_rx_mpdu() 309 rx_res = (struct iwl_rx_mpdu_res_start *)pkt->data; in iwl_mvm_rx_rx_mpdu() 310 hdr = (struct ieee80211_hdr *)(pkt->data + sizeof(*rx_res)); in iwl_mvm_rx_rx_mpdu() 311 len = le16_to_cpu(rx_res->byte_count); in iwl_mvm_rx_rx_mpdu() 313 if (unlikely(len + sizeof(*rx_res) + sizeof(__le32) > pkt_len)) { in iwl_mvm_rx_rx_mpdu() 319 (pkt->data + sizeof(*rx_res) + len)); in iwl_mvm_rx_rx_mpdu()
|
/linux/sound/soc/fsl/ |
H A D | fsl_xcvr.c | 1307 struct resource *rx_res, *tx_res; in fsl_xcvr_probe() local 1378 rx_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rxfifo"); in fsl_xcvr_probe() 1380 if (!rx_res || !tx_res) { in fsl_xcvr_probe() 1386 xcvr->dma_prms_rx.addr = rx_res->start; in fsl_xcvr_probe()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls_rx.c | 656 err = mlx5e_rx_res_tls_tir_create(priv->rx_res, rxq, &priv_rx->tir); in mlx5e_ktls_add_rx()
|