Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3977157rwi; Wed, 12 Oct 2022 09:02:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VHZ0JlF9IcZStgjxHEt6Em5Q0125gm0w4Cmg3Gka9ZtXecG4wKzY23PLHqfSR0Irf8+O4 X-Received: by 2002:a17:907:744:b0:741:36b9:d2cc with SMTP id xc4-20020a170907074400b0074136b9d2ccmr22965501ejb.613.1665590578462; Wed, 12 Oct 2022 09:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665590578; cv=none; d=google.com; s=arc-20160816; b=hAGjJ1t4JZqDYFDI00WJBmf/ClNhsVxkkmsbKBxBT6OHZp781p+z3fozG696B0QlhG RhkAGok3xSglWU+x/f+vhUXWS6AOkETXuGxzJwUq1ujei/hBaXYI8gzFLkqmuV2nc1vO Ailgl3YeV4Ab4YicsVhY4shRsta0osOHk4+/cKmLCJH/bRDRGyMF8aoH/Ux3lUqBgWep uRQOcFPFOxP2EXzUCzND6ensNswub+/FJKjt9Tbrg7TP0SUcPY9w1XFn64IFfF40CIil Jx3JqJ4uPbkV5e6ewn6TLGtag0T9GcV7fQkLatD9AXR/OaJtPXUHYggwUqCAtJ09OjUT u9zA== 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=fgnvZJYkPUB+VhtGp+d+cw64qSb800KMLWbc/jPin7g=; b=b20UdVqlKc8pQE1xfeLlNzK2yx9gLrl110VxovXEtrinXnjtQTO7WW8JbmFAlFxyXU zG5vZtQPUho9i67ULxmbj9mIbCw7AtGgBVTgfHOuf/W1pLsKnjs040sODx/+N3R3lOl4 1Bvi0aKSTwBxQZ7stldNIYPiaGitDXqgx/tq6uXEWOHQWUxhWXm2+sMzMWASiZ49AvXw IOt3WvXR8oV5u2+CQsewRogRMaUu8voPIoife2fP0soCAtaqjiNsBBRLbWGLYF5cFORN xz7UMnhBGYlfSJ81W/CA9OujIveXH3VA8T+NzyRwVcn7xukXrR1kNeVIq5dfMPU3kAGk p9aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R69C1BbR; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170906038100b007828668662dsi13677495eja.195.2022.10.12.09.02.31; Wed, 12 Oct 2022 09:02:58 -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=@linuxfoundation.org header.s=korg header.b=R69C1BbR; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbiJLPx3 (ORCPT + 99 others); Wed, 12 Oct 2022 11:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiJLPx2 (ORCPT ); Wed, 12 Oct 2022 11:53:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90063F2527; Wed, 12 Oct 2022 08:53:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2348AB81A25; Wed, 12 Oct 2022 15:53:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5041DC433D6; Wed, 12 Oct 2022 15:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665590003; bh=ADrm7lpAE3A8hFQl+aJV649fnURlPGKsL0O1UYzaWwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R69C1BbRj5Z++1djDywM2gyLLoULoZvjoRiq+Le4Wcs1yqyO2XO8pfjIQPF2RYb4O 2QYp+JCazbMG55D5mYWe+DoE8oYV2XzYQ7CKd2w3RtY63RKqKnC/tLlwFN33XyvgVQ IPrS1xdfy/VZbXfxqhvlCymSBSVbM5jsKYdmB0X4= Date: Wed, 12 Oct 2022 17:54:07 +0200 From: Greg KH To: Saurabh Sengar Cc: ssengar@microsoft.com, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, longli@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com Subject: Re: [PATCH] uio_hv_generic: Enable support for slower vmbus device channels Message-ID: References: <1665575806-27990-1-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Oct 12, 2022 at 05:52:05PM +0200, Greg KH wrote: > On Wed, Oct 12, 2022 at 04:56:46AM -0700, Saurabh Sengar wrote: > > This patch enables support for slower vmbus channels, which consist > > of following 3 changes : > > 1. Support for hypercalls > > 2. Module params for recv/send buffer sizes > > 3. Module param for custom ring buffer sizes > > Even if this all was ok, you are doing 3 things all in one change, > that's not allowed at all, you all know this. > > Anyway, no new module parameters, this is not the 1990's, we have much > better ways to do this properly (hint, module parameters modify code, > you want to modify the options of a specific device.) Also, you give no good reason for why this is needed at all, nor how anyone would use these options and why they would need to. The kernel should "just work" and not require manual intervention by a user. Dynamically fix this based on the device, do NOT force a user to have to attempt to "tune" anything, that will never work properly over time, AND you are being lazy and forcing each individual user to do the work, making more effort needed overall than just doing it properly in the kernel. thanks, greg k-h