> > +
> > +/**
> > + * 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 ...

/** 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