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 95194A0521; Tue, 28 Jul 2020 08:36:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D58561C138; Tue, 28 Jul 2020 08:35:37 +0200 (CEST) Received: from mail-wm1-f99.google.com (mail-wm1-f99.google.com [209.85.128.99]) by dpdk.org (Postfix) with ESMTP id BD83B1C0CE for ; Tue, 28 Jul 2020 08:35:08 +0200 (CEST) Received: by mail-wm1-f99.google.com with SMTP id t142so10623900wmt.4 for ; Mon, 27 Jul 2020 23:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eplbPBKmz79wbdhGAI8H2a6lUY2PyCowvgPD7buRbRM=; b=LU5DJ5WZgtSN9fZq+TNCWL90RCPNpLIibJawNcCKyKeW4lZfPifcWW5JEBCsBiIrRV 3SkDb9y8zeToThT8U89nlHDA1arAfcxJ8+cAwUzgjztPAIZouQrnTkawQjS+w/KG2pBk yRLmdecgY2oBksHoTx9vWdEMhUQzvur4QmwKI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eplbPBKmz79wbdhGAI8H2a6lUY2PyCowvgPD7buRbRM=; b=cWjgZLrwzMMpSU1VCEr09aROUb3Krv+HzkUAUc3/Gxoz/JIGJoRdCogek6qrctifvJ k8OAOdfRMgKuqQWt8o+L4kvqUrM5lr4YCt6tnDYzcT4T0OveCJAZLQyoEb2Hev6T//8o fit2M4HsoBhtQXVvru//saTAaHC7FCW9gM7K3S1ofWEVxCNg6phg3/KZ+ZxjcCKPXkbt h4Fbn09fWO9RbBI3AxyC9jlFKtY/o/HYjHBNLvIxZFaf9xGqWeJkcpBzwCwXLhKYkoTj IRZh/++Q03wL3hJ20g3y1vjrEHDKtSl/ag3BsgNnmNZGf5TmCbTh4ND+veM37gnHOmxQ C+NQ== X-Gm-Message-State: AOAM532/CVnLp7BT6Qx/fA0DnRGxf9m34jrnsXnN0vahIF4mt8N4dJq9 /Z5qzVjQwx73c1SRmFnNIHAhN96rcduC3HnRg9xhzP4esPu9adn8s7RY0yL7AZIVjTe2KnWmtzj voMEc25+zjvc82kBbIlHnur/zTOUpWXEtarxKsLhkxGLWc+oWeKspHrAxkw4JeIsnJUH2EuEXT2 naQA== X-Google-Smtp-Source: ABdhPJyfeKtXShr4/I+RCFlbjVaj7z/8eBpdCZIbH2YH13RndllqXi2iifB/KgkE5EMRyzfzJwJphwsbp5yR X-Received: by 2002:a05:600c:2888:: with SMTP id g8mr2607617wmd.118.1595918108385; Mon, 27 Jul 2020 23:35:08 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp-relay.gmail.com with ESMTPS id r16sm30828wmh.29.2020.07.27.23.35.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2020 23:35:08 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Ajit Khaparde To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Kishore Padmanabha , Michael Baucom Date: Mon, 27 Jul 2020 23:34:26 -0700 Message-Id: <20200728063439.23114-10-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200728063439.23114-1-ajit.khaparde@broadcom.com> References: <20200728063439.23114-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 09/22] net/bnxt: ignore VLAN priority 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 vlan priority mask as wild card and currently we do not support it. Signed-off-by: Kishore Padmanabha Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c index 67f9319d6..861414da9 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c +++ b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c @@ -709,8 +709,13 @@ ulp_rte_vlan_hdr_handler(const struct rte_flow_item *item, vlan_tag |= ~ULP_VLAN_TAG_MASK; vlan_tag = htons(vlan_tag); - ulp_rte_prsr_mask_copy(params, &idx, &priority, - sizeof(priority)); + /* + * The priority 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; + ulp_rte_prsr_mask_copy(params, &idx, &vlan_tag, sizeof(vlan_tag)); ulp_rte_prsr_mask_copy(params, &idx, &vlan_mask->inner_type, @@ -883,18 +888,12 @@ 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, -- 2.21.1 (Apple Git-122.3)