Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp342669pxa; Tue, 11 Aug 2020 04:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMtzS/KkDgT9OPg+0qOsHORqYT9fwMSC5UOn78wjoEWGgBlttQ+JfgMV3qt2vUcnCKqZ16 X-Received: by 2002:a17:906:ccda:: with SMTP id ot26mr834284ejb.389.1597145701095; Tue, 11 Aug 2020 04:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597145701; cv=none; d=google.com; s=arc-20160816; b=VzbryBLG1+MXJT1Tr/seFRRuXKCm7t9dbGAuzgSgBzMR38VZlhn7AZGS0wAzFll53S 9YM27mcLLP/8Nz0xKUir4W0yv+22KOg48dNOhFCDRa2fM/PCg0Tp7BPM5oivbngf4d7e 07S4JFNrAW1OkyqLWUt7uIkJcB0o9h5V81OddYiQyGiqUJ6eiIt8lrsODy1uJCJn8zAb iGKJejAiMSBj8CRNNINQqbAGn+D7d4JGHM9iCxEalyVIV+Ga/3qYYeBxHs2rbcxXxnPh MBRJN6f5CyvTdR8xNHbbA59u/sTPFxHFlfRbhkC4ZLjBv1zA0MvdxWcldUDlnFBs0Pyo kcKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GiCPzZPtpDgWrMbwVo68Gc9UUX4p+0NK8qKoCf+Lg2k=; b=qiFD9c+SJMORlHcJV47WWFxNz+FieNUr6tOsB5h7d92hm+W8dNv6dBFGlGqA891xgU V5cP5uyismFhv6d3KB/14TC3D6IGKwV6mYIfE0zs1CU9/NP/4sU+WsM4+nXQnlDpaO3Z RIFR8WyIb70ghiol5DmyNKrfvcQtl2F6R+Q/jYZ+qZV62GpQruZ340sqQv979MT2K9hv hDA8e8k3PGKNqpzIIiMr0NgVJAWivPIWKO8RX2k2KWEsj2dFCSm0hPPTRAB1+tJZqCe1 17wk/jT6xp7n6E667nHtan00Nrug2BiRB7LCorO9XhfwpMqwLBgoqe6ZUDypFZ6BTAwA pzlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gI/FeK23"; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh17si11891175ejb.256.2020.08.11.04.34.38; Tue, 11 Aug 2020 04:35:01 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b="gI/FeK23"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728803AbgHKLdv (ORCPT + 99 others); Tue, 11 Aug 2020 07:33:51 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:36941 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728681AbgHKLdt (ORCPT ); Tue, 11 Aug 2020 07:33:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597145628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GiCPzZPtpDgWrMbwVo68Gc9UUX4p+0NK8qKoCf+Lg2k=; b=gI/FeK23M41k5meXY2J3IjYS42tHdB/K+Q1SVuMTLjw/wOcxZKxrHCBl5TYqCEDw3L38MC vOvtkbvH0nJ7WoGChrB5viI0Sqm8a6EcILU1BhptpSKGVDYxRKVdGHZoKy0wL5MbqRxTLb 0b6Duxx1rjRItchpsi4zA7l+V2aYmWk= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-346-dHyKlMmDMjy9IUCaWdNOQQ-1; Tue, 11 Aug 2020 07:33:46 -0400 X-MC-Unique: dHyKlMmDMjy9IUCaWdNOQQ-1 Received: by mail-wm1-f72.google.com with SMTP id v8so867072wma.6 for ; Tue, 11 Aug 2020 04:33:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GiCPzZPtpDgWrMbwVo68Gc9UUX4p+0NK8qKoCf+Lg2k=; b=fouaew8Nw2fV4S9YkfArMg8WkcisQYxH1GTsbLo6yb1n233MKJLFxs1rVM3SmsrJgP 1v0WFwzQPS/guY4Br9XONX9x0+bjd85kgQCeuaXG/vfBqThpAfxczYycu4oatx5cPgIw YTGURwwC5fNs8FE35KBVgTU3QhSZZVr7WV87cXtnzJSfUv6Ii5y+oxpIGkj8Eg9/Pp8j EsHE+ctsDY8GxpBLz9HhZcIvefJO1hIIWHc+1Mml/OVG3Ylm7SLXNwfrLB5jZmH0fYn3 cCYJXsrMAP3n4FYojScOr3FEraNdFj5BAa2LN6dgVl0z3y7EWb0d0iOMZ1ijZTdSsPXc 64Hg== X-Gm-Message-State: AOAM531WW3HuxOPzVFAgcutG2bU4h6DEwZafmeA+WjFzA8Xi1Wtlp/13 D5ltwfb2jEEn9ZMBHF7DOkLSOdl8V30UatE47LJIisYYqOzb2Yha8R0y7KE3rYy3X+XO8Gg/Lo1 JIDwBAVBCBmFlqigzErJOjmXV X-Received: by 2002:a1c:2dcb:: with SMTP id t194mr3499780wmt.94.1597145625675; Tue, 11 Aug 2020 04:33:45 -0700 (PDT) X-Received: by 2002:a1c:2dcb:: with SMTP id t194mr3499766wmt.94.1597145625527; Tue, 11 Aug 2020 04:33:45 -0700 (PDT) Received: from redhat.com ([147.161.8.240]) by smtp.gmail.com with ESMTPSA id 32sm27064327wrn.86.2020.08.11.04.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2020 04:33:44 -0700 (PDT) Date: Tue, 11 Aug 2020 07:33:26 -0400 From: "Michael S. Tsirkin" To: Eli Cohen Cc: Jason Wang , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "eli@mellanox.com" , "lulu@redhat.com" , Majd Dibbiny , Maor Dickman , Shahaf Shuler Subject: Re: VDPA Debug/Statistics Message-ID: <20200811073144-mutt-send-email-mst@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 11:26:20AM +0000, Eli Cohen wrote: > Hi All > > Currently, the only statistics we get for a VDPA instance comes from the virtio_net device instance. Since VDPA involves hardware acceleration, there can be quite a lot of information that can be fetched from the underlying device. Currently there is no generic method to fetch this information. > > One way of doing this can be to create a the host, a net device for each VDPA instance, and use it to get this information or do some configuration. Ethtool can be used in such a case > > I would like to hear what you think about this or maybe you have some other ideas to address this topic. > > Thanks, > Eli Something I'm not sure I understand is how are vdpa instances created on mellanox cards? There's a devlink command for that, is that right? Can that be extended for stats? -- MST