[v3,3/4] net/mlx5: remove POSIX dependency
Checks
Commit Message
Use <rte_ip.h> for IP-related defines instead of POSIX headers.
Keep <sys/queue.h>, because it is incorporated into DPDK.
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
---
drivers/net/mlx5/mlx5.h | 2 +-
drivers/net/mlx5/mlx5_flow.c | 4 ++--
drivers/net/mlx5/mlx5_flow.h | 4 ++--
drivers/net/mlx5/mlx5_mac.c | 1 -
4 files changed, 5 insertions(+), 6 deletions(-)
Comments
On Sun, Mar 14, 2021 at 01:22:15AM +0300, Dmitry Kozlyuk wrote:
> Use <rte_ip.h> for IP-related defines instead of POSIX headers.
> Keep <sys/queue.h>, because it is incorporated into DPDK.
>
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
@@ -10,7 +10,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <limits.h>
-#include <netinet/in.h>
+
#include <sys/queue.h>
#include <rte_pci.h>
@@ -3,13 +3,13 @@
* Copyright 2016 Mellanox Technologies, Ltd
*/
-#include <netinet/in.h>
-#include <sys/queue.h>
#include <stdalign.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
+#include <sys/queue.h>
+
#include <rte_common.h>
#include <rte_ether.h>
#include <ethdev_driver.h>
@@ -5,12 +5,12 @@
#ifndef RTE_PMD_MLX5_FLOW_H_
#define RTE_PMD_MLX5_FLOW_H_
-#include <netinet/in.h>
-#include <sys/queue.h>
#include <stdalign.h>
#include <stdint.h>
#include <string.h>
+#include <sys/queue.h>
+
#include <rte_alarm.h>
#include <rte_mtr.h>
@@ -8,7 +8,6 @@
#include <string.h>
#include <inttypes.h>
#include <errno.h>
-#include <netinet/in.h>
#include <rte_ether.h>
#include <ethdev_driver.h>