Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5586964rwb; Mon, 5 Dec 2022 00:54:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LCzygTnucAGjzw/Im1uLCCcISX29u9jV5WocEN/tMhYnLKilv/xM/8wzxYDUA5AcRAzXa X-Received: by 2002:a63:1f48:0:b0:439:db5:f817 with SMTP id q8-20020a631f48000000b004390db5f817mr56458636pgm.310.1670230492732; Mon, 05 Dec 2022 00:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670230492; cv=none; d=google.com; s=arc-20160816; b=08X+tqxP4psjGkQPuO7xGPgGCPNW5O9RgTeLWllyPjN5EH5f6NCuDA6uyQnCOg1wRl kRRg/bFLCTEQj8otFk9iHUwepyXkey8RobouDmVIF2GbT05AAG+1OhaJR0wWQbv0IIEO Qku5FDUOa1+ybPtD9cXnHNIop3Mc+g1YuvkKpWqVTt/pQeu+dX/mthVVBTcHCaG9LIAB rjWHKekskY4oa0fjC5yA0qIxe7ZkBGFyDq7gZhTV2qa2SFBiWpbMETcHwIaVap5gFRC2 QiwDJyagx/c9xDEdLNEOe7VBYjPCoIj+vDtuiK8Fsg+h/8oc78HQLHURK5GjmUnGJfLJ ClnQ== 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=5GoPq1RE9QKxWATAGypw5x71DRntckYv+QbZAUCc6Vw=; b=hzlTgedDn5pugZAAuNjqTaR9WBJ1JBM9Z5YipSzv2M9rCtq4o2e8RRbwbs1Y5okJfv lCn9ZXdtM4hn8PecbiGsEV+zAeZayFVZn+W7DfHpIERZGU16OOdHDGwhr3wtm+vKEp2N tEJR2/higU6pV0Q/J4BgRUC8lYjeTU8uOQFoHai19kHPsRE3akoBMogCrPL4DvGSLYWl p0GzM3DLqtwihJ5ZvR7XCPqHgeTx1K/7ntvS58sPRM2XkUeRKIo2mnQMYAV0aiFh8x0H 68xbm1rVgJpyag5ZmCCLC/VnFXcqhCjSIx9aZhAgNQebwgANSw8C9m/69FvYiZjGOKbd XjhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UXypBBHu; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a621a04000000b0056ca60d51d6si13865439pfa.365.2022.12.05.00.54.41; Mon, 05 Dec 2022 00:54:52 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=UXypBBHu; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbiLEIK6 (ORCPT + 82 others); Mon, 5 Dec 2022 03:10:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbiLEIKn (ORCPT ); Mon, 5 Dec 2022 03:10:43 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE5112768; Mon, 5 Dec 2022 00:10:42 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id BA1B1CE0E70; Mon, 5 Dec 2022 08:10:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24F31C433C1; Mon, 5 Dec 2022 08:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670227838; bh=bJfx2nisTz0YoKUNfyf6INNDFLiT9EB6dkRFocRpzEo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UXypBBHuFXuB/WTm2gRXmQlrRlINa08iA/+Rm5vw64/4uj4uMXlCLCfAqVjRSUDy5 xfTbNfyQr3WxHRi1ceV9MCCaLq89CJ3gsqU6RGTePGin2CTWCUsVbbItr0qPM9hqmN yF8Z/d2nSfWc/kFnruNiCkrq0q/09lNOC4CLT5KBfBUNlgnf4uKrYxCBILoJPBbmvO J8QrShIAhdcvCmkgnQSWcQJ6OOTW1exbeiEcsWdnhkw+qhGeNbuNLTl45gr3pG51/0 FvfPHvaoA46PINU7CQ8ZN/kqCg5nFKRRNTsLLPOkVENCvqr3k+biKGG/p/wfg4PUzS aGLWiass2x7vw== Date: Mon, 5 Dec 2022 10:10:34 +0200 From: Leon Romanovsky To: Veerasenareddy Burru , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Liron Himi , Abhijit Ayarekar , Sathesh B Edara , Satananda Burla , "linux-doc@vger.kernel.org" Subject: Re: [EXT] Re: [PATCH net-next v2 2/9] octeon_ep: poll for control messages Message-ID: References: <20221129130933.25231-1-vburru@marvell.com> <20221129130933.25231-3-vburru@marvell.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 Mon, Dec 05, 2022 at 04:46:31AM +0000, Veerasenareddy Burru wrote: > > > > -----Original Message----- > > From: Leon Romanovsky > > Sent: Thursday, December 1, 2022 12:11 AM > > To: Veerasenareddy Burru > > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Liron Himi > > ; Abhijit Ayarekar ; Sathesh > > B Edara ; Satananda Burla ; > > linux-doc@vger.kernel.org; David S. Miller ; Eric > > Dumazet ; Jakub Kicinski ; > > Paolo Abeni > > Subject: Re: [EXT] Re: [PATCH net-next v2 2/9] octeon_ep: poll for control > > messages > > > > On Wed, Nov 30, 2022 at 03:44:30PM +0000, Veerasenareddy Burru wrote: > > > > > > > > > > -----Original Message----- > > > > From: Leon Romanovsky > > > > Sent: Wednesday, November 30, 2022 1:30 AM > > > > To: Veerasenareddy Burru > > > > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Liron Himi > > > > ; Abhijit Ayarekar ; > > > > Sathesh B Edara ; Satananda Burla > > > > ; linux-doc@vger.kernel.org; David S. Miller > > > > ; Eric Dumazet ; > > Jakub > > > > Kicinski ; Paolo Abeni > > > > Subject: [EXT] Re: [PATCH net-next v2 2/9] octeon_ep: poll for > > > > control messages > > > > > > > > External Email > > > > > > > > -------------------------------------------------------------------- > > > > -- On Tue, Nov 29, 2022 at 05:09:25AM -0800, Veerasenareddy Burru > > > > wrote: > > > > > Poll for control messages until interrupts are enabled. > > > > > All the interrupts are enabled in ndo_open(). > > > > > > > > So what are you saying if I have your device and didn't enable > > > > network device, you will poll forever? > > > Yes, Leon. It will poll periodically until network interface is enabled. > > > > I don't know if it is acceptable behaviour in netdev, but it doesn't sound right > > to me. What type of control messages will be sent by FW, which PF should > > listen to them? > > > > These messages include periodic keep alive (heartbeat) messages from FW and control messages from VFs. > Every PF will be listening for its own control messages. @netdev, as I said, I don't know if it is valid behaviour in netdev. Can you please comment? Thanks