From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by dpdk.org (Postfix) with ESMTP id ECFAD2647; Tue, 30 May 2017 09:03:50 +0200 (CEST) Received: by mail-oi0-f45.google.com with SMTP id l18so100446985oig.2; Tue, 30 May 2017 00:03:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uKdjjA/Wyvdgj0j6LcH8zXuV4bq+acV/uRJCjl+y2sE=; b=sR4RUNVaTppW9FkvgNv+6Yt/MDhABpMMEMLGuHFI9kcm5Ae4EB4A8ajbHTtfkEyZ9m tg56hQLCKHH2bqQvUcdInXMvajBWKGoI2yqh40swa5WqqlL4dYXAp4/obfo0TXjfT2Yw JT5Nz8bUqTBnOLyGWo+ec0S4b7rv3FDhSofkLIxqPh5JYaaPscot4I9F3f+YfSsyBIXD NVssn6ZrEY4SGWwhpV0AybLMGpx0IDgS85fEGuWHZy7vU/ErUWsEYLoUBkp7QFZtSbHf Zsom5yb6bmQPrJWlVoiLiHgpPn9RSgmCwad/j/0H9ICDXfUbY7qe3NOzifKUdcGwWHWG Gpjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uKdjjA/Wyvdgj0j6LcH8zXuV4bq+acV/uRJCjl+y2sE=; b=BA3Ja5FUnTXc9Nz2QDH2zrpzpwxgxmILkA5Onq7nNmQ3ErTNDu4Zbgl4a931uw6XlF pZBxHcvY5zifPsbbze+hosG4wzbs5ioSiX2v4em8ibdIQuMkVKLWqD2CwDvAo3g2AI/c IgM/Y+1HobxV/w1oq2jZg4S/Vx4mn88fSpa4rtYNpnR66rg/DX/vg9CjG88pFU2cfmsu iyFc+ykCmKWPb8uadJ9m7nFecUuNgxNzkfWMERxHeNcJUIEJ1HLrfV0AESjkkFlYwWjK nB/FnDWkJV+PLpiYioeOJyXLACyXnKuxZCczCAnaojecPJ51eMIkGu5rO9YowaaE6uTE jkqw== X-Gm-Message-State: AODbwcCayeegpT62oOjNkF6hEZyi39VTHYU+HisP2HFEDv1lUdAUl6lB +k7GKBDKMy4oTLSmkQ3yvZ/5wn7ULiK6 X-Received: by 10.202.48.136 with SMTP id w130mr1962693oiw.65.1496127830163; Tue, 30 May 2017 00:03:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.45.9 with HTTP; Tue, 30 May 2017 00:03:49 -0700 (PDT) From: Nidhia Varghese Date: Tue, 30 May 2017 12:33:49 +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: [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: Tue, 30 May 2017 07:03:51 -0000 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