From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) by dpdk.org (Postfix) with ESMTP id 17BFB1DB1; Thu, 6 Apr 2017 11:06:45 +0200 (CEST) Received: by mail-wr0-f173.google.com with SMTP id o21so23359721wrb.2; Thu, 06 Apr 2017 02:06:45 -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=DGUmGc/IDjwNOMzUX0fC7j+1WtceueTAjbcgW893SZE=; b=JrgFh2sv6z/GAk7G9/IXjK+U3tHYaCOHJ3VDz/t4ksZohc/nU9HgW/+C7ehMk5uQIG 5mCTT9i3Y97qHhDIu4CvWHbk7VZfVhO+Q02D4ZEb/Vz58+v6SKUTuOWPsVZ6KK3KnAU+ 0dVh/lVf2jUdTJe2Q/Enmkrxh3vos0lix5R3F5XyBI0wZKZC2no8Qu+9wwgeys9A7guQ W4Cc9iP/2FvSYl9jkmqAV6EvmJGC3bQjdmRejECOQ6gyhNs2zwGYNZvOAAqXSQEW3SO2 wCP9vQm/eu1H0rILyGJtsdbreNIdOogRM2doIOw/8q8xShLD/H9QLFz3y/tAabl5MjVB 9tOQ== 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=DGUmGc/IDjwNOMzUX0fC7j+1WtceueTAjbcgW893SZE=; b=WOhqMyVLlhF7ga0RMaL/YDPRTnXdqxsJTxw1Rc2FWfBnn93g12MZo+oPVbeyJ3l0x/ URl7/bep6Awf3jW4MMF60ojBB3KPWhmGDpiqGwNTCRyhhNvIb8P1UgBgZ4KSx1r++rz6 nfXJSHNIY4xffTPQRCPwhZWJBFGswNfFipu6Av97B19sv+KVa6Fgcs4mWbIUDvPF2YgD /SPWop7kSciVYY2SbtCviKOnkfqIi7p3uCxCdeePB7MafHU9OP87rJCSdpoDFpRRDaWA ennex1Ii4mYbm3PpNNrhsPa+wELM2ASdR7jGcM/njaVcrAZbVSdDoCKDRIu41xNMawzJ Hc7Q== X-Gm-Message-State: AFeK/H2RylTacTTfvt62ufm0ReP8VZL4x28cjdwegLy0WnHYTVUTWM7JwK4Ny+OQOJmd/M7We9jWINBaEfAMWA== X-Received: by 10.223.173.74 with SMTP id p68mr378162wrc.137.1491469604661; Thu, 06 Apr 2017 02:06:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.169.111 with HTTP; Thu, 6 Apr 2017 02:06:44 -0700 (PDT) From: Nidhia Varghese Date: Thu, 6 Apr 2017 14:36:44 +0530 Message-ID: To: dev@dpdk.org, users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Working of pipeline in a given config file and regarding user-defined actions in IP_PIPELINE application X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 09:06:45 -0000 Hi all, I am learning DPDK packet framework library for an APP development. I am going through the config files and the code. I found the below cfg file in a DPDK summit ppt. I have some doubts regarding the fields used in the cfg file. 1.What is the difference between dma_size and key_size? 2. How does the PASS-THROUGH pipeline work with given src_mask? 3. Are the FLOW CLASSIFICATION and ROUTING pipelines using the same key or hash values? [PIPELINE0] type = MASTER core = 0 [PIPELINE1] type = PASS-THROUGH core = 1 pktq_in = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0 pktq_out = SWQ0 SWQ1 SWQ2 SWQ3 dma_size = 8 dma_dst_offset = 0 dma_src_offset = 140; headroom (128) + 1st ethertype offset (12) = 140 dma_src_mask = 00000FFF00000FFF; qinq dma_hash_offset = 8; dma_dst_offset + dma_size = 8 [PIPELINE2] type = FLOW_CLASSIFICATION core = 1 pktq_in = SWQ0 SWQ1 SWQ2 SWQ3 pktq_out = SWQ4 SWQ5 SWQ6 SWQ7 n_flows = 16777216; n_flows = 65536 key_size = 8; dma_size = 8 key_offset = 0; dma_dst_offset = 0 hash_offset = 8; dma_hash_offset = 8 flow_id_offset = 64 [PIPELINE3] type = ROUTING core = 2 pktq_in = SWQ4 SWQ5 SWQ6 SWQ7 pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0 n_routes = 4096 l2 = mpls mpls_color_mark = yes ip_hdr_offset = 150; headroom (128) + ethernet header (14) + qinq (8) = 150 color_offset = 68 Other than this, 4. How users can add user-defined actions? Can you please give an example, like push or pop VLAN label from the packet 5. How does port action handler works? How and where can we define actions for ports? Thanks for your reply and help. -- Regards, Nidhia Varghese