From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [DPDK] examples/ipsec-secgw: fix use of unsupported RSS offloads Date: Tue, 26 Jun 2018 10:03:48 +0100 Message-ID: <96a0c63f-05b3-ea5d-e19d-360397f911ec@intel.com> References: <20180622132745.3202-1-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Remy Horton , dev@dpdk.org Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1F59C1B44B for ; Tue, 26 Jun 2018 11:03:50 +0200 (CEST) In-Reply-To: <20180622132745.3202-1-remy.horton@intel.com> Content-Language: en-US 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 6/22/2018 2:27 PM, Remy Horton wrote: > Since commit aa1a6d87f15d ("ethdev: force RSS offload rules again") > a check that requested RSS offloads are supported by a PMD is > enforced, whereas in the past asking for unsupported offloads would > not result in an error. This patch changes the IPSec gateway sample > so that it only requests modes that are supported rather than > failing to start up. > > Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") > > Signed-off-by: Remy Horton Hi Remy, Is following covering this patch: https://patches.dpdk.org/patch/41313/ > --- > examples/ipsec-secgw/ipsec-secgw.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c > index a5da8b2..d247d5f 100644 > --- a/examples/ipsec-secgw/ipsec-secgw.c > +++ b/examples/ipsec-secgw/ipsec-secgw.c > @@ -1566,6 +1566,11 @@ port_init(uint16_t portid) > if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) > local_port_conf.txmode.offloads |= > DEV_TX_OFFLOAD_MBUF_FAST_FREE; > + > + /* Only request RSS offloads the NIC supports. */ > + local_port_conf.rx_adv_conf.rss_conf.rss_hf &= > + dev_info.flow_type_rss_offloads; > + > ret = rte_eth_dev_configure(portid, nb_rx_queue, nb_tx_queue, > &local_port_conf); > if (ret < 0) >