From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73581C433F5 for ; Tue, 4 Sep 2018 02:20:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18AB720659 for ; Tue, 4 Sep 2018 02:20:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 18AB720659 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davemloft.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbeIDGms (ORCPT ); Tue, 4 Sep 2018 02:42:48 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49806 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDGms (ORCPT ); Tue, 4 Sep 2018 02:42:48 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 88C051449DA1C; Mon, 3 Sep 2018 19:19:58 -0700 (PDT) Date: Mon, 03 Sep 2018 19:19:57 -0700 (PDT) Message-Id: <20180903.191957.991249939822141732.davem@davemloft.net> To: yuehaibing@huawei.com Cc: michael.chan@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] bnxt_en: Properly get address type of encapsulation IP headers From: David Miller In-Reply-To: <20180901092529.11828-1-yuehaibing@huawei.com> References: <20180901092529.11828-1-yuehaibing@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 03 Sep 2018 19:19:58 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Date: Sat, 1 Sep 2018 17:25:29 +0800 > gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c: In function 'bnxt_tc_parse_flow': > drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:186:6: warning: > variable 'addr_type' set but not used [-Wunused-but-set-variable] > > As done elsewhere in TC/flower offload code, the address type of > the encapsulation IP headers should be realized accroding to the > addr_type field of the encapsulation control dissector key. > > Fixes: 8c95f773b4a3 ("bnxt_en: add support for Flower based vxlan encap/decap offload") > Fixes: 2ae7408fedfe ("bnxt_en: bnxt: add TC flower filter offload support") > Signed-off-by: YueHaibing Michael, please review. And, if this fixes a bug, it should target 'net' not 'net-next'.