From patchwork Fri Jan 15 09:36:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Long X-Patchwork-Id: 12022037 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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 BAA0AC433E0 for ; Fri, 15 Jan 2021 09:37:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7180122A84 for ; Fri, 15 Jan 2021 09:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbhAOJhV (ORCPT ); Fri, 15 Jan 2021 04:37:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbhAOJhU (ORCPT ); Fri, 15 Jan 2021 04:37:20 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EF9FC061757; Fri, 15 Jan 2021 01:36:48 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id h10so5122750pfo.9; Fri, 15 Jan 2021 01:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=oQuCRraIOONShH3gahP+F3g5+Izjro2CjckT3O7EKOk=; b=UTxOZnZ+Eu79NIc7PrSn+BlK+2312BNfCb/he0kwZyatS/4gLKczdAEepS5MnF+Nm7 ol9RuFlQI30jyokX3lrFQNFHw4JgneB22pjGM/kA4XY85q2qL7lRPCQ1MvSZmmRSScr8 d2ky8y2pL2Sdek0iSIZ11gxfyEHlArezKZETxKZ7G6gKfRrPqvqHQWFCGznJiG/PrIE9 +EeNbejgIdK+usHGG0lSxx998CkjMQdFn8Ezegq9sRL5sNmBIM5SHApmqaWpQo901F7X BW2tFWQgl8bRQfB/iHpWbftjhWb6N87AIdmLdo2yGdkprijLbumGBHdvIafeHxh2SPj/ +zfw== 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; bh=oQuCRraIOONShH3gahP+F3g5+Izjro2CjckT3O7EKOk=; b=F4EqxK4n7FzZp0mNzqME2pWHeJw980ItHiHtQD1Tb3+JG2Qtgl72k0tOgGYU7iD0eT ZKoS713jqc+3IYEZWTbc1lQe2e++4KSYZ4Fo+BNHF4PEXRY9tXQNJ/bAOQPAA3/aVt3S B6CK8kI4rDvswUFcbEmKUU33ri5IpWx531RyriF77JeatPH4wz7Zs9aDIdc4Ai0rY2w+ sO4fW8vxfZpy+vYalskzVTqHvl2XOrGFFJUvPuk+rwtc0p3OI2MpWi/dpl/imb8Hgpso t1r4lI7HVkfIHSGJy8Cnl0NkOtVk1W9oz1uM4AKTirmTXlikFsh1z3yexdSSgRSuvg9+ Yc4Q== X-Gm-Message-State: AOAM530u1mEnP1wKloBFf9wLIdbVKophJjH++V01OTpucjnjVwUJgRH9 WmZzqxQL1ARY7RkZdGJeETlrq6QOYdVsIg== X-Google-Smtp-Source: ABdhPJyQ4bYoeVCq7tUu3FhK8vLK3g96Ji01h/Zii5PvzKXFb1KlgJVI/Lmne+dESvdGYDIcyIhxSA== X-Received: by 2002:a63:752:: with SMTP id 79mr11611413pgh.272.1610703407210; Fri, 15 Jan 2021 01:36:47 -0800 (PST) Received: from localhost ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id z15sm7331032pfn.34.2021.01.15.01.36.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2021 01:36:46 -0800 (PST) From: Xin Long To: network dev , linux-sctp@vger.kernel.org Cc: Marcelo Ricardo Leitner , Neil Horman , davem@davemloft.net, Jakub Kicinski , Alexander Duyck Subject: [PATCHv3 net-next 0/2] net: fix the features flag in sctp_gso_segment Date: Fri, 15 Jan 2021 17:36:37 +0800 Message-Id: X-Mailer: git-send-email 2.1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Patch 1/2 is to improve the code in skb_segment(), and it is needed by Patch 2/2. v1->v2: - see Patch 1/2. v2->v3: - change Patch 2/2 to the right patch. Xin Long (2): net: move the hsize check to the else block in skb_segment sctp: remove the NETIF_F_SG flag before calling skb_segment net/core/skbuff.c | 11 ++++++----- net/sctp/offload.c | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-)