From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f176.google.com (mail-pf0-f176.google.com [209.85.192.176]) by dpdk.org (Postfix) with ESMTP id C3677234 for ; Tue, 16 Feb 2016 21:42:03 +0100 (CET) Received: by mail-pf0-f176.google.com with SMTP id x65so111081085pfb.1 for ; Tue, 16 Feb 2016 12:42:03 -0800 (PST) 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-type:content-transfer-encoding; bh=4qs58L7cOWg8ZwkIm/hKNTLFG7CR8JP7eJOkgp/v9bY=; b=0A1Bop1SCmmEsvIplIB9ypk9m5HeAEb02IL0VRxnsxXzglufYO7+ehuhAiNhakRmKc g+ru1COmpjWTLUioe7wtCAWu0QvWkOc3UwOxeE+wl0LCiyK0KeUZDoDp5yyNW1pVZ4fK LhC9L2kotzFp7hT22jEyBfWegbwYpvgHPTyuYex/tz5ei2SSdNcn2rX9NEfEcWN5U2og 4fd+u2FkVCr3ZTDfsa3aUvQempngdB4+MlAuyMHUWBevKAt6KQedZhuGp8b/cwiT6qDs u59nf8ukwJUR0Bsm/xlSSUSNnGvQX/GLZ2pqAcAQfnxZ8O0Rl772W05uRnOKzc8N8H0x lInw== 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=4qs58L7cOWg8ZwkIm/hKNTLFG7CR8JP7eJOkgp/v9bY=; b=dQ2jAfjEIIoYPGt9P/7CCU25XDcRPCQcj/OAlL2oaqVLRgm2mXOsVbpXZeux8Jwiup S08GFHqZ7tN4/9uC2/aHZCIiM0pr5ost3T/atDkSmDdeaY5PCRSh10lZbu/ShuAoj33A CJzPsWhJ0UNFRAYhUO+6izAludEN+DsIdBk2OHvPTqdRYVt2kMkq+Je5frERE5+HCNOt Wq3kL+FDJ1F3wYJktaRjoG7a6DqdKKi5jWf1rtkUHTi67s0fpoO684nyVT4/XP61y0Je yoBk7m6Oax1zJBBilUXZ5vzjJGMMHjQ+v9DmAjluNa39xO1STlajZYv4iHNvRMgaGhgk zWIQ== X-Gm-Message-State: AG10YOTQkYY1CCYFAsZAu0UxyS+GDh1rRyJCgFwnKAf4Xxk4tofMS4+FRRj0SkUIPwZDtA== X-Received: by 10.98.89.139 with SMTP id k11mr34125544pfj.56.1455655323194; Tue, 16 Feb 2016 12:42:03 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id r65sm21120353pfa.27.2016.02.16.12.42.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 12:42:02 -0800 (PST) Date: Tue, 16 Feb 2016 12:42:14 -0800 From: Stephen Hemminger To: Marc Sune Message-ID: <20160216124214.64e04d7b@xeon-e3> In-Reply-To: <1455488259-1000-2-git-send-email-marcdevel@gmail.com> References: <1454028127-10401-1-git-send-email-marcdevel@gmail.com> <1455488259-1000-1-git-send-email-marcdevel@gmail.com> <1455488259-1000-2-git-send-email-marcdevel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v8 1/4] ethdev: Added ETH_SPEED_CAP bitmap for ports 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: Tue, 16 Feb 2016 20:42:04 -0000 On Sun, 14 Feb 2016 23:17:36 +0100 Marc Sune wrote: > Added constants and bitmap to struct rte_eth_dev_info to be used by PMDs. > > Signed-off-by: Marc Sune > --- > lib/librte_ether/rte_ethdev.h | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 16da821..83ddbb7 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -824,6 +824,29 @@ struct rte_eth_conf { > #define DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000080 /**< Used for tunneling packet. */ > #define DEV_TX_OFFLOAD_QINQ_INSERT 0x00000100 > > +/** > + * Device supported speeds > + */ > +#define ETH_SPEED_CAP_NOT_PHY (0) /*< No phy media > */ > +#define ETH_SPEED_CAP_10M_HD (1 << 0) /*< 10 Mbps half-duplex> */ > +#define ETH_SPEED_CAP_10M_FD (1 << 1) /*< 10 Mbps full-duplex> */ > +#define ETH_SPEED_CAP_100M_HD (1 << 2) /*< 100 Mbps half-duplex> */ > +#define ETH_SPEED_CAP_100M_FD (1 << 3) /*< 100 Mbps full-duplex> */ > +#define ETH_SPEED_CAP_1G (1 << 4) /*< 1 Gbps > */ > +#define ETH_SPEED_CAP_2_5G (1 << 5) /*< 2.5 Gbps > */ > +#define ETH_SPEED_CAP_5G (1 << 6) /*< 5 Gbps > */ > +#define ETH_SPEED_CAP_10G (1 << 7) /*< 10 Mbps > */ > +#define ETH_SPEED_CAP_20G (1 << 8) /*< 20 Gbps > */ > +#define ETH_SPEED_CAP_25G (1 << 9) /*< 25 Gbps > */ > +#define ETH_SPEED_CAP_40G (1 << 10) /*< 40 Gbps > */ > +#define ETH_SPEED_CAP_50G (1 << 11) /*< 50 Gbps > */ > +#define ETH_SPEED_CAP_56G (1 << 12) /*< 56 Gbps > */ > +#define ETH_SPEED_CAP_100G (1 << 13) /*< 100 Gbps > */ Have you been following recent discussion about updates to ethtool in Linux https://lwn.net/Articles/667794/