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 44C7CA04B3; Mon, 16 Dec 2019 06:46:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 23BFA1C0CC; Mon, 16 Dec 2019 06:46:52 +0100 (CET) Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) by dpdk.org (Postfix) with ESMTP id 01F701C08D for ; Mon, 16 Dec 2019 06:46:50 +0100 (CET) Received: by mail-il1-f196.google.com with SMTP id z12so4436707iln.11 for ; Sun, 15 Dec 2019 21:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZbxSFOniqpaxm6CLnz9owBkfIMPyv5N4Mx1gee53128=; b=cDZfyk5fFMc8YG7BTPHvR3dQwKt1/cMjbprp8qwnAJGlcVWVOMP6mh7GoFVfAgz/ZL ShTe2LTqAlsRsy+aLZvyccxXuDdgxxlH2kM0CoGgU30SD2/MBD4uyq7xP1j038odNA6Q Z+Lg5UFmBR7zg7e9KM8sDt+USLNupOoX4Cijo7jba2X2YjdHc7zO6TMkVwMaymdr2k03 Etltc4nlqxE0Y34V0qpk15ZSfaF4EH/MS2VWtX+aKdOKEDX7FvfW1xDHocCBsrLZKnGX P3QBMJBWe83P6B+rhNBCE72FYzEm2ET5ZqhSM7onEI0kHDreH2SHJ8mDNVpuSnhfgZlA RaYA== 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=ZbxSFOniqpaxm6CLnz9owBkfIMPyv5N4Mx1gee53128=; b=mJoOx26+s1iJt24dYDTnXB5wtG3og2yUNZcUNyT4/QWIUvnbJaRYveopd0R6vIrNU1 +h6EdhHmgzDssnXiTPmUU3Kvt9NPPYB/1K6ZsvQ+Z4kdrvwtYgDxUAf4jiF8od8V5TGe UmsVS2hCNBqGoa4xsi+14m2m1tAS9/WVZRArgcYj2iJlmC2D8ozPJYhODD6h7p6lghu/ /aS9Y/eBzzEsiZvyqjNMYqpGuGWLjKCybEAtnK3kWEy83vJb4IcdnJxti+0OdOCjnwPJ Mq5OPuYeMB/vJ2hFcskwESxFgFvWnBfDsj2F+7VaA2G9jo/ceLHWgNSD7C2DLfOnXv+v bK1g== X-Gm-Message-State: APjAAAUi2c/FONImGLIt+sAqTTTbsiAd95pTJR8PzkXqbGsGRDQLsywZ FCiTEZQ9WERKPZP7eNYUZzoRwtZRYAM/9XP0ukM= X-Google-Smtp-Source: APXvYqz3h+CmdtI4rI0K36UIBAnXrl66PjWjNugaqou/DVRTvYtZTAmKgx56TrtbnMUa5vx9+4tsuYHLpA30cmYZELs= X-Received: by 2002:a92:dcca:: with SMTP id b10mr7733047ilr.294.1576475210162; Sun, 15 Dec 2019 21:46:50 -0800 (PST) MIME-Version: 1.0 References: <20191216053736.792-1-pbhagavatula@marvell.com> In-Reply-To: <20191216053736.792-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Mon, 16 Dec 2019 11:16:34 +0530 Message-ID: To: Pavan Nikhilesh Cc: Jerin Jacob , Marko Kovacevic , Ori Kam , Bruce Richardson , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Sunil Kumar Kori , dpdk-dev , Satananda Burla Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-event: set RSS based on device capabilities 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" On Mon, Dec 16, 2019 at 11:07 AM wrote: > > From: Pavan Nikhilesh > > Setup RSS configuration based on underlying device capabilities. > > Signed-off-by: Satananda Burla > Signed-off-by: Pavan Nikhilesh > --- Please add Fixes: and cc stable as well as it is a fix for the bug. > examples/l2fwd-event/l2fwd_common.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/examples/l2fwd-event/l2fwd_common.c b/examples/l2fwd-event/l2fwd_common.c > index 0c069ec35..2fae6f52c 100644 > --- a/examples/l2fwd-event/l2fwd_common.c > +++ b/examples/l2fwd-event/l2fwd_common.c > @@ -46,6 +46,17 @@ l2fwd_event_init_ports(struct l2fwd_resources *rsrc) > if (ret != 0) > rte_panic("Error during getting device (port %u) info: %s\n", > port_id, strerror(-ret)); > + local_port_conf.rx_adv_conf.rss_conf.rss_hf &= > + dev_info.flow_type_rss_offloads; > + if (local_port_conf.rx_adv_conf.rss_conf.rss_hf != > + port_conf.rx_adv_conf.rss_conf.rss_hf) { > + printf("Port %u modified RSS hash function based on hardware support," > + "requested:%#"PRIx64" configured:%#"PRIx64"", > + port_id, > + port_conf.rx_adv_conf.rss_conf.rss_hf, > + local_port_conf.rx_adv_conf.rss_conf.rss_hf); > + } > + > if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) > local_port_conf.txmode.offloads |= > DEV_TX_OFFLOAD_MBUF_FAST_FREE; > -- > 2.17.1 >