X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_acl%2Ftb_mem.h;h=ca7af966c318c1ceb939851a3e56d3b0eac4d77b;hb=170706a74df940bf0549e3bee4706adae747a76b;hp=a8dae94d0be33d1f0faf17b409eea7f801dd6694;hpb=7eef9194ab6f3b743061ffa2597ad39f27880bf8;p=dpdk.git diff --git a/lib/librte_acl/tb_mem.h b/lib/librte_acl/tb_mem.h index a8dae94d0b..ca7af966c3 100644 --- a/lib/librte_acl/tb_mem.h +++ b/lib/librte_acl/tb_mem.h @@ -48,6 +48,7 @@ extern "C" { #endif #include +#include struct tb_mem_block { struct tb_mem_block *next; @@ -61,6 +62,8 @@ struct tb_mem_pool { size_t alignment; size_t min_alloc; size_t alloc; + /* jump target in case of memory allocation failure. */ + sigjmp_buf fail; }; void *tb_alloc(struct tb_mem_pool *pool, size_t size);