From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <padam.singh@inventum.net> Received: from smtp73.ord1c.emailsrvr.com (smtp73.ord1c.emailsrvr.com [108.166.43.73]) by dpdk.org (Postfix) with ESMTP id E3A1C95E5 for <dev@dpdk.org>; Sat, 20 Dec 2014 19:40:02 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp10.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 8DE7F3801BA for <dev@dpdk.org>; Sat, 20 Dec 2014 13:40:01 -0500 (EST) X-Virus-Scanned: OK Received: by smtp10.relay.ord1c.emailsrvr.com (Authenticated sender: padam.singh-AT-inventum.net) with ESMTPSA id 3B2D838022C for <dev@dpdk.org>; Sat, 20 Dec 2014 13:39:59 -0500 (EST) X-Sender-Id: padam.singh@inventum.net Received: from [192.168.1.5] ([UNAVAILABLE]. [182.64.243.106]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.4.2); Sat, 20 Dec 2014 18:40:01 GMT X-Blue-Identity: !l=385&o=0&pl=305&po=0&qs=PREFIX&f=HTML&n=Padam%20Jeet%20Singh%20&e=padam.singh%40inventum.net&p=184&q=NONE User-Agent: Blue for Android MIME-Version: 1.0 From: Padam Jeet Singh <padam.singh@inventum.net> Date: Sun, 21 Dec 2014 00:09:01 +0530 To: dev@dpdk.org Message-ID: <ac4ec7d3-617c-46ae-a891-eb95dd6690f6@email.bluemailapp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] VLAN header insertion and removal X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Sat, 20 Dec 2014 18:40:03 -0000 Hello, I have done a simple mbuf adjust and prepend to achieve the remova= l and insertion of the vlan header and it works fine=2E The use case is som= ething similar to the l3fwd example where one port has traffic coming in on= multiple vlans and the other port has no vlans=2E The packet processing pa= th in the middle inserts or removes the vlan=2E Is there an offload flag = or mode where this can be done in hardware? Or is there a more optimized wa= y to do this in dpdk? For sake of performance I want to avoid the copy ethe= rnet header, modify mbuf, copy back the header steps=2E Thanks, Padam -= -------------------------- Sent from my mobile=2E Please excuse the brevity= , spelling and punctuation=2E