Regards,
Bala

On 8 December 2016 at 14:37, Savolainen, Petri (Nokia - FI/Espoo)
<petri.savolai...@nokia-bell-labs.com> wrote:
>
>> > +
>> > +/**
>> > + * Fragmentation mode
>> > + *
>> > + * These options control outbound IP packet fragmentation offload. When
>> offload
>> > + * is enabled, IPSEC operation will determine if fragmentation is
>> needed and
>> > + * does it according to the mode.
>> > + */
>> > +typedef enum odp_ipsec_frag_mode_t {
>> > +       /** Do not fragment IP packets */
>> > +       ODP_IPSEC_FRAG_DISABLED = 0,
>> > +
>> > +       /** Fragment IP packet before IPSEC operation */
>> > +       ODP_IPSEC_FRAG_BEFORE,
>> > +
>> > +       /** Fragment IP packet after IPSEC operation */
>> > +       ODP_IPSEC_FRAG_AFTER,
>> > +
>> > +       /** Only check if IP fragmentation is needed,
>> > +         * do not fragment packets. */
>> > +       ODP_IPSEC_FRAG_CHECK
>>
>> What is the expected behaviour for this case of ODP_IPSEC_FRAG_CHECK?
>> Does the implementation send an error code if the packet needs to be
>> fragmented?
>>
>> -Bala
>
>
> Yes, implementation checks packet length against MTU and returns this status 
> ...

Okay. This could be done but it is simple and could be done by the
application itself right? There is no value addition in implementation
doing this.

>
> /** Packet does not fit into the given MTU size */
>                uint32_t mtu              : 1;
>
> ... if it does not fit. User needs to fragment the packet and try again.
>
>
> -Petri
>
>
>
>

Reply via email to