Received: by 10.192.165.148 with SMTP id m20csp5274100imm; Tue, 1 May 2018 12:02:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTtr5222eOOJUb7gnozD/hw6MvVZKzq/Cvcef+TNVZmIfZuA8bhtwhiSRZMtW+s887z7Po X-Received: by 2002:a63:77c3:: with SMTP id s186-v6mr13343257pgc.296.1525201368803; Tue, 01 May 2018 12:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525201368; cv=none; d=google.com; s=arc-20160816; b=euciI355A1If64oQO7umuJxzpE8nqus6Awifhe12+itUR3LG4dRgFwDSch4PQf66Ut tDF5Lxshtai906BZyGj8kPyeLtjADSW2zJBd8FLV6auNaiCId1y9uPN5ZKsS1CFX9vg1 70kvgZ7vdP0GXodcHgmcQu+K9HLH0suCFXvazCsPisguyVc3JYnrq8R/y2mUuVfB+44C 3KHTzFewtx9VyEQgorTKCE0wWTm/eGu4KPtLW1Px1FSb6KujINYMVlsrR7Ajohdff8yz y/xSdy/9lB7R3Ei5RCTsh9y4mLvvGfo4TNXasH3YjJf1Ob6AkbUOr6qzlRUQPcKRehPq frlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=yaBWJlR00DBEIAMQYodqivgwcr09dyIfUP+W3n3g+Po=; b=pXLenZIajAH4t5ND8na5uQb0cAsWtc81qSwSLv2aZEbiXlcGP5pE5Psv4CSD0Htfvm SKDpgSr84OSv3DzoMwrrfyrv7qwXkh1JEnTgxhYcZZEgdBZerJG6laHzJbvk1AZu2xUz v95JFQxrp8UN67JxnAO8rP8S/RaiC3LUKuHAfKFgBc/4s1cGU8qz8BJeZ1s0d+3islzj WIwKkxWPkC0mx0iHE5oBPvQf1hJgZn0nNZxx9kdxRLKMc2hys4+fQGvbn4vx/viffj87 C8KUo7LzVi2opCja9X5aQ6diOc1Fw1lCBI8JzdWzj+qlcRAYVi67z2wkyNF2aXDiSnTm T/eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r63si9868089pfj.331.2018.05.01.12.02.34; Tue, 01 May 2018 12:02:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756579AbeEAS6E (ORCPT + 99 others); Tue, 1 May 2018 14:58:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7641 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756247AbeEAS6A (ORCPT ); Tue, 1 May 2018 14:58:00 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 54CC876B7DFD; Wed, 2 May 2018 02:57:47 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.46) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 2 May 2018 02:57:38 +0800 From: Salil Mehta To: CC: , , , , , , , Huazhong Tan Subject: [PATCH net-next 2/9] net: hns3: fix to correctly fetch l4 protocol outer header Date: Tue, 1 May 2018 19:55:58 +0100 Message-ID: <20180501185605.9584-3-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180501185605.9584-1-salil.mehta@huawei.com> References: <20180501185605.9584-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan This patch fixes the function being used to fetch L4 protocol outer header. Mistakenly skb_inner_transport_header API was being used earlier. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 8c55965..c4e2950 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -502,7 +502,7 @@ static int hns3_get_l4_protocol(struct sk_buff *skb, u8 *ol4_proto, /* find outer header point */ l3.hdr = skb_network_header(skb); - l4_hdr = skb_inner_transport_header(skb); + l4_hdr = skb_transport_header(skb); if (skb->protocol == htons(ETH_P_IPV6)) { exthdr = l3.hdr + sizeof(*l3.v6); -- 2.7.4