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 1194FA04F0; Mon, 13 Jan 2020 10:34:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B294D1D56C; Mon, 13 Jan 2020 10:34:45 +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 851A91D424 for ; Mon, 13 Jan 2020 10:34:44 +0100 (CET) Received: by mail-io1-f68.google.com with SMTP id n11so9046727iom.9 for ; Mon, 13 Jan 2020 01:34:44 -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=59QhtSgLS4t5dsI46F5664PQm8CKEgRG1GSenzXX+LM=; b=SBNPOf27vAJK1Vfby1RY26TREcfaFfunD9rpdRutvmXYcYu2BiPc9kGeOMG0x3SVC3 EXdMDgl4+ovO/if+EvzUCV8wc1emYas1illYwJO9kblx6eiLhTeKEiDwA+TPzYBMKbBs 7ZdcrOsUzFxo3amE8sCO3TLXI0NgBRrC2tIb0UqCvDZBaFNLPIsZHoRUkpi5bmA60Suc xhEcg98KV33N5Ca0IpVp2H9Kh4AdUUCwGmYbQY8z3WSaFV30mAt67+QYREtcZmw8iA3w ygYRD0JMC+Dw4QKf3WyYbCmM3vi7ZXcirWpS5WkDHpbDacNu8Rmvk53xDnsMaYXA3sV/ 9zhg== 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=59QhtSgLS4t5dsI46F5664PQm8CKEgRG1GSenzXX+LM=; b=aDyB0O0jMovPWWQ1wee0ExX8Cs6KGXarkYWhCLEFjSfVtMWrCG1cVb/uSzEuE3GVKp QX7lkypXPABf/2wAtkX9S8XB6xW6ha31zRD33/Ovvl8t7bTSnUicvJgM6d4kzHnnreAE oFDzONm4IqGVEDqap7cNmfBR1X9thQoCZ7u/8xyPDjM9s8zHYU3TLgv5osMbq4v1/Td4 PK6RqhxyrSpQeFKNvGigny8haPZpD4WYdYurQ6OEIdmT9wApY403uFONn6k5wjV52azO 0oDul855D844OpBU1dBm66x9YTKvaJ5clohFZdwbkMD9bXFt2PESHtClSzKSTXTM+1Vx gB+g== X-Gm-Message-State: APjAAAX/wCJ2EuRDEpuq3XGEyW/GOrmnynHOwOVHZDTv5x9H7wEwD/RK VJlgpwgMwFUzIWIsGdKiXEpfFrjdCbGmEnFGYCY= X-Google-Smtp-Source: APXvYqz+89cT4iaREcjlBNgyHOtdMtf1R95vNR1aaNoHOx92skS8PqCKEbFxO3YFQlkqOfg6vrcjphBntiqiz7OMNIQ= X-Received: by 2002:a02:7310:: with SMTP id y16mr13432441jab.133.1578908083830; Mon, 13 Jan 2020 01:34:43 -0800 (PST) MIME-Version: 1.0 References: <20191216053736.792-1-pbhagavatula@marvell.com> In-Reply-To: From: Jerin Jacob Date: Mon, 13 Jan 2020 15:04:27 +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:16 AM Jerin Jacob wrote: > > 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. Ping > > > > 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 > >