Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3188740pxj; Mon, 10 May 2021 21:44:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8FD51W9P0wUs6m0tWZ6tX32Y2NMlqt0eOMxtozVBZeTvGrf+nVU/3eHbsNyTMDRMKeoQs X-Received: by 2002:a05:6402:110b:: with SMTP id u11mr34855894edv.356.1620708283114; Mon, 10 May 2021 21:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620708283; cv=none; d=google.com; s=arc-20160816; b=wO6NUMQdVHjTfCAG+kVhvgesV0T8EVhCqnlmgbfy0Fz8h5ce/5HgWx8q/nwRybvmSz A3qbNDxENEAhubysevFKX2cu0P6g/5EyjTbtZU1GYYD3lkJtv+LCGn6NBHoaiQR4+FR/ D8yarA+wjOEIOZohS1kuH2MEUaCN29oXkgOWPpSv4K1ozk8jUt9FpDObk0plUejFzmdp AfAPIZpKL6MELtn8f6HjgEB/nvPuINZPSsBIF1l1R4+cxIyS4oTrcdewP3cVsJ2V9sZY Xp8ClSlMquEXO//pPHus2ISLRwEOVYNCJa/zkyp00nK/X64fjLBQxlbiEN5GjUNws/+1 thQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wwaKQDmQQxJQV6OXbMRvBq98650xZ8vtis+SN2tPPHc=; b=mW/nqw6Dj+/wjn425HWxUOsXanAnkQtNeXsSeTWQ9Hcp+uA/5bCeBH/ecTpqbqFLEe T0rbCkekFEiIY6P75cl0A1q9m91+Ti/ZwEiOZ54zR2fsQ9QUOx3JEfdJMW0S9vFS5Aj3 O9qwfIbSbsFiT+QjNhqu1zY+ZBldVtRLmcW0xzsyZDKcBMvDD+e/2uX3fbMpYGmJExLd zbhJLQor/Qvib9WG/UhXJZ5R3MmPYGU5cuept6ig38BPBUhDd5IeOMQDr2J3dIeK4dkq 2xUnwkOOVrURKVMTXzDKNXeco79R/6tq+wNx8UirSdpLkuLy1JkbSMaTKa1G/W/utu7Z TnBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=cUN8rJ9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si17589300edr.567.2021.05.10.21.44.19; Mon, 10 May 2021 21:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=cUN8rJ9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbhEKEoa (ORCPT + 99 others); Tue, 11 May 2021 00:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhEKEo2 (ORCPT ); Tue, 11 May 2021 00:44:28 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83E6C061574 for ; Mon, 10 May 2021 21:43:22 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id p14-20020a05600c358eb029015c01f207d7so468403wmq.5 for ; Mon, 10 May 2021 21:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wwaKQDmQQxJQV6OXbMRvBq98650xZ8vtis+SN2tPPHc=; b=cUN8rJ9cxcb5J6kh+EpJHFwm6r407tanaasfSpuHrGBM+kNjPeuj+uFStN0RAyeYO2 G7ZGTP5X4SVe+KtQutvXBZDfqcDiuskFS3LGFUH2BRfM9lRvRLN0hKenJODEmwH3MYSx cauxYNlkBpoVwDHMP7d9Kn04PWpufgsktbdx+tXD2qVh7s1mG7xpm4WItZHcC2CXAly/ UVWK36bjkh2N+7p+DJfuraSMYBSlv+TZLPEXdCcUBZyVhgbCrtnEmTD+CkVLh5ZbYhWI BmZhfvJ0CkntkYidpQZApE2hWLUZMQ0OSV70dYLDAgnLX+fGTMG6C36Mxba+O8TpQFqJ XEog== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wwaKQDmQQxJQV6OXbMRvBq98650xZ8vtis+SN2tPPHc=; b=Cwd499dSiGfvsLMYlRKTdvveimPPSwrIfEGZzDKbm3KW6Tkfl9ZIQxQPmW1J2Ct14M GTnQ9Ms144LO3icgd/Zonfht8kZSi8pSMXEy7fcQJv9m81awMtpLiee2Wy5IdmCW7H4B jWGKQuy5ZrjhBcMfpvcEFIauZTkxO47LN4oNTWirhMkdhfnlmqzbZ+XNAKK/3Y68tL5R 4fcjHUTF7om85Yqaa2/KEIrYpkW+R72y+Um/uvxXImBROlDx4R7jOGpbnekfk9Tc0Pj6 SYtWuSWnzX5AeqdL8HDjzFfjoYn+u6ICmniK6KD4D/66xY/eSBampDOvUwR8cK7tknWt 29SA== X-Gm-Message-State: AOAM531crywdkaLX9axZZb0fMmcHGS5F1hPoqFpi8R/sBhjPOdcZaA5l /Xk7x5ny87o8Vcz7gmjKuqxkMg== X-Received: by 2002:a1c:1b49:: with SMTP id b70mr30552226wmb.147.1620708201504; Mon, 10 May 2021 21:43:21 -0700 (PDT) Received: from f1.Home (bzq-79-180-42-161.red.bezeqint.net. [79.180.42.161]) by smtp.gmail.com with ESMTPSA id a9sm22360520wmj.1.2021.05.10.21.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:21 -0700 (PDT) From: Yuri Benditovich To: davem@davemloft.net, kuba@kernel.org, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com Subject: [PATCH 1/4] virtio-net: add definitions for host USO feature Date: Tue, 11 May 2021 07:42:50 +0300 Message-Id: <20210511044253.469034-2-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511044253.469034-1-yuri.benditovich@daynix.com> References: <20210511044253.469034-1-yuri.benditovich@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define feature bit and GSO type according to the VIRTIO specification. Signed-off-by: Yuri Benditovich --- include/uapi/linux/virtio_net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 3f55a4215f11..a556ac735d7f 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -57,6 +57,7 @@ * Steering */ #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ +#define VIRTIO_NET_F_HOST_USO 56 /* Host can handle USO packets */ #define VIRTIO_NET_F_HASH_REPORT 57 /* Supports hash report */ #define VIRTIO_NET_F_RSS 60 /* Supports RSS RX steering */ #define VIRTIO_NET_F_RSC_EXT 61 /* extended coalescing info */ @@ -130,6 +131,7 @@ struct virtio_net_hdr_v1 { #define VIRTIO_NET_HDR_GSO_TCPV4 1 /* GSO frame, IPv4 TCP (TSO) */ #define VIRTIO_NET_HDR_GSO_UDP 3 /* GSO frame, IPv4 UDP (UFO) */ #define VIRTIO_NET_HDR_GSO_TCPV6 4 /* GSO frame, IPv6 TCP */ +#define VIRTIO_NET_HDR_GSO_UDP_L4 5 /* GSO frame, IPv4 UDP (USO) */ #define VIRTIO_NET_HDR_GSO_ECN 0x80 /* TCP has ECN set */ __u8 gso_type; __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */ -- 2.26.3