Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp484223imn; Thu, 28 Jul 2022 06:47:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t30NSp8lzfLw8Jz4E1sxFGb0HL1g1PK0DDcSw6p3H5NoWrEK/gNGcYxRo9FI6CBPfY0RFi X-Received: by 2002:a17:907:3d87:b0:72e:dcfb:5ca7 with SMTP id he7-20020a1709073d8700b0072edcfb5ca7mr22212184ejc.586.1659016067188; Thu, 28 Jul 2022 06:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659016067; cv=none; d=google.com; s=arc-20160816; b=GmPXv5ZGejtPv/LyUbvlq0egwDpLLUfSkXVHfB1dvMwRVeSp1uop7sFgxDVeymgay1 kAk0sFD2MVWMy3soE5lhMZpArxbsVchYuxHcMHPQNpK30B1lW4OqSAcuyxuonTE6HyBM rAcFNnGApGAS5wqTeT97Vtg0DnVAeeLVzmkcu2pH1vzYffE38jbvGPt+Sd2T3r+1Euhp NBtpFsgsxIsuDIr1sqit9ayw/dmXiHs5iBMHNd9+BszfQzu7gQscEI0/hM+HKRffWKmE S74Q807YwXTibGGer7cBEX2PmMUFU71ga7ow3pVHMGyVUA5quqOwpEPVr6BClkPvUSrG eLlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e2aRA4oShO3rcHQwn3d4gkYplDcEMSwuuAnIV3K8o2Q=; b=EtK6kcGaqE9Zt+N2ypa8GSmaqGIVUGRC3nny07nyWykBceHT6b2gB+tndW2hdXMUqI OGfZ79N6e3/xsE0lHoWb0wEUi8j50Pt655TYPMs0CrBqVBYh065gAAnbSBKLZ6K0H0JW f/P2ddBCZnNa/seCV3J4R0dwq43EnOJJUbfFCjQKLqnN8O2R4a4Gs25WEvB9RryFDp0z u6F8vZxVNV8sdgfCv3dsDmEa0/juqkTb+c82I0JjP5mX/dkDsjoAfF3AsusoyMwlYctU N+/aRw4KN5HGKVP5eHV1UOBisfvrmXkLGg0KWgRqBNY/26SJh/4yAZXqaOgGLwGxIzie loOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6Ub0R7uZ; 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 eu18-20020a170907299200b007157046560csi490933ejc.884.2022.07.28.06.47.18; Thu, 28 Jul 2022 06:47:47 -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=@lunn.ch header.s=20171124 header.b=6Ub0R7uZ; 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 S238876AbiG1NIG (ORCPT + 99 others); Thu, 28 Jul 2022 09:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238518AbiG1NIE (ORCPT ); Thu, 28 Jul 2022 09:08:04 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE0525E86; Thu, 28 Jul 2022 06:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=e2aRA4oShO3rcHQwn3d4gkYplDcEMSwuuAnIV3K8o2Q=; b=6Ub0R7uZ5U5TkIk5V1ocXPS0HH 3gWNd7c02bhaCyypM1OIgyxaEN85a3Kj9nSfSOaKtH0pZyQUm1UUTeTUMG8w+y8qYx9LXuInvTopi Y7tbBC0tDMBD5Tj0WJgFPEJzI/B/6nKXOZB2kN8v8mQAeHT2sVT+O+t/5wL6tqsEHAHc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oH3F1-00Bo2q-Ey; Thu, 28 Jul 2022 15:07:51 +0200 Date: Thu, 28 Jul 2022 15:07:51 +0200 From: Andrew Lunn To: Antonio Quartulli Cc: netdev@vger.kernel.org, David Miller , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [RFC 1/1] net: introduce OpenVPN Data Channel Offload (ovpn-dco) Message-ID: References: <20220719014704.21346-1-antonio@openvpn.net> <20220719014704.21346-2-antonio@openvpn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Thu, Jul 28, 2022 at 09:41:11AM +0200, Antonio Quartulli wrote: > 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. You could, but out of tree is even worse. You have even less idea what environment the driver is running in, so the version is even less meaningful. You need to ask be bug reported for even more information. Also, using a mainline driver out of tree is not easy. The code will make use of the latest APIs, and internal APIs are not stable, making it hard to use in older kernels. So you end up with out of tree wrapper code for whatever version of out of tree Linux you decide to support. Take a look at https://github.com/open-mesh-mirror/batman-adv for an example of this. Andrew