Lines Matching refs:rss_map

1198 	struct mlx4_en_rss_map *rss_map = &priv->rss_map;  in mlx4_en_config_rss_steer()  local
1215 &rss_map->base_qpn, flags, in mlx4_en_config_rss_steer()
1223 qpn = rss_map->base_qpn + i; in mlx4_en_config_rss_steer()
1225 &rss_map->state[i], in mlx4_en_config_rss_steer()
1226 &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1234 rss_map->indir_qp = &rss_map->qps[0]; in mlx4_en_config_rss_steer()
1235 priv->base_qpn = rss_map->indir_qp->qpn; in mlx4_en_config_rss_steer()
1240 rss_map->indir_qp = kzalloc(sizeof(*rss_map->indir_qp), GFP_KERNEL); in mlx4_en_config_rss_steer()
1241 if (!rss_map->indir_qp) { in mlx4_en_config_rss_steer()
1247 err = mlx4_qp_alloc(mdev->dev, priv->base_qpn, rss_map->indir_qp); in mlx4_en_config_rss_steer()
1253 rss_map->indir_qp->event = mlx4_en_sqp_event; in mlx4_en_config_rss_steer()
1266 (rss_map->base_qpn)); in mlx4_en_config_rss_steer()
1267 rss_context->default_qpn = cpu_to_be32(rss_map->base_qpn); in mlx4_en_config_rss_steer()
1293 rss_map->indir_qp, &rss_map->indir_state); in mlx4_en_config_rss_steer()
1300 mlx4_qp_modify(mdev->dev, NULL, rss_map->indir_state, in mlx4_en_config_rss_steer()
1301 MLX4_QP_STATE_RST, NULL, 0, 0, rss_map->indir_qp); in mlx4_en_config_rss_steer()
1302 mlx4_qp_remove(mdev->dev, rss_map->indir_qp); in mlx4_en_config_rss_steer()
1303 mlx4_qp_free(mdev->dev, rss_map->indir_qp); in mlx4_en_config_rss_steer()
1305 kfree(rss_map->indir_qp); in mlx4_en_config_rss_steer()
1306 rss_map->indir_qp = NULL; in mlx4_en_config_rss_steer()
1309 mlx4_qp_modify(mdev->dev, NULL, rss_map->state[i], in mlx4_en_config_rss_steer()
1310 MLX4_QP_STATE_RST, NULL, 0, 0, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1311 mlx4_qp_remove(mdev->dev, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1312 mlx4_qp_free(mdev->dev, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1314 mlx4_qp_release_range(mdev->dev, rss_map->base_qpn, priv->rx_ring_num); in mlx4_en_config_rss_steer()
1321 struct mlx4_en_rss_map *rss_map = &priv->rss_map; in mlx4_en_release_rss_steer() local
1325 mlx4_qp_modify(mdev->dev, NULL, rss_map->indir_state, in mlx4_en_release_rss_steer()
1327 rss_map->indir_qp); in mlx4_en_release_rss_steer()
1328 mlx4_qp_remove(mdev->dev, rss_map->indir_qp); in mlx4_en_release_rss_steer()
1329 mlx4_qp_free(mdev->dev, rss_map->indir_qp); in mlx4_en_release_rss_steer()
1330 kfree(rss_map->indir_qp); in mlx4_en_release_rss_steer()
1331 rss_map->indir_qp = NULL; in mlx4_en_release_rss_steer()
1335 mlx4_qp_modify(mdev->dev, NULL, rss_map->state[i], in mlx4_en_release_rss_steer()
1336 MLX4_QP_STATE_RST, NULL, 0, 0, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
1337 mlx4_qp_remove(mdev->dev, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
1338 mlx4_qp_free(mdev->dev, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
1340 mlx4_qp_release_range(mdev->dev, rss_map->base_qpn, priv->rx_ring_num); in mlx4_en_release_rss_steer()