Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp322831imn; Thu, 28 Jul 2022 01:31:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDQlSe6/vWk8qPrbvFukYl3lN0bRbwOuN3e38QkvJnOf4rIWEsvRftSuCgzfkT5WFGCl8U X-Received: by 2002:a05:6402:27ca:b0:43c:2a52:a90f with SMTP id c10-20020a05640227ca00b0043c2a52a90fmr15259000ede.328.1658997072297; Thu, 28 Jul 2022 01:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658997072; cv=none; d=google.com; s=arc-20160816; b=SjvW0kjHg1EHbDatySkf5wVRW+yTkvLLXrn4n/N0vt0QN0LYorkoJpN0HX0AgLdsLw NcznmU3AZKbh4DsohiQQTK2e9FwlcYF00bL0venbuxvDME//mDBzfjn/o3vYgmAvcghW jqfvl5XYMC0xVH7musUqtkU/s7qKdWGuzJ5C2mfQtQ8hTtUPR5bnkHPDHxJMYI1XL2l0 VXShtud66r1QgImkFtKvMB+PB1BV1u8hqE2zRy/Xh2NTuuLdoS4Rj7MbK8YfweJ0L6vd G8iqUruLpf8dc7EpkuJtwQZx6CO7YSHT98tj312quXDNTxjnkIuC61NaJpIx6D6HkZd8 dvUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=m66us4kzQwBTUUPng23gKLRPzB6aKWDSaeFyUYe1NEI=; b=WNNYiDn9EVnp8e4PiwuDKNln3Yz/Uog5c5lBWrR08pv3U4hyIe/p/kAlGil4XRJ7RI wucRYLilgIM7B5U2mXEWpM0RN8jMf9Htnh+h7JGbKdAxX3HtkT3SSpvgbMEAOOkvWxMx GxoJXiKaTtEhMPrbDL2LH386MkMEwsGpV/EFBeBWJ59kvIGRA7dQxlrZoNzvLI6TSrGT l6ZOiejl31iMQEebXVF6N+ukhyWlCO8fgClv/Acbppe2+4Ly362jPJ/P8M6c0kcOMYVz vPf5UZwQ4zlx4QWp6RG3N3u3A00mO0EyZgM5QzJSAP+7kn5lBfGFP1TiYWoSsmHD7ppq moFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvpn.net header.s=20170822-45nk5nwl header.b=Z+RYzJux; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=openvpn.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a50a441000000b0043c25d25046si321382edb.249.2022.07.28.01.30.48; Thu, 28 Jul 2022 01:31:12 -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=@openvpn.net header.s=20170822-45nk5nwl header.b=Z+RYzJux; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=openvpn.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233586AbiG1Hqs (ORCPT + 99 others); Thu, 28 Jul 2022 03:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbiG1Hqq (ORCPT ); Thu, 28 Jul 2022 03:46:46 -0400 Received: from smtp98.ord1d.emailsrvr.com (smtp98.ord1d.emailsrvr.com [184.106.54.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817EF6113F for ; Thu, 28 Jul 2022 00:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openvpn.net; s=20170822-45nk5nwl; t=1658994027; bh=Ll3lGOHj0SIoQtOcdzdr6ctTpQ/ZQPVtYA+Y55SrikI=; h=Date:Subject:To:From:From; b=Z+RYzJuxAeKcyyVCRG3+2jFgDavsQBuV36JsLrJ1tPe6u6BeRqO7P0IcZ69LFe9vV lGgfrW8ycInrKG6wT9NRcN/Sc9JEvBC82riV6ifFmXWMWd5utc79AuQ2qMWarTnMqq NNCmN9WnTCLd0BWqeYZfBlQN5Qjegc+XwMF76YSk= X-Auth-ID: antonio@openvpn.net Received: by smtp5.relay.ord1d.emailsrvr.com (Authenticated sender: antonio-AT-openvpn.net) with ESMTPSA id B74C6A00C2; Thu, 28 Jul 2022 03:40:26 -0400 (EDT) Message-ID: Date: Thu, 28 Jul 2022 09:41:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC 1/1] net: introduce OpenVPN Data Channel Offload (ovpn-dco) Content-Language: en-US To: Andrew Lunn Cc: netdev@vger.kernel.org, David Miller , Jakub Kicinski , linux-kernel@vger.kernel.org References: <20220719014704.21346-1-antonio@openvpn.net> <20220719014704.21346-2-antonio@openvpn.net> From: Antonio Quartulli Organization: OpenVPN Inc. In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Classification-ID: 82aa384a-5660-44d4-8ad5-96a212e0778c-1-1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi, On 19/07/2022 17:25, Andrew Lunn wrote: >> +static void ovpn_get_drvinfo(struct net_device *dev, >> + struct ethtool_drvinfo *info) >> +{ >> + strscpy(info->driver, DRV_NAME, sizeof(info->driver)); >> + strscpy(info->version, DRV_VERSION, sizeof(info->version)); >> + strscpy(info->bus_info, "ovpn", sizeof(info->bus_info)); > > version is generally considered useless information if it comes from > the driver. You have no idea if this is version 42 in net-next, or > some backported version in an enterprise kernel with lots of out of > tree patches. The driver is not standalone, it runs inside the > kernel. So in order to understand a bug report, you need to know what > kernel it is. If you don't fill in version, the core will with the > kernel version, which is much more useful. True. However, I guess I will still fill MODULE_VERSION() with a custom string. This may also be useful when building the module out-of-tree. Thanks for the hint! Regards, -- Antonio Quartulli OpenVPN Inc.