Also, Since seg_len gives information to the implementation as to how many
bytes are required to be contiguous on the first segment for faster access.
I would like to have the value of seg_len as something in the lines of 256
or 512 bytes rather than 3K or 9K.

Regards,
Bala

On 2 July 2015 at 02:36, Bill Fischofer <bill.fischo...@linaro.org> wrote:

> The ODP API does not mandate that an implementation uses segments, only
> that applications can discover and work with any segments that may be
> present.
>
> So it is not possible to force an implementation to use segments since, as
> Stuart points out, seg_len is simply an application minimum value that
> implementations can increase as needed.
>
> In fixing Bug 1661 <https://bugs.linaro.org/show_bug.cgi?id=1661> I extended
> the odp_packet test <http://patches.opendataplane.org/patch/1956/> to
> allocate a packet of 5 times the configured minimum segment length
> (ODP_CONFIG_PACKET_SEG_LEN_MIN) to test the segment APIs against a packet
> that would likely be segmented on most implementations, but again there's
> no guarantee that a given implementation will actually create a segmented
> packet.
>
> In any event, if you wish to "play the odds" you need to base these
> calculations on ODP_CONFIG_PACKET_SEG_LEN_MIN rather than some
> application-chosen value since that's the only insight into what the
> implementation will guarantee in terms of minimum segmentation.
>
> On Wed, Jul 1, 2015 at 5:03 AM, Stuart Haslam <stuart.has...@linaro.org>
> wrote:
>
>> On Wed, Jul 01, 2015 at 01:00:07PM +0530, Bala Manoharan wrote:
>> > If the idea of this patch is to test segmented packets it can be
>> > accomplished by allocating packets of size greater than "seg_len" in an
>> > additional test case rather than modifying the segment length in pool
>> > create function.
>> >
>> > Regards,
>> > Bala
>> >
>>
>> Yes but the pool seg_len is already larger than a max sized jumbo frame,
>> so we wouldn't be able to allocate and send a packet larger than that.
>>
>> --
>> Stuart.
>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> https://lists.linaro.org/mailman/listinfo/lng-odp
>>
>
>
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to