From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9E1CA2BE2 for ; Wed, 7 Nov 2018 03:43:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2018 18:43:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,474,1534834800"; d="scan'208";a="87249754" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by orsmga007.jf.intel.com with ESMTP; 06 Nov 2018 18:43:20 -0800 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.114]) by PGSMSX104.gar.corp.intel.com ([169.254.3.27]) with mapi id 14.03.0415.000; Wed, 7 Nov 2018 10:43:19 +0800 From: "Zhao1, Wei" To: Ori Kam CC: "dev@dpdk.org" Thread-Topic: [PATCH] examples/flow_filtering: fix capability setting Thread-Index: AQHUdZp47nbn2J5o4EGKqgxR79/jYKVDnAnw Date: Wed, 7 Nov 2018 02:43:19 +0000 Message-ID: References: <1541485898-25572-1-git-send-email-orika@mellanox.com> In-Reply-To: <1541485898-25572-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/flow_filtering: fix capability setting 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: , X-List-Received-Date: Wed, 07 Nov 2018 02:43:23 -0000 Acked-by: Wei Zhao > -----Original Message----- > From: Ori Kam [mailto:orika@mellanox.com] > Sent: Tuesday, November 6, 2018 2:32 PM > To: Ori Kam ; Zhao1, Wei > Cc: dev@dpdk.org > Subject: [PATCH] examples/flow_filtering: fix capability setting >=20 > The tx offloads should be compared to tx capability >=20 > Fixes: fb152e54ee04 ("examples/flow_filtering: fix set offloads based onc= ap") > Cc: orika@mellanox.com > Cc: wei.zhao1@intel.com >=20 > Signed-off-by: Ori Kam > --- > examples/flow_filtering/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/mai= n.c > index 27e287a..a582ac0 100644 > --- a/examples/flow_filtering/main.c > +++ b/examples/flow_filtering/main.c > @@ -137,7 +137,7 @@ > struct rte_eth_dev_info dev_info; >=20 > rte_eth_dev_info_get(port_id, &dev_info); > - port_conf.txmode.offloads &=3D dev_info.rx_offload_capa; > + port_conf.txmode.offloads &=3D dev_info.tx_offload_capa; > printf(":: initializing port: %d\n", port_id); > ret =3D rte_eth_dev_configure(port_id, > nr_queues, nr_queues, &port_conf); > -- > 1.8.3.1