Message ID | 20210111130034.229643115@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 5F79EC433DB for <stable@archiver.kernel.org>; Mon, 11 Jan 2021 13:05:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1790C2250F for <stable@archiver.kernel.org>; Mon, 11 Jan 2021 13:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730289AbhAKNFU (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 11 Jan 2021 08:05:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:52454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730287AbhAKNFU (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 11 Jan 2021 08:05:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBBA8225AB; Mon, 11 Jan 2021 13:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370279; bh=u9WYEJYd5BU1aoAQsY33A+FOR4Djvrd9dC+1/c9oFF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Th5x73YlPVdYhxM+e8UjAOXS/eEjqVwwvjJh4wQuhPjYyWqTfEWsJSutYZLyhH9Hi lbdEslIowjieQzCSPHZOoHLzNjvrt+Zi8B8IH57Pjy/DdJY5Q9qM9qPFghF/ZjXBlY rXaWv3lFA0du27YopJO8WVL2qLTnphm7VCCLGpuk= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Manish Chopra <manishc@marvell.com>, Sudarsana Kalluru <skalluru@marvell.com>, Igor Russkikh <irusskikh@marvell.com>, Jakub Kicinski <kuba@kernel.org> Subject: [PATCH 4.14 10/57] qede: fix offload for IPIP tunnel packets Date: Mon, 11 Jan 2021 14:01:29 +0100 Message-Id: <20210111130034.229643115@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130033.715773309@linuxfoundation.org> References: <20210111130033.715773309@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/net/ethernet/qlogic/qede/qede_fp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_fp.c @@ -1708,6 +1708,11 @@ netdev_features_t qede_features_check(st ntohs(udp_hdr(skb)->dest) != gnv_port)) return features & ~(NETIF_F_CSUM_MASK | NETIF_F_GSO_MASK); + } else if (l4_proto == IPPROTO_IPIP) { + /* IPIP tunnels are unknown to the device or at least unsupported natively, + * offloads for them can't be done trivially, so disable them for such skb. + */ + return features & ~(NETIF_F_CSUM_MASK | NETIF_F_GSO_MASK); } }