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 36A55A0527; Wed, 15 Jul 2020 15:56:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C74881BF46; Wed, 15 Jul 2020 15:56:02 +0200 (CEST) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.211.62]) by dpdk.org (Postfix) with ESMTP id B81151B952 for ; Wed, 15 Jul 2020 15:55:52 +0200 (CEST) Received: from dhcp-10-123-153-55.dhcp.broadcom.net (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55]) by relay.smtp.broadcom.com (Postfix) with ESMTP id E3EEA299E1E; Wed, 15 Jul 2020 06:55:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com E3EEA299E1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1594821352; bh=nH+XDLYQKQyAzRFaFY591fMA7PLhJCKmqLelOl8NZHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ekkrTsOZP7qiK3maHJp5n9O/vogX1M+pX+mEcz9gC48cAxVgvJrsHCZ/qiRRTKIYC kQ0ZKtTG5i4VhO6NCHwx+e8FWU0hA01CPRD34fCvlw6CN0WSdOzJFWL8V0SW03iU8c eSLYCb6luMER3WrBhoQEECNsrxeX6LwlaYrMi7RA= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Wed, 15 Jul 2020 19:20:34 +0530 Message-Id: <20200715135038.16662-7-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 In-Reply-To: <20200715135038.16662-1-somnath.kotur@broadcom.com> References: <20200713061600.19456-1-somnath.kotur@broadcom.com> <20200715135038.16662-1-somnath.kotur@broadcom.com> Subject: [dpdk-dev] [PATCH 06/10] net/bnxt: ignore ipv4 TOS mask 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" From: Kishore Padmanabha This is a work around for the OVS setting offload rules that are passing ipv4 tos mask as wild card and currently we do not support. Signed-off-by: Kishore Padmanabha Reviewed-by: Somnath Kotur Signed-off-by: Somnath Kotur --- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c index b943465..63f4c17 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c +++ b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c @@ -704,9 +704,19 @@ ulp_rte_ipv4_hdr_handler(const struct rte_flow_item *item, ulp_rte_prsr_mask_copy(params, &idx, &ipv4_mask->hdr.version_ihl, sizeof(ipv4_mask->hdr.version_ihl)); +#ifdef ULP_DONT_IGNORE_TOS ulp_rte_prsr_mask_copy(params, &idx, &ipv4_mask->hdr.type_of_service, sizeof(ipv4_mask->hdr.type_of_service)); +#else + /* + * The tos field is ignored since OVS is setting it as wild card + * match and it is not supported. This is a work around and + * shall be addressed in the future. + */ + idx += 1; +#endif + ulp_rte_prsr_mask_copy(params, &idx, &ipv4_mask->hdr.total_length, sizeof(ipv4_mask->hdr.total_length)); -- 2.7.4