git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: support SVE Rx
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_ethdev.c
diff --git
a/drivers/net/mlx5/mlx5_ethdev.c
b/drivers/net/mlx5/mlx5_ethdev.c
index
cefb450
..
7631f64
100644
(file)
--- a/
drivers/net/mlx5/mlx5_ethdev.c
+++ b/
drivers/net/mlx5/mlx5_ethdev.c
@@
-43,7
+43,7
@@
mlx5_ifindex(const struct rte_eth_dev *dev)
MLX5_ASSERT(priv);
MLX5_ASSERT(priv->if_index);
MLX5_ASSERT(priv);
MLX5_ASSERT(priv->if_index);
- ifindex = priv->if_index;
+ ifindex = priv->
bond_ifindex > 0 ? priv->bond_ifindex : priv->
if_index;
if (!ifindex)
rte_errno = ENXIO;
return ifindex;
if (!ifindex)
rte_errno = ENXIO;
return ifindex;
@@
-569,12
+569,12
@@
mlx5_dev_to_eswitch_info(struct rte_eth_dev *dev)
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
* 0 on success, a negative errno value otherwise and rte_errno is set.
*/
int
-mlx5_hairpin_cap_get(struct rte_eth_dev *dev,
- struct rte_eth_hairpin_cap *cap)
+mlx5_hairpin_cap_get(struct rte_eth_dev *dev, struct rte_eth_hairpin_cap *cap)
{
struct mlx5_priv *priv = dev->data->dev_private;
{
struct mlx5_priv *priv = dev->data->dev_private;
+ struct mlx5_dev_config *config = &priv->config;
- if (
priv->sh->devx == 0
) {
+ if (
!priv->sh->devx || !config->dest_tir || !config->dv_flow_en
) {
rte_errno = ENOTSUP;
return -rte_errno;
}
rte_errno = ENOTSUP;
return -rte_errno;
}