From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by dpdk.org (Postfix) with ESMTP id 950DE20F; Fri, 19 May 2017 07:37:36 +0200 (CEST) Received: by mail-qk0-f196.google.com with SMTP id y128so8951974qka.3; Thu, 18 May 2017 22:37:36 -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 :cc; bh=B702KQj2mjE0+XgIH0UfhBXgCjp2aq//5d5vKk+57P0=; b=rdFpB/bknaioht3sMhVKF5b7/0borqw/g+yc5KjAZG5korPgY8WIWUmHoSHaCAMxd1 jc+5k0NKy8V8vewiy4NnKC5JODmSC7T3krgiuLrwVkN6E0dKobFUlQ1jueHZvAS4JakJ il9zq32c26XuUVB7L4YJXcusc738lprGzkLtWzCj/r7bVoY018sORo4LtBr06ZUMgp1I cMCqx+7YGhXhTQBTwmm+TB2bVGxeMal08NrSA4OoQw0/lx3iVd5E1XBZpgwlMD9bMzKR p4DFKnkynsPk1dFdP2r1usgHL1RNuc7Z6g5/ZJCMygfbANLdgu5fb5iJKEELeZVtUHGY lUrA== 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:cc; bh=B702KQj2mjE0+XgIH0UfhBXgCjp2aq//5d5vKk+57P0=; b=IRfNMM00o1SDI/+wmNyNfQY3TkAYDUffmiSWC/CcKh6qD2Zey3PIbJxsf/15q7tpVa ilv0G+brrZt/Rr0YJBujeUywL3LbboAZrs3+hAJjviJbb6WygSaedq9nj6LvJfr5Xlny csDTV4xwuDH2FCOvrtejnt15GvbVyzUtxQsxoCEcyYuVexUZ5W7s0xQONEF+TkRCNjmy wvG+qRSAXes19XEwi5kvqOVR08oMxEV9bK9woNzW2OGFAAZ1lccwycV3pbJY7iyBoKay D9uHtTSQHMCnpnJE/q3s40QGunHdLT3AkOONaTTPIugeTb54fAEbF2Vt6OPyFO3ZtxhX hbnQ== X-Gm-Message-State: AODbwcDIls5qolSwW1IghhHB2LuN6W3N9Qz2hWKhaB3P+SicBaybmyCm KRacUl+QmVvsy3Lq/m9D7ozzrE6C1A== X-Received: by 10.55.17.232 with SMTP id 101mr7605161qkr.74.1495172256027; Thu, 18 May 2017 22:37:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.172.76 with HTTP; Thu, 18 May 2017 22:37:35 -0700 (PDT) In-Reply-To: References: From: Shyam Shrivastav Date: Fri, 19 May 2017 11:07:35 +0530 Message-ID: To: Nidhia Varghese Cc: 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-users] [dpdk-dev] Defining multiple actions based on a field value for the same table lookup 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: Fri, 19 May 2017 05:37:37 -0000 That can be done in the same miss function as I understand, if (condition1) {} else {} On Fri, May 19, 2017 at 10:53 AM, Nidhia Varghese < nidhiavarghese93@gmail.com> wrote: > Thanks for your reply Shyam. > Yes, I went through it. But my doubt is whether it is possible to define > two different miss actions based on some decision criteria(input port in my > case). > Miss ->Case 1: Add entry to table if portid = 1 > ->Case 2: Drop if portid = 2 > > On Thu, May 18, 2017 at 7:34 PM, Shyam Shrivastav < > shrivastav.shyam@gmail.com> wrote: > >> For each table a lookup hit and miss function can be registered, have a >> look at >> rte_pipeline_run(struct rte_pipeline *p) for the semantics >> > > Thanks, > Nidhia Varghese >