net/mlx5: support single flow dump
[dpdk.git] / drivers / net / mlx5 / linux / mlx5_os.h
index 31add39..4ae7d0e 100644 (file)
@@ -6,12 +6,19 @@
 #ifndef RTE_PMD_MLX5_OS_H_
 #define RTE_PMD_MLX5_OS_H_
 
+#include <net/if.h>
+
 /* verb enumerations translations to local enums. */
 enum {
-       DEV_SYSFS_NAME_MAX = IBV_SYSFS_NAME_MAX + 1,
-       DEV_SYSFS_PATH_MAX = IBV_SYSFS_PATH_MAX + 1
+       MLX5_FS_NAME_MAX = IBV_SYSFS_NAME_MAX + 1,
+       MLX5_FS_PATH_MAX = IBV_SYSFS_PATH_MAX + 1
 };
 
+/* Maximal data of sendmsg message(in bytes). */
+#define MLX5_SENDMSG_MAX 64
+
+#define MLX5_NAMESIZE IF_NAMESIZE
+
 #define PCI_DRV_FLAGS  (RTE_PCI_DRV_INTR_LSC | \
                        RTE_PCI_DRV_INTR_RMV | \
                        RTE_PCI_DRV_PROBE_AGAIN)