Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_packet_internal.h line 9 @@ -197,7 +197,7 @@ static inline void packet_init(odp_packet_hdr_t *pkt_hdr, uint32_t len) uint32_t seg_len; int num = pkt_hdr->buf_hdr.segcount; - if (odp_likely(CONFIG_PACKET_MAX_SEGS == 1 || num == 1)) { + if (odp_likely(num == 1)) {
Comment: Why not `if (CONFIG_PACKET_SEG_DISABLED || num == 1) ...` here? There was an attempt to generate fast-path code if it's known at compile time that multi-segment packets are not being used. https://github.com/Linaro/odp/pull/233#discussion_r144965894 updated_at 2017-10-16 21:17:08