From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by dpdk.org (Postfix) with ESMTP id AEF257CAC for ; Fri, 1 Sep 2017 22:03:42 +0200 (CEST) Received: by mail-pg0-f49.google.com with SMTP id b8so3221406pgn.5 for ; Fri, 01 Sep 2017 13:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ej6g7oEkZGx7mU5UqJEjgJsOrVimlYvpyJiOV23zOnk=; b=vI+ci2Z83cttThQ6sXcJo5DWjkLVNFBGBKzfqb1U9mfMqh/OJ0mkGIU8OKt3IE47ZD K3u9/uHt+8fEYZjn0M7hwSqqcLAVUlDSiIpEJ6Mnm1bf2qyahh2eZzpy+8IAVXAphnDE wIiFH4IhTWkP6tAwJq7bBG0PCaxM7rQm5R5C2cjRZUQ8b8Qr2WL8e9acUwVCMPL39Rhm 4UOzo+ueTIK98LiwbghjleJ3+Rq4lJGe32as8xPIAAKohQ/LeySzb/hbuFcjz6e5c8eB /bTbA5elmAuTebwSZNJz/BMrYpxWyogxMHwl4N/WzwBij4NoJ2r1LyYDoJd9hmQJ/Zg8 lBqA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ej6g7oEkZGx7mU5UqJEjgJsOrVimlYvpyJiOV23zOnk=; b=mHHNi0IO6e76+AhFK77f8J6ndeA9mAzR5Sd0gEuhpRIeiLzZFPLJskIukt6BLLHBH4 wrIs99QTddzADXtXR0injOatxBDucg7cmJe6I6J8OOhfpiiRxLzZzwTzG+j5kt6L6m9i IHmlfamx4QxauYsbl/j2axBB3NaztO0eRdYe38VfSEAHJ/MBXk93oEmqQoGJx8yIplLb HQmJMJ15/Y7K+izN/Kkk8FZdEGmCrGHwiSmNvcRySqnXH2Hxm8XIwWIMHJSWe0NKaQwk 8bw8p7LMTIOGrI8dc6iD7ZAlXZcIR+vxBXFl6Q+dVjLRUcvGCuFWcbC6PJG5aTjuu0EC L56g== X-Gm-Message-State: AHPjjUiCcS1DlcOkM31kkRnHB7rM8/EnbNKxJwd6K/LtZgF96h6E0zYD 6cRin+GeRZlRrIGU X-Google-Smtp-Source: ADKCNb6TEiWv4C8H+Hy4Y7O7sz9bPQHulF786WsZ0BR5tMmplXeUU9jAVfnndkavcl6cEorVH7MLiA== X-Received: by 10.99.105.195 with SMTP id e186mr3697063pgc.446.1504296221799; Fri, 01 Sep 2017 13:03:41 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id w88sm1304144pfa.103.2017.09.01.13.03.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2017 13:03:41 -0700 (PDT) Date: Fri, 1 Sep 2017 13:03:39 -0700 From: Stephen Hemminger To: Amr Mokhtar Cc: dev@dpdk.org Message-ID: <20170901130339.76dc0457@xeon-e3> In-Reply-To: <1503668796-65832-1-git-send-email-amr.mokhtar@intel.com> References: <1503668796-65832-1-git-send-email-amr.mokhtar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC] Wireless Base Band Device (bbdev) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 20:03:43 -0000 > +/* Forward declaration */ > +struct rte_pci_device; > + > +/** Device information structure used by an application to discover a devices > + * capabilities and current configuration > + */ > +struct rte_bbdev_info { > + int socket_id; /**< NUMA socket that device is on */ > + const char *dev_name; /**< Unique device name */ > + const struct rte_pci_device *pci_dev; /**< PCI information */ > + unsigned int num_queues; /**< Number of queues currently configured */ > + struct rte_bbdev_conf conf; /**< Current device configuration */ > + bool started; /**< Set if device is currently started */ > + struct rte_bbdev_driver_info drv; /**< Info from device driver */ > +}; Please don't build in dependency on PCI from the beginning. Number of queues can be uint16_t ?