From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by dpdk.org (Postfix) with ESMTP id 40D0B7CBD; Thu, 1 Jun 2017 14:58:32 +0200 (CEST) Received: by mail-oi0-f47.google.com with SMTP id o65so27805610oif.1; Thu, 01 Jun 2017 05:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=UJZWcN+Ok/uhZAYH4A0kIjSbe+Yw/YjxUAjRcC/aZSg=; b=JMVA6Xhib32o2LxtzI6xMUMGBERVTMSDm4RveG8ql8sjOJrHAbH1iExvikXI+Ke+QB Wm3XvC0sqfnqL0JVp5QoUiqJxiO0d+8aYe3yORzkHTzHx8JkXmbPGg43MuZjDCayxfpv QrP+FaQhwQBg2IP3ry3hgZPIPCdF/xTLpXI+7LAqJ65P6JJaJkSqxRUh3OSgXcDJrqau iBFOxwowCAVFTrXOLOtWWEv4YF/KZtCsHoaVd+Rr5OLze4h01nnbA+BdaLRB3dllvxH5 AoiIJTKti3eMyDWKHT6XxdrJ60qeB4mGdh0wC/GuvUNUgCYMzxvrgaOV2pm0GZMzNzTQ H6Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=UJZWcN+Ok/uhZAYH4A0kIjSbe+Yw/YjxUAjRcC/aZSg=; b=uXD9bjs+Hibax7PQAyKNfzR4/kSyaTFdmTP2k2LBbXoq4vPHZzzPVuuff7AFuXaAbp 8q4jtYvLGmnTxlZrRk5OKbEkZi0Mt8x31l9ZEOMnCpyDNQ2/+w8sM2zP5L7RlhMHoJeg 4LfBUfqj8rMLD6vkH0BcDCrRgSweyVluRQJs8I3rUcTVcaK47/ScgybhIYO8VzZ+Gwo0 Mk7EuTVdX9AQfFvraoGHaGXhfOuF/qcC6WB5/AUoHCRquGeckD0Fyhys+LVXEGVzJGae GpKTIAyzdiOT3wl/Xt1nHAQixJ+twIjHTY/gNs2zxj8koh+WOCRCinzl068jhwEVoAjN hwyA== X-Gm-Message-State: AODbwcCz/QuMeVRv/GHjRmw4VOThkBA9MLU0/CyCON0mLcqBlihdIst5 oVSCgAlPqvXlJuLqYcq7tFZqZFgCzw== X-Received: by 10.202.45.214 with SMTP id t205mr694579oit.199.1496321911259; Thu, 01 Jun 2017 05:58:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.45.9 with HTTP; Thu, 1 Jun 2017 05:58:30 -0700 (PDT) In-Reply-To: References: From: Nidhia Varghese Date: Thu, 1 Jun 2017 18:28:30 +0530 Message-ID: To: users@dpdk.org, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Getting meta data from different pipelines in ip_pipeline application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2017 12:58:32 -0000 Hi, Any comments on the below thread? Thanks, Nidhia On Tue, May 30, 2017 at 12:33 PM, Nidhia Varghese < nidhiavarghese93@gmail.com> wrote: > Hi, > > This is how I want my pipelines to work:- > Pipeline 4: > Has to get the source mac address and save it in 160th(160-167) meta data > filed in the mbuf. > Pipeline 5: > Will take the vlan id and store it in 168th(168-175) offset of the same > mbuf > Pipeline 6: > Take the incoming port id which is in 23rd position of the mbuf and store > it in 175th offset. (It will overlap with vlan id field stored, but since I > need only that one bit and I have to access all the three fileds together > as a 16 bit key value, I have done this overlapping) > Pipeline 7: > Key offset is given as 160 and key size is given as 16. So that 160 to 175 > will be available as we have stored those in meta data in the previous > three pipelines. > > I want to know whether my logic will work if I write the config file as > shown below. Will pipeline 7 be able to get the stored source mac address, > vlan id and port id from the given key offset? > > [PIPELINE4] > .. > .. > dma_size = 8 > dma_dst_offset = 160 > dma_src_offset = 262 > dma_src_mask = FFFFFFFFFFFF0000 > dma_hash_offset = 192 > > [PIPELINE5] > .. > .. > dma_size = 8 > dma_dst_offset = 168 > dma_src_offset = 268 > dma_src_mask = 00000FFF00000000 > dma_hash_offset = 200 > > [PIPELINE6] > .. > .. > dma_size = 8 > dma_dst_offset = 175 > dma_src_offset = 23 > dma_src_mask = FF00000000000000 > dma_hash_offset = 208 > > [PIPELINE7] > .. > .. > key_size = 16 > key_offset = 160 > key_mask = FFFFFFFFFFFF000000000FFF000000FF > .. > > Thanks for your reply and help. > > Regards, > Nidhia Varghese > -- Regards, Nidhia Varghese