From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 0EEA3C2FC for ; Mon, 25 May 2015 19:46:46 +0200 (CEST) Received: by paza2 with SMTP id a2so65639089paz.3 for ; Mon, 25 May 2015 10:46:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=cGqgwYk87BHTOwOBusc6qO4PgnKesu7LxL935SkHcWQ=; b=RxlMVbfRI0pf8UdgJG5hUFZEizMLLSSB7RyOnxlNN1Tf5v7BaEGOTbQt12e5zd3fJU bkQTrn0sH4W8FErskMOlffBAQLTk4ju1Bp5prFUxaCEYJTYXrngzZjkaZmtzCNr50f3z Sa1s9PAi1L9JyveZC5/ThhzzRTFLIC+KDeWiH8Lwtvzbw0GpclJ72rycMSzo5Xlp0Vc3 cazcfRIOUziJQmUXEatgLXBLIZJU08nUpU1u4hBhgKsIjucTqXD7fDDOF5xcwP5cJmG3 EGXbm54K73vNNC49FonWsWtbNggbxFfO8nRYJZTpbgU2Soo28ocOaqYYeXBOveNEbIA1 JymA== X-Gm-Message-State: ALoCoQkoA1B0iys60uwzzaddYI4YoIgMFyACeN2WmMcvJT8HE7VVSmWO6zzVFkXCA4KWOfC7U18V X-Received: by 10.68.106.193 with SMTP id gw1mr41532942pbb.111.1432576005490; Mon, 25 May 2015 10:46:45 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id xq2sm10686041pac.8.2015.05.25.10.46.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2015 10:46:45 -0700 (PDT) Date: Mon, 25 May 2015 10:46:49 -0700 From: Stephen Hemminger To: Marc Sune Message-ID: <20150525104649.06f1916c@urahara> In-Reply-To: <1431387946-29950-2-git-send-email-marc.sune@bisdn.de> References: <1431387946-29950-1-git-send-email-marc.sune@bisdn.de> <1431387946-29950-2-git-send-email-marc.sune@bisdn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [RFC PATCH 1/2] Added ETH_SPEED_CAP bitmap in rte_eth_dev_info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2015 17:46:46 -0000 On Tue, 12 May 2015 01:45:45 +0200 Marc Sune wrote: > +/** > + * Ethernet device information > + */ > struct rte_eth_dev_info { > struct rte_pci_device *pci_dev; /**< Device PCI information. */ > const char *driver_name; /**< Device Driver name. */ > @@ -924,6 +947,7 @@ struct rte_eth_dev_info { > uint16_t vmdq_queue_base; /**< First queue ID for VMDQ pools. */ > uint16_t vmdq_queue_num; /**< Queue number for VMDQ pools. */ > uint16_t vmdq_pool_base; /**< First ID of VMDQ pools. */ > + uint16_t speed_capa; /**< Supported speeds bitmap. */ Since you are likely to run out of 16 bits in future, why not 32 bits now?