]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pmd_enic/enic_compat.h
enic: add device ids
[dpdk.git] / lib / librte_pmd_enic / enic_compat.h
index 67c092d212fdfc20eb05b34ec64236b7c8908420..f3598ed68d81838dfb77d7a68a4ae1f0405809d4 100644 (file)
@@ -43,7 +43,7 @@
 #include <rte_malloc.h>
 #include <rte_log.h>
 
-#define ENIC_PAGE_ALIGN 4096ULL
+#define ENIC_PAGE_ALIGN 4096UL
 #define ENIC_ALIGN      ENIC_PAGE_ALIGN
 #define NAME_MAX        255
 #define ETH_ALEN        6
@@ -68,7 +68,7 @@
 #define pr_warn(y, args...) dev_warning(0, y, ##args)
 #define BUG() pr_err("BUG at %s:%d", __func__, __LINE__)
 
-#define ALIGN(x, a)              __ALIGN_MASK(x, (typeof(x))(a)-1)
+#define VNIC_ALIGN(x, a)         __ALIGN_MASK(x, (typeof(x))(a)-1)
 #define __ALIGN_MASK(x, mask)    (((x)+(mask))&~(mask))
 #define udelay usleep
 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))