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: This PR helps implementation which have the ability to maintain zero headroom size and our linux-generic implementation does not violate the API spec. We can change linux-generic in future also. https://github.com/Linaro/odp/pull/152#discussion_r136922240 updated_at 2017-09-05 08:22:53