From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: Re: [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD Date: Wed, 6 Jan 2016 12:56:58 +0900 Message-ID: <568C908A.2070008@igel.co.jp> References: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> <1448355603-21275-1-git-send-email-mukawa@igel.co.jp> <1448355603-21275-2-git-send-email-mukawa@igel.co.jp> <20151217114223.GC29571@yliu-dev.sh.intel.com> <56737A5E.1030803@igel.co.jp> <20151218041536.GI29571@yliu-dev.sh.intel.com> <56738B5C.1030206@igel.co.jp> <20151222034158.GH18863@yliu-dev.sh.intel.com> <567B61D6.1090806@igel.co.jp> <567BA5B9.5090006@igel.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, ann.zhuangyanying@huawei.com To: Rich Lane , Yuanhan Liu Return-path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 66BD3941C for ; Wed, 6 Jan 2016 04:56:56 +0100 (CET) Received: by mail-pa0-f53.google.com with SMTP id cy9so226100956pac.0 for ; Tue, 05 Jan 2016 19:56:56 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2015/12/29 6:59, Rich Lane wrote: > On Wed, Dec 23, 2015 at 11:58 PM, Tetsuya Mukawa wrote: >> Hi Rich and Yuanhan, >> >> I guess we have 2 implementations here. >> >> 1. rte_eth_vhost_get_queue_event() returns each event. >> 2. rte_eth_vhost_get_queue_status() returns current status of the queues. >> >> I guess option "2" is more generic manner to handle interrupts from >> device driver. >> In the case of option "1", if DPDK application doesn't call >> rte_eth_vhost_get_queue_event(), the vhost PMD needs to keep all events. >> This may exhaust memory. >> > Option 1 can be implemented in constant space by only tracking the latest > state of each > queue. I pushed a rough implementation to https://github.com/rlane/dpdk > vhost-queue-callback. > > One more example is current link status interrupt handling. Hi Rich, I appreciate your implementation. I can understand what's your idea, and agree with it. Hi Yuanhan, What do you think his implementation? Thanks. Tetsuya