]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/base/ice_osdep.h
net/ice/base: add functions to get allocated resources
[dpdk.git] / drivers / net / ice / base / ice_osdep.h
index a3351c034f052eab727142a627fa579053006ba1..252c8f4e783b2d53edb27b5dd57dcd1193b1da96 100644 (file)
@@ -457,6 +457,8 @@ LIST_HEAD(ice_list_head, ice_list_entry);
 
 /*Note parameters are swapped*/
 #define LIST_FIRST_ENTRY(head, type, field) (type *)((head)->lh_first)
+#define LIST_NEXT_ENTRY(entry, type, field) \
+       ((type *)(entry)->field.next.le_next)
 #define LIST_ADD(entry, list_head)    LIST_INSERT_HEAD(list_head, entry, next)
 #define LIST_ADD_AFTER(entry, list_entry) \
        LIST_INSERT_AFTER(list_entry, entry, next)