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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 0C849C433E1 for ; Wed, 8 Jul 2020 03:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E30E220720 for ; Wed, 8 Jul 2020 03:50:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729581AbgGHDuy (ORCPT ); Tue, 7 Jul 2020 23:50:54 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41116 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729506AbgGHDuy (ORCPT ); Tue, 7 Jul 2020 23:50:54 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 98926A03BB8DCD8A933A; Wed, 8 Jul 2020 11:50:52 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 8 Jul 2020 11:50:43 +0800 From: Huazhong Tan To: , CC: , , , Huazhong Tan Subject: [RFC net-next 0/2] net: two updates related to UDP GSO Date: Wed, 8 Jul 2020 11:48:54 +0800 Message-ID: <1594180136-15912-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There are two updates related to UDP GSO. #1 adds NETIF_F_GSO_UDP_L4 to NETIF_F_SOFTWARE_GSO, then the virtual device can postpone its UDP GSO to physical device, as extention to commit 83aa025f535f ("udp: add gso support to virtual devices"). #2 disable UDP GSO feature when CSUM is disabled. Currently, when disabled CSUM, sending a UDP packet who needs segmentation will will fail, but from user-space the UDP GSO feature is enabled, so disble UDP GSO feature when CSUM disabled just like what TSO does now. Huazhong Tan (2): udp: add NETIF_F_GSO_UDP_L4 to NETIF_F_SOFTWARE_GSO net: disable UDP GSO feature when CSUM is disabled include/linux/netdev_features.h | 2 +- net/core/dev.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.7.4