Balasubramanian Manoharan(bala-manoharan) replied on github web page: platform/linux-generic/odp_pool.c line 9 @@ -348,6 +348,11 @@ static odp_pool_t pool_create(const char *name, odp_pool_param_t *params, break; case ODP_POOL_PACKET: + if (params->pkt.min_headroom > CONFIG_PACKET_HEADROOM) { + ODP_ERR("Headroom size not supported"); + return ODP_POOL_INVALID; + } + headroom = CONFIG_PACKET_HEADROOM;
Comment: setting headroom = CONFIG_PACKET_HEADROOM does not violate the API requirement and it also fits well with our linux-generic implementation. https://github.com/Linaro/odp/pull/152#discussion_r136810032 updated_at 2017-09-04 12:22:56