Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2117812rwb; Fri, 12 Aug 2022 12:21:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Wqq+D8AiVgVN2wt+kiSMFXkv8gg1/0xKoP6DP7hxbR+MSP0jSxmxlw8l8AQC+zOx5M0bs X-Received: by 2002:a17:90a:73cc:b0:1f5:353d:7374 with SMTP id n12-20020a17090a73cc00b001f5353d7374mr14973324pjk.21.1660332079979; Fri, 12 Aug 2022 12:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660332079; cv=none; d=google.com; s=arc-20160816; b=uyiZtrMsJCq47wLU6fB1F+cOQHVa0ExIq96toF/zsVxoQV4RrRAUoBpS8H9ZA6lctY VB3IWb0nfgUZXeUzN7evrutq5hnsvLf+HW3rIG7KS5s8uZAUXzevQdq0+MFbdss10nI3 gX1fTU/gqa89rBtYbb/Mtb+c8x6a/5ngYtRmS9r+MfugO4TKS3ByytEEbgIMLAgsiJiJ D7jmhrrj1f6t5CwP1rmf7hMFzBZlKyP0EJF3AkjJfVkQNnhFIE1+qvqbCDx4b792a3Rd Gp2fhtIQzVdJhFxP5O1y07h818e6nJMCjgENx/6EwHuIF6NMI7Fk67YAhUJlnCSAyj05 SnAg== 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:subject:cc:to:from:date :dkim-signature; bh=Jwz3JqA8E4VLI4fm3m0tXIUfFR+R/+giNaaOoAPVjoE=; b=LsqmOfgakKmqH/xDQ56hgorJ/BMs0dNEkJF+8pmMYDPIrO9E+YxeHbkj3w8qHS6lTv 3t51NH7xcDP2C0UsEVkLcDUpR+/SbrVMYe5TXutGwIUtDH9sD4ji8O/hdv9qxmIzARMw m+4arFulLIeNt6UkJnN8ITK59LqIKTPm8XYK9zuoWtJbEBAnfF8czMBR4hDQNbWCxGs3 gM39v2MiA9bq8zL7PJ5+Xjp+wEk7xL/4js2MYL+Obtbm8Hbn+3hcvA0RW6tfkoxNN8lw YA+ctxWbaagTFLEt34z+krmFaSjwx9/si+YR8jfsnWZvnBQ721vyOlhYDNN2dwo3j8Mr ZJeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=scv94rzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020a63f815000000b0041cb0d39714si3126350pgh.360.2022.08.12.12.21.05; Fri, 12 Aug 2022 12:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=scv94rzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239379AbiHLSod (ORCPT + 99 others); Fri, 12 Aug 2022 14:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239369AbiHLSoc (ORCPT ); Fri, 12 Aug 2022 14:44:32 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C6CB4408 for ; Fri, 12 Aug 2022 11:44:30 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id q7-20020a17090a7a8700b001f300db8677so1653806pjf.5 for ; Fri, 12 Aug 2022 11:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc; bh=Jwz3JqA8E4VLI4fm3m0tXIUfFR+R/+giNaaOoAPVjoE=; b=scv94rzjTNbgITmmQH3RiWc35UVRfOskfK9mOBJ3Fe9p1cWAuHq3mFLLCp1tcPL3ej eHFnHjXjMtQ2AuvYO/2RjldsUrNkkVm42q7g4rg5kGir3Keq3ckwp+D05itvJppbKq5h yfSKz2zoDMtcurnDZEiUOAYbFf6UX/gN6GsQWRs4wX2Yuj19Caqg5t4z6mP4TEjeJJZ2 UvJa1e2R4+eyc/bVSzyBZt3DT4tik22vdr9AsU1xCfZX0988xRTVRL1doMJdJsivrdKE gLW1xKDuhzRUKWDS8weuy+bLrQYl1wSg/twcCLNR9UPXViR20LDG9iHljXQxltw9iGlP UmMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=Jwz3JqA8E4VLI4fm3m0tXIUfFR+R/+giNaaOoAPVjoE=; b=UlPlTKn3mia9FJ1TBKIKs9emr3olsETIzbsXaxyRa5H9rlurs4Ohl8hsAxFO6eGazu PhnF1szghwNZ+lSMJDfgaw/YConHJHg10A3owbtO8HA833PrALjcMIodA5IvcB657iGF 4njpJt1Sun0R1HWSbnoN7URNvcMY8krKbXvBCiI8vFCtQBNNEDTFbWuyVjDRfd+JOJA5 0v/shOxkL0h+kwdXSOg+emgSampBxV1KBGw5PXyyJVwGJv/sA7yv0hlcQP4blciNM6Np eEvi45RLk1iGP/iFwEwaW2XC17ZBnnX0SxocTDexLOMBqr0jOwOnzC5Stv2+aMb6kQZu 5KQA== X-Gm-Message-State: ACgBeo1j9FjKPgKRZIgGoHfbpYWt1lVvgdKnjFHvokqHUXf7j/CySHIV 6cSeBgGgbD1RgqFVTFiVeSb+qQ== X-Received: by 2002:a17:902:ce90:b0:16e:f7c3:c478 with SMTP id f16-20020a170902ce9000b0016ef7c3c478mr5284938plg.82.1660329870008; Fri, 12 Aug 2022 11:44:30 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id i16-20020a056a00225000b0052e9cee1f5fsm1933037pfu.29.2022.08.12.11.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 11:44:29 -0700 (PDT) Date: Fri, 12 Aug 2022 11:44:27 -0700 From: Stephen Hemminger To: Sergey Ryazanov Cc: Antonio Quartulli , netdev@vger.kernel.org, David Miller , Jakub Kicinski , open list Subject: Re: [RFC v2] net: introduce OpenVPN Data Channel Offload (ovpn-dco) Message-ID: <20220812114427.05f7393a@hermes.local> In-Reply-To: References: <20220719014704.21346-2-antonio@openvpn.net> <20220803153152.11189-1-antonio@openvpn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Aug 2022 21:34:33 +0300 Sergey Ryazanov wrote: > What is the purpose of creating and destroying interfaces via RTNL, > but performing all other operations using the dedicated netlink > protocol? > > RTNL interface usually implemented for some standalone interface > types, e.g. VLAN, GRE, etc. Here we need a userspace application > anyway to be able to use the network device to forward traffic, and > the module implements the dedicated GENL protocol. So why not just > introduce OVPN_CMD_NEW_IFACE and OVPN_CMD_DEL_IFACE commands to the > GENL interface? It looks like this will simplify the userspace part by > using the single GENL interface for any management operations. RTNL is netlink. The standard way to create network devices should be available with newlink message as in: # ip link add dev myvpn type ovpn