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/mlx5: fix L4 integrity translation
[dpdk.git]
/
drivers
/
net
/
mlx5
/
windows
/
mlx5_ethdev_os.c
diff --git
a/drivers/net/mlx5/windows/mlx5_ethdev_os.c
b/drivers/net/mlx5/windows/mlx5_ethdev_os.c
index
f4ec855
..
c709dd1
100644
(file)
--- a/
drivers/net/mlx5/windows/mlx5_ethdev_os.c
+++ b/
drivers/net/mlx5/windows/mlx5_ethdev_os.c
@@
-5,7
+5,7
@@
#include <rte_errno.h>
#include <rte_ether.h>
#include <rte_errno.h>
#include <rte_ether.h>
-#include <
rte_
ethdev_driver.h>
+#include <ethdev_driver.h>
#include <rte_interrupts.h>
#include <mlx5_glue.h>
#include <rte_interrupts.h>
#include <mlx5_glue.h>
@@
-56,7
+56,7
@@
mlx5_get_mac(struct rte_eth_dev *dev, uint8_t (*mac)[RTE_ETHER_ADDR_LEN])
* 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_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[
IF
_NAMESIZE])
+mlx5_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[
MLX5
_NAMESIZE])
{
struct mlx5_priv *priv;
mlx5_context_st *context_obj;
{
struct mlx5_priv *priv;
mlx5_context_st *context_obj;
@@
-67,7
+67,7
@@
mlx5_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[IF_NAMESIZE])
}
priv = dev->data->dev_private;
context_obj = (mlx5_context_st *)priv->sh->ctx;
}
priv = dev->data->dev_private;
context_obj = (mlx5_context_st *)priv->sh->ctx;
- strncpy(*ifname, context_obj->mlx5_dev.name,
IF
_NAMESIZE);
+ strncpy(*ifname, context_obj->mlx5_dev.name,
MLX5
_NAMESIZE);
return 0;
}
return 0;
}
@@
-254,7
+254,7
@@
mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
}
priv = dev->data->dev_private;
context_obj = (mlx5_context_st *)priv->sh->ctx;
}
priv = dev->data->dev_private;
context_obj = (mlx5_context_st *)priv->sh->ctx;
- dev_link.link_speed = context_obj->mlx5_dev.link_speed / (10
24 * 1024
);
+ dev_link.link_speed = context_obj->mlx5_dev.link_speed / (10
00 * 1000
);
dev_link.link_status =
(context_obj->mlx5_dev.link_state == 1 && !mlx5_is_removed(dev))
? 1 : 0;
dev_link.link_status =
(context_obj->mlx5_dev.link_state == 1 && !mlx5_is_removed(dev))
? 1 : 0;