From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8DE02A0352; Wed, 6 May 2020 06:00:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8903E1D665; Wed, 6 May 2020 06:00:26 +0200 (CEST) Received: from mail-ot1-f66.google.com (mail-ot1-f66.google.com [209.85.210.66]) by dpdk.org (Postfix) with ESMTP id 89ABB1D654 for ; Wed, 6 May 2020 06:00:25 +0200 (CEST) Received: by mail-ot1-f66.google.com with SMTP id e20so285298otk.12 for ; Tue, 05 May 2020 21:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jc2mkPYXhyAlQUhbPwjhiBSbloRlgxfKg/zrJurDwHU=; b=EWXmiWnJegHXVNeAyPOLhVeU3dFMOGe1j4Bs9ucvl1E0RmywwfavBBqxprVALd6Nxq XQKwlL177Asdtz7DcPUq5uj5celFxJ78yOzaqWrmp2xRpLkaFw4hIrSEoBv0uVix7VSr 2dl4b2ez3dyJZfFf7rrMETRAwKQGhJkdg/WQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jc2mkPYXhyAlQUhbPwjhiBSbloRlgxfKg/zrJurDwHU=; b=FhmG+5LQCJLv1tqzd2RrTgCbop/418NfqH1kfQ2H/jtz9juxT8I/az/izNjoG84h54 UXtZCDqvkCJ0zpIbNqfF9FqUoO+auwU/1CSB5SAgLplLky9hnqTNP8v2ySEiXMEs2m79 +6UKyQvkVnqzvuNTxjQC5BoW2oTgg1s+J948kzP1j9HHvP13oL4wnF4C60H7Eb7M2et2 w03RofiddRCVhf1bURhXLPfqSBY4nwmwFIdPjm9/AVxZdXZDbLHfrJXocANvrd7J0MfF CecSRNhZUt6MqvIn06PSlw+S2Ix1XnVSORf97LeZLgqeh58lRXTN6BZxUzh4M0DEZxHS BIvw== X-Gm-Message-State: AGi0Pua4dEkVTnQ/7ElJ+5GvajYRs46qeEIEapNQFQecEodE1e+4QB3N DsZ20Br1nahipx8vLc32zoSov8qnomsXvONye2Ehgg== X-Google-Smtp-Source: APiQypLFcqdBxzJKnDX2Q1/jz0iEKAEALmbDMP/efDuj/XwnHSuvmix4LNYZiAm0oYZ8n7e/cjKf0snmCtKgt88CJrc= X-Received: by 2002:a05:6830:1613:: with SMTP id g19mr4490342otr.95.1588737624456; Tue, 05 May 2020 21:00:24 -0700 (PDT) MIME-Version: 1.0 References: <20200430093249.6772-2-wisamm@mellanox.com> <20200430103341.1845-1-wisamm@mellanox.com> <20200430103341.1845-3-wisamm@mellanox.com> In-Reply-To: <20200430103341.1845-3-wisamm@mellanox.com> From: Ajit Khaparde Date: Tue, 5 May 2020 21:00:08 -0700 Message-ID: To: Wisam Jaddo Cc: dpdk-dev , jackmin@mellanox.com, Thomas Monjalon , Jerin Jacob , gerlitz.or@gmail.com, l.yan@epfl.ch Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v4 2/5] app/test-flow-perf: add insertion rate calculation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" ::snip:: > > +void > +gen_rss(uint16_t *queues, uint16_t queues_number) > +{ > + uint16_t queue; > + struct action_rss_data *rss_data; > + rss_data = rte_malloc("rss_data", > + sizeof(struct action_rss_data), 0); > + > + if (rss_data == NULL) > + rte_exit(EXIT_FAILURE, "No Memory available!"); > + > + *rss_data = (struct action_rss_data){ > + .conf = (struct rte_flow_action_rss){ > + .func = RTE_ETH_HASH_FUNCTION_DEFAULT, > + .level = 0, > + .types = ETH_RSS_IP, > + .key_len = 0, > + .queue_num = queues_number, > + .key = 0, > Use rte_rand() or some fixed number to generate a key instead of 0. ::snip:: + > +Actions: > + > +* ``--port-id`` > + Add port redirection action to all flows actions. > + Port redirection destination is defined in user_parameters.h > + under PORT_ID_DST, default value = 1. > + > +* ``--rss`` > + Add RSS action to all flows actions, > + The queues in RSS action will be all queues configured > + in the app. > Maybe use a subset of the queues configured in the app. We may want to make sure the RSS is happening because of a flow hit, and not because of default port RSS? ::snip::