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 B2A54A04FD; Tue, 14 Jan 2020 21:38:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C36481C123; Tue, 14 Jan 2020 21:38:14 +0100 (CET) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id 7B2691C122; Tue, 14 Jan 2020 21:38:13 +0100 (CET) Received: by mail-io1-f68.google.com with SMTP id d15so15394766iog.3; Tue, 14 Jan 2020 12:38:13 -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=yUSKDIwJqi8MbyKRpD4xfzk2MRDesRx3x5vrhXv4z90=; b=Yqmpz2RRYczT5vrSN3aB4Uy35bgMrGgmFB1TT5mv2PnwOTX/uCtSY2qmp3EP/GSb1X LWDKxuqf9q4vadXujkqXm9mNEikqSUA4BW2N1kuZhToEG6HqYcHj0JdgUboB2E9BPSSK yfErP/uWRSVHJ2Ww2prwTjXMwk1XB9wKwk9xuoKBnoxTH3CaqP5dX1isl1N3YJLC8rRD MDoISqKqOQNnnF5i5o0thVt9+BdG/8AsnM4KRyFBsdrvx2NhUjHlYXKMrXlMFv4F4xYB lEEbGGO8Dfl68xJj59qtxAHqAWHViPvjxtAuow6/FjfpW9pzv86rbKrkHKEWYRH4wdP/ oFHw== 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=yUSKDIwJqi8MbyKRpD4xfzk2MRDesRx3x5vrhXv4z90=; b=STh948yx0RoXe7hK9xJ9BZ18ClXkeJisggKztQsFXaKPkxYywYZgP1G/+9TFTbTz8l HI6XPFvjftgBf+2FN/WQF1wswJ5gzJB3yKHtke0kqyBBexZsnICVeNPArKmqgP8dgtLW cz4eNXEw28v7aDTrOj+k9C+g41hRGyrx58G63Ipa0LXaXQ5hp5qi3/jg7zvdiBfjSks1 +9sZEDRuds9KX1t+XXUvpMtm5TpI02aKGeni6iY3RhdijJF7Bg5KvGeDat4XjfmGboKm j2ric2MBZx2ZoxJ2Fvnc+nkRqjfxolKk9VelhbCXVFwhmdG+NTK+kTDXoogrXpLH0cSL 6qJw== X-Gm-Message-State: APjAAAX1IE1uvSVRpYkpGUwTbAPHF8u0vwzPUj9emKPUzj8RhLMtZhlQ hDRktQUWsu6bW4A2EKfidnWHjBjs9QoheipPyuQ= X-Google-Smtp-Source: APXvYqzs+0hMp+Ube+93ajYVPGqP8YeahU9UXhWk/B53s9S7b9/oAa5pSlEk2sHkZ7p0gDYh3CJfbHsaISm4/yEoqJQ= X-Received: by 2002:a02:b808:: with SMTP id o8mr21479431jam.104.1579034292598; Tue, 14 Jan 2020 12:38:12 -0800 (PST) MIME-Version: 1.0 References: <20191216053736.792-1-pbhagavatula@marvell.com> <20200114055224.1795-1-pbhagavatula@marvell.com> In-Reply-To: <20200114055224.1795-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Wed, 15 Jan 2020 02:07:56 +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 , dpdk stable , Satananda Burla Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] examples/l2fwd-event: fix ethdev RSS setup 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 Tue, Jan 14, 2020 at 11:22 AM wrote: > > From: Pavan Nikhilesh > > Setup RSS configuration based on underlying device capabilities. > > Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines") > Cc: stable@dpdk.org > > Signed-off-by: Satananda Burla > Signed-off-by: Pavan Nikhilesh Applied to dpdk-next-eventdev/master. Thanks. > --- > v2 Changes: > - change the patch type to fix. > > 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 >