From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id 134155A1F for ; Fri, 12 Aug 2016 21:42:01 +0200 (CEST) Received: by mail-pa0-f52.google.com with SMTP id fi15so11226593pac.1 for ; Fri, 12 Aug 2016 12:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GbQ5GHiIH7THJE+k9Zf4bPj18CsVhDqg9ZWKg3/9RDs=; b=Gy45oSwcEjqz6qTcfrqWj1uicSXVA8kDubdjUaBjS1+wCteOHcuj3Qt85OTfVnTNPT TTSruBgJeAUf9UN3J9f8MK4ZCyTIJ0to6YdoDsP5tvg0QiA1vsMMBkoU9FmKqsCr05Gg hzI0VQjx9Un9SL01Rarj56Bm9Z8WmMOHO8BncQBqmvNusWPG8FRZTUfo1xKNTB37BpI8 +BrUwZdwvH/w47De24UITRFto6qtsnzYWrOeH4M1IbCdPIBYuUSE4h7IyPFhW/0VnpL4 xxAPQnOiboJRE2Aa+Ajee0/gYfmRIEqeyLJ/f5DwHiNZvbvuBC8E64rMKceIThmcyszK V7Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GbQ5GHiIH7THJE+k9Zf4bPj18CsVhDqg9ZWKg3/9RDs=; b=h6nOGhBZ96K9ZJEMntlCW+hM7Nic7FfMPYhTg9kbppOJKarxsynqoVdNODcFA55d+d H7L/3ZC2j8ld3F1cyP1Nhn7bEsmTvvOnEs5EsOLmm7waHt5o4vuLmUatouoE8JRVu/Ok /hXSGEW1FtNvQaJ5VquPsBHlbZCFSY0oDnETxCL6k216C1rL6NSgyA+o2rNpi2DCEiXa jQU5KdQqywKBTbAvQ4DoRTUMCFa8sq5baYew3cTfTlen8rY19zgpFQyJKCEP8KzWp8S5 r8LS2dK3YNuOZId6RE8ccGNzgztcnknPDzQ/sFHINH1ntMMEbohDhCY/bCUFFZ5N+nP7 hNlw== X-Gm-Message-State: AEkoous8jDlt1sslBpNSkJk3/m+adKbjXrIQ575PYTGoQsi1kOzMMACNdqCTwfvWmm3eog== X-Received: by 10.66.78.35 with SMTP id y3mr29810769paw.40.1471030920345; Fri, 12 Aug 2016 12:42:00 -0700 (PDT) Received: from xeon-e3 (static-50-53-69-251.bvtn.or.frontiernet.net. [50.53.69.251]) by smtp.gmail.com with ESMTPSA id k9sm14937169pfj.63.2016.08.12.12.41.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Aug 2016 12:42:00 -0700 (PDT) Date: Fri, 12 Aug 2016 12:42:09 -0700 From: Stephen Hemminger To: =?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGAINCa0LjRgdC10LvQtdCy?= Cc: Matt Laswell , users Message-ID: <20160812124209.387a4c2f@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] ipv4 fragmentation X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2016 19:42:01 -0000 On Fri, 12 Aug 2016 20:59:19 +0300 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=9A=D0=B8=D1=81= =D0=B5=D0=BB=D0=B5=D0=B2 wrote: > > On Fri, Aug 12, 2016 at 12:32 PM, =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0= =D0=BD=D0=B4=D1=80 =D0=9A=D0=B8=D1=81=D0=B5=D0=BB=D0=B5=D0=B2 > > wrote: > > =20 > >> 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 pack= ets, > >> 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 d= on'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.