From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [PATCH net-next v2 4/4] virtio-net: initial debugfs support, export mergeable rx buffer size Date: Wed, 08 Jan 2014 14:34:31 +0800 Message-ID: <52CCF177.7020500@redhat.com> References: <1389072355-20666-1-git-send-email-mwdalton@google.com> <1389072355-20666-4-git-send-email-mwdalton@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Eric Dumazet , virtualization@lists.linux-foundation.org, "Michael S. Tsirkin" To: Michael Dalton , "David S. Miller" Return-path: In-Reply-To: <1389072355-20666-4-git-send-email-mwdalton@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org On 01/07/2014 01:25 PM, Michael Dalton wrote: > Add initial support for debugfs to virtio-net. Each virtio-net network > device will have a directory under /virtio-net in debugfs. The > per-network device directory will contain one sub-directory per active, > enabled receive queue. If mergeable receive buffers are enabled, each > receive queue directory will contain a read-only file that returns the > current packet buffer size for the receive queue. > > Signed-off-by: Michael Dalton This looks more complicated than expected. How about just adding an entry in sysfs onto the existed network class device which looks more simpler?