Lines Matching refs:profile

128 		if (priv->profile->update_carrier)
129 priv->profile->update_carrier(priv);
139 priv->profile->update_stats(priv);
145 if (!priv->profile->update_stats)
1365 const struct mlx5e_profile *profile,
1368 if (profile->get_tisn)
1369 return profile->get_tisn(mdev, priv, lag_port, tc);
2002 csp.tisn = mlx5e_profile_get_tisn(c->mdev, c->priv, c->priv->profile,
2326 tisn = mlx5e_profile_get_tisn(c->mdev, c->priv, c->priv->profile,
3243 priv->profile->update_rx(priv);
3339 err = priv->profile->update_rx(priv);
3346 if (priv->profile->update_carrier)
3347 priv->profile->update_carrier(priv);
4631 if (!mlx5e_profile_feature_cap(priv->profile, PTP_RX))
5481 fs = mlx5e_fs_init(priv->profile, mdev,
5498 /* If netdev is already registered (e.g. move from uplink to nic profile),
5552 err = mlx5e_create_flow_steering(priv->fs, priv->rx_res, priv->profile,
5577 priv->profile);
5593 priv->profile);
5733 const struct mlx5e_profile *profile)
5739 if (profile->max_nch_limit)
5740 nch = min_t(int, nch, profile->max_nch_limit(mdev));
5746 const struct mlx5e_profile *profile)
5752 max_nch = mlx5e_profile_max_num_channels(mdev, profile);
5762 tmp -= profile->max_tc;
5763 tmp = tmp / profile->max_tc;
5788 const struct mlx5e_profile *profile,
5796 nch = mlx5e_calc_max_nch(mdev, netdev, profile);
5855 /* bail if change profile failed and also rollback failed */
5876 const struct mlx5e_profile *profile)
5880 nch = mlx5e_profile_max_num_channels(mdev, profile);
5883 mlx5e_profile_feature_cap(profile, PTP_TX) ?
5884 profile->max_tc : 0;
5887 mlx5e_profile_feature_cap(profile, QOS_HTB) ?
5890 return nch * profile->max_tc + ptp_txqs + qos_txqs;
5894 const struct mlx5e_profile *profile)
5896 return mlx5e_profile_max_num_channels(mdev, profile);
5900 mlx5e_create_netdev(struct mlx5_core_dev *mdev, const struct mlx5e_profile *profile)
5906 txqs = mlx5e_get_max_num_txqs(mdev, profile);
5907 rxqs = mlx5e_get_max_num_rxqs(mdev, profile);
5915 err = mlx5e_priv_init(netdev_priv(netdev), profile, netdev, mdev);
5951 const struct mlx5e_profile *profile = priv->profile;
5968 max_nch = mlx5e_calc_max_nch(priv->mdev, priv->netdev, profile);
6004 err = profile->init_tx(priv);
6008 err = profile->init_rx(priv);
6012 if (profile->enable)
6013 profile->enable(priv);
6020 profile->cleanup_tx(priv);
6034 const struct mlx5e_profile *profile = priv->profile;
6041 if (profile->disable)
6042 profile->disable(priv);
6045 profile->cleanup_rx(priv);
6046 profile->cleanup_tx(priv);
6064 priv->profile = new_profile;
6102 const struct mlx5e_profile *orig_profile = priv->profile;
6108 /* cleanup old profile */
6110 priv->profile->cleanup(priv);
6120 if (err) { /* roll back to original profile */
6121 netdev_warn(netdev, "%s: new profile init failed, %d\n", __func__, err);
6130 netdev_err(netdev, "%s: failed to rollback to orig profile, %d\n",
6238 const struct mlx5e_profile *profile = &mlx5e_nic_profile;
6256 netdev = mlx5e_create_netdev(mdev, profile);
6269 priv->profile = profile;
6272 err = profile->init(mdev, netdev);
6298 profile->cleanup(priv);
6337 priv->profile->cleanup(priv);