Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3189258pxj; Mon, 10 May 2021 21:45:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYgw99178/HJA0bznkCis5zHXgHw4NJv7BMT8qPlEwq3JMVjgdJmo0C+u2bFXOPJWHtAQO X-Received: by 2002:a5d:8481:: with SMTP id t1mr21378734iom.39.1620708336699; Mon, 10 May 2021 21:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620708336; cv=none; d=google.com; s=arc-20160816; b=yTgJdsAkg6UXnG+h1JwiC6BUdmPiy2xGOBvd+PUsgiin86Vq+rsEl4Q/1bpnVLafDZ QC+j8Ah3aiUod62abODRGnMI8r1jLcxdQETx+OpjewJRvsC6aap4tug7KaVcXdRKHfTv AUGuX2z6Jyq9oHrHIfN5BHgb2cu98UsaaaIqazKRHNNcz/vhiOKdP/PPSJ9XxnUrqT3S Lc8z/wK6oB72BQXIuL/k5rNIG6xFBtW1FWHuk9i4rFhUmXLIXuMGyCL7FRNSoArY/e0z niscP3uwxbg6z5RCa0TlCM42+6QTvpgLXYyhPYfQAkIMHinOhWm1yNqx5+giXIm3mDH0 /cig== 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=5pOfhSU30/+74TWykEgYzzcECzknBZN+gG9Fp9jV4LM=; b=INUNpTj+HSNlBq3bXBeLReTW1VUGKO8XQsyRzVl9NDqVRFqiy5aRggc8oUZBLRnNso OnwlrtN633arTQQ7oWXFt9GhuFsy7QBVdXbEYo+LVZ/403Gww2b/oi439kl6q4klzF2H unfHoE/zciXbQ1Tv7Y4USgcuq03P6BRD3JoQA2cbStEkecnEBbF0sNyjBwX1iS2u310c XE2EPD+l/svDScQqud/5rVvexjZ1jpVrofhAXLezdKtW+0fnSi+aulpSN0TwuLO+8rk2 FIY4H+TaI/Ns7j2uWJGSgAJ7S7ATCXz+bstzKkDFy4X4HdhLygvOHTWKNyd5ZTVxhqQi ZCwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=nh8fG27g; 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 g2si1827041jaj.107.2021.05.10.21.45.24; Mon, 10 May 2021 21:45:36 -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=nh8fG27g; 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 S230314AbhEKEog (ORCPT + 99 others); Tue, 11 May 2021 00:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbhEKEob (ORCPT ); Tue, 11 May 2021 00:44:31 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78735C06138C for ; Mon, 10 May 2021 21:43:25 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id b11-20020a7bc24b0000b0290148da0694ffso446119wmj.2 for ; Mon, 10 May 2021 21:43:25 -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=5pOfhSU30/+74TWykEgYzzcECzknBZN+gG9Fp9jV4LM=; b=nh8fG27gkiOXB9Nd6Ql5AKT5b4yZ4SDOzi0e2MCZrznnSTBwvbi3UvjCMFYtvSaa5e T5aL7BE9xtRQRhLITeB3qJFmGhMcI2W79nl6PLA8YvU4Mhhm1zyShXvMLKwy62DHATZL deNH+G75y8mvkk3t3ZPupo6Mop+VgxQ1XhVfVkLLJ6lonX3bRpoevXYxsuFmxrfwQWNC 9V/KziU2Eu967HWhLsQJq/0+fpFxuiw3xvw7fZo5uiMybxBVxXT2SxRxDVKSGKstA2jh OhohXmo5shuPLwlqD7ikkEvUQiQjGWXdUEAqvLWNSoHSAYPK/hzkqwIiwmg4gmZFxMaq pF8w== 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=5pOfhSU30/+74TWykEgYzzcECzknBZN+gG9Fp9jV4LM=; b=SfcT9dTO5iyc3WTMDHlMfc7LgV5+rNEAi9utvDF3C5aEY1H5eNzpYrs32o88ncQaHq A0ITNZ0QWoxUXchRMhox+b1CX/VMsQFeEt7iKbx5MY5i4cwzKZSv/A7Jpo63YaFj4cW2 wyf3oGXjwRUswz+18Sc+AGy+JfaskB7J+vpSMjd3YeF8eVi+lAPFMick/yF4ivZ6u1Ek UuepGfUcugfxEyJWky8HqmhJeKngEEC46UprdMO6XDops55iCkObydg8rZ7agKslQN/V 3BhAVJx8fwuFOs940IromtknilQl50utTEzNHe245nSVue0oAIjrDG/PB4+pBzM6Vq2Y priw== X-Gm-Message-State: AOAM532xNirCvjG7K8N/pfC0GjBD4GmF5qqzBwDJ3axkcL2Hm5D5VruW 1kCnAKph+fCYl15G8LbK0kEnNw== X-Received: by 2002:a1c:7dd1:: with SMTP id y200mr2960343wmc.81.1620708204150; Mon, 10 May 2021 21:43:24 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:23 -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 3/4] tun: define feature bit for USO support Date: Tue, 11 May 2021 07:42:52 +0300 Message-Id: <20210511044253.469034-4-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 User mode software can probe this bit to check whether the USO feature is supported by TUN/TAP device. Signed-off-by: Yuri Benditovich --- include/uapi/linux/if_tun.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 454ae31b93c7..24f246920dd5 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h @@ -88,6 +88,7 @@ #define TUN_F_TSO6 0x04 /* I can handle TSO for IPv6 packets */ #define TUN_F_TSO_ECN 0x08 /* I can handle TSO with ECN bits. */ #define TUN_F_UFO 0x10 /* I can handle UFO packets */ +#define TUN_F_USO 0x20 /* I can handle USO packets */ /* Protocol info prepended to the packets (when IFF_NO_PI is not set) */ #define TUN_PKT_STRIP 0x0001 -- 2.26.3