[dpdk-users] ipv4 fragmentation

Stephen Hemminger stephen at networkplumber.org
Fri Aug 12 21:42:09 CEST 2016


On Fri, 12 Aug 2016 20:59:19 +0300
Александр Киселев <kiselev99 at gmail.com> wrote:

> > On Fri, Aug 12, 2016 at 12:32 PM, Александр Киселев <kiselev99 at gmail.com>
> > wrote:
> >  
> >> Hi!
> >>
> >> I am trying to use rte_ipv4_fragment_packet() function, but so far all
> >> attemps has been unsuccessful.
> >>
> >> Fragment function gets a packet, successfuly splits it to the two packets,
> >> then I add an L2 header to the each of resulting fragments
> >> and send the fragments using rte_eth_tx_burst() to the wire. All steps of
> >> the above process are succesfully completed without any error, but I don't
> >> see the fragments on the wire and PMD stat function also reports that no
> >> packets were transmitted.

Did you account for the fact that some of these might be indirect mbuf's
where refcount > 1? If refcount is not 1 then mbuf is shared, and you can
not safely write your L2 header directly.


More information about the users mailing list