Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp521337pxb; Tue, 3 Nov 2020 05:54:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1x3C6KCo+1Cd+TygMoiyzXN1CK1sOWb1QyGFWKZSCsZA8PTCW91O7HpFw5g3ETmFHvv3X X-Received: by 2002:a17:906:a14c:: with SMTP id bu12mr20842250ejb.444.1604411647367; Tue, 03 Nov 2020 05:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604411647; cv=none; d=google.com; s=arc-20160816; b=XwpbWOdiPEI8M9Z2UzhQyHolXBLTZLDhYz6f1I0DdbQxVJmg13cUtyy+oX+bU0rlvC 9aJ1mudcC6dxxmfY03JLDL0MJEkRVmmf/LqyHSh1svI34PAJXz+jvwXB1j+r8mGbT41b Ze8iX+tVV68O2sY7RENKqZiyAfvxrB5i2i3HbLzb+FjLsjcCbSOpLv+HZYO9U89m4EUA X7MJnmYB27aseQfUWAn6MSR9z6X7dhXBcLbi9argL3UtII61tFgkN+1ChUzMTfHeYMs6 GouhC3WQEsGCDkgGAi+1Bdt7xs9osGHmWf4FukOtiinr7FxTHoBa7aqv/hhSPUoT3doC D0RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dyUYOcjllfFZt74DfN+Csqx5pBnDAf0Ujg4JJ2J6DWI=; b=VctEoeD3+MsRbEy1wOiKibjSCE0zdFmub82rQtieIm+W28+0Ftk04B5tSevS7yTf4M QAyOtrxmiND0YMXzNGlWblU2DnmKfgBM+VRxd+mvKGgurmEZ3vhA52lwqV/9nnkNGWV5 RrWXqpbnv0jC9aJChFZiHyeSV5KTPJDn7armNFU2im2ebTOb03zM8MWbzB3xHFz/vPmH M2uGgyusDdXtGZ2rwxEauYy3hLicIROeokD+NOLz20ujojr6dOPhFFRidIfyymRqMr3m 15kWN433O0tg8FuRZ053ZQ3gKNfDD7A6Thh2rJeWKl8+ih+TuuvK3g/hq/FPHTgX0bqh 7MSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D3+1Gx4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si13841837edr.463.2020.11.03.05.53.45; Tue, 03 Nov 2020 05:54:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D3+1Gx4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729494AbgKCNwS (ORCPT + 99 others); Tue, 3 Nov 2020 08:52:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729362AbgKCNv2 (ORCPT ); Tue, 3 Nov 2020 08:51:28 -0500 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D44C0613D1 for ; Tue, 3 Nov 2020 05:51:28 -0800 (PST) Received: by mail-vs1-xe42.google.com with SMTP id x11so6860663vsx.12 for ; Tue, 03 Nov 2020 05:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dyUYOcjllfFZt74DfN+Csqx5pBnDAf0Ujg4JJ2J6DWI=; b=D3+1Gx4Mvug++MFnpMZ6W6WrP9GjI4Nnkl04l9thXx4ygrWTuubcyof9vR8jiJby3Q 8g51nnx6Z9IPk4/2BH1aQdup5vDm0qu/uuhQhgRnM5oVyBYq3wiAw+REqhgxxCeGyYwP z+h907vWorEpf/kGXyXGcojoQyJwo9OBt+1e5uC7LbwaYPzvvl7CSS5MNUrUbAJIRqsX cGWoX59Obqcs4W9Y/so6Sruw6/PsRm3GJjoS6sN7PRfX20Si9tI9ZDxlRRg3m870wzZE f6NwnAASZuQk1Zx6KWiX/DAi+OEiSFgClfXkiN4I9ktJl05cJ88JYY4urWZGkgASmgSC UWLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dyUYOcjllfFZt74DfN+Csqx5pBnDAf0Ujg4JJ2J6DWI=; b=n5gl9IN/+m6vFHJwD9h9dGRGwS9WOSZqOPVgrGPPZpS4r75d2+povUFX7cql4mAPVI C0C4v0M/yXllStJYoHym05RpPanFyQyPAq4MVCyONyotnItlulpMHB9a/eU3wEiArZVH OlTka+zwWdHwIfxmBBJ8dxZX6FlLaPwN36z3S3bCL/+b6/XKVNPg6W/nm6ckuC7AlAP6 YyUG0jyZbLQfiqx3ptOXuVS375siPC3VcsSL9tJs+KeNqvhPGVg5CtGeLv77lU8q4EpU TzmNWBFPnFs+wNi7IqPzzYekUHcQKmrW3XaywJCmlSz02uz58ki5UwUQt/VWlCThpeqO 1h3g== X-Gm-Message-State: AOAM530DiRw2lEChtf2iYpX2UDgzPmhVgFzdv3c90afndvljJm+4k+/5 /Kt53Fabx0dLGLi8LMMIIFYdOK1R+Ck= X-Received: by 2002:a67:1644:: with SMTP id 65mr18920203vsw.41.1604411486364; Tue, 03 Nov 2020 05:51:26 -0800 (PST) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com. [209.85.217.46]) by smtp.gmail.com with ESMTPSA id 102sm2055814uan.14.2020.11.03.05.51.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Nov 2020 05:51:23 -0800 (PST) Received: by mail-vs1-f46.google.com with SMTP id t8so6668007vsr.2 for ; Tue, 03 Nov 2020 05:51:22 -0800 (PST) X-Received: by 2002:a05:6102:240f:: with SMTP id j15mr8193952vsi.22.1604411481813; Tue, 03 Nov 2020 05:51:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Willem de Bruijn Date: Tue, 3 Nov 2020 08:50:44 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [net-next PATCH 2/3] octeontx2-af: Add devlink health reporters for NPA To: George Cherian Cc: Network Development , linux-kernel , Jakub Kicinski , David Miller , Sunil Kovvuri Goutham , Linu Cherian , Geethasowjanya Akula , "masahiroy@kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > static int rvu_devlink_info_get(struct devlink *devlink, struct > > devlink_info_req *req, > > > struct netlink_ext_ack *extack) { @@ > > > -53,7 +483,8 @@ int rvu_register_dl(struct rvu *rvu) > > > rvu_dl->dl = dl; > > > rvu_dl->rvu = rvu; > > > rvu->rvu_dl = rvu_dl; > > > - return 0; > > > + > > > + return rvu_health_reporters_create(rvu); > > > > when would this be called with rvu->rvu_dl == NULL? > > During initialization. This is the only caller, and it is only reached if rvu_dl is non-zero.