DPDK-dev Archive on lore.kernel.org
 help / color / Atom feed
* [dpdk-dev] [PATCH v2] app/testpmd: fix show port info routine
@ 2019-07-16 10:25 Viacheslav Ovsiienko
  2019-07-16 10:34 ` [dpdk-dev] [PATCH v3] " Viacheslav Ovsiienko
  0 siblings, 1 reply; 4+ messages in thread
From: Viacheslav Ovsiienko @ 2019-07-16 10:25 UTC (permalink / raw)
  To: dev; +Cc: bernard.iremonger, stable

This patch updates "show port info [port_id]" command to display
the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields
of rte_eth_dev_info structure.

Fixes: 4fb7e803eb1a
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
v2: addressed comments - converted to fix with backporting
v1: http://patches.dpdk.org/patch/56476/

---
 app/test-pmd/config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 1d80470..ba43be5 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -509,6 +509,10 @@
 	printf("Min possible number of TXDs per queue: %hu\n",
 		dev_info.tx_desc_lim.nb_min);
 	printf("TXDs number alignment: %hu\n", dev_info.tx_desc_lim.nb_align);
+	printf("Max segment number per packet: %hu\n",
+		dev_info.tx_desc_lim.nb_seg_max);
+	printf("Max segment number per MTU/TSO: %hu\n",
+		dev_info.tx_desc_lim.nb_mtu_seg_max);
 
 	/* Show switch info only if valid switch domain and port id is set */
 	if (dev_info.switch_info.domain_id !=
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v3] app/testpmd: fix show port info routine
  2019-07-16 10:25 [dpdk-dev] [PATCH v2] app/testpmd: fix show port info routine Viacheslav Ovsiienko
@ 2019-07-16 10:34 ` " Viacheslav Ovsiienko
  2019-07-16 10:44   ` Iremonger, Bernard
  0 siblings, 1 reply; 4+ messages in thread
From: Viacheslav Ovsiienko @ 2019-07-16 10:34 UTC (permalink / raw)
  To: dev; +Cc: bernard.iremonger, stable

This patch updates "show port info [port_id]" command to display
the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields
of rte_eth_dev_info structure.

Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
v3: tag fixed in commit log message
v2: addressed comments, converted to fix with backporting
v1: http://patches.dpdk.org/patch/56476/
---
 app/test-pmd/config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 1d80470..ba43be5 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -509,6 +509,10 @@
 	printf("Min possible number of TXDs per queue: %hu\n",
 		dev_info.tx_desc_lim.nb_min);
 	printf("TXDs number alignment: %hu\n", dev_info.tx_desc_lim.nb_align);
+	printf("Max segment number per packet: %hu\n",
+		dev_info.tx_desc_lim.nb_seg_max);
+	printf("Max segment number per MTU/TSO: %hu\n",
+		dev_info.tx_desc_lim.nb_mtu_seg_max);
 
 	/* Show switch info only if valid switch domain and port id is set */
 	if (dev_info.switch_info.domain_id !=
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v3] app/testpmd: fix show port info routine
  2019-07-16 10:34 ` [dpdk-dev] [PATCH v3] " Viacheslav Ovsiienko
@ 2019-07-16 10:44   ` Iremonger, Bernard
  2019-07-17 14:37     ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Iremonger, Bernard @ 2019-07-16 10:44 UTC (permalink / raw)
  To: Viacheslav Ovsiienko, dev; +Cc: stable

> -----Original Message-----
> From: Viacheslav Ovsiienko [mailto:viacheslavo@mellanox.com]
> Sent: Tuesday, July 16, 2019 11:35 AM
> To: dev@dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>; stable@dpdk.org
> Subject: [PATCH v3] app/testpmd: fix show port info routine
> 
> This patch updates "show port info [port_id]" command to display the
> tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields of
> rte_eth_dev_info structure.
> 
> Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [dpdk-stable] [PATCH v3] app/testpmd: fix show port info routine
  2019-07-16 10:44   ` Iremonger, Bernard
@ 2019-07-17 14:37     ` " Ferruh Yigit
  0 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2019-07-17 14:37 UTC (permalink / raw)
  To: Iremonger, Bernard, Viacheslav Ovsiienko, dev; +Cc: stable

On 7/16/2019 11:44 AM, Iremonger, Bernard wrote:
>> -----Original Message-----
>> From: Viacheslav Ovsiienko [mailto:viacheslavo@mellanox.com]
>> Sent: Tuesday, July 16, 2019 11:35 AM
>> To: dev@dpdk.org
>> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>; stable@dpdk.org
>> Subject: [PATCH v3] app/testpmd: fix show port info routine
>>
>> This patch updates "show port info [port_id]" command to display the
>> tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields of
>> rte_eth_dev_info structure.
>>
>> Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> 
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
> 

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16 10:25 [dpdk-dev] [PATCH v2] app/testpmd: fix show port info routine Viacheslav Ovsiienko
2019-07-16 10:34 ` [dpdk-dev] [PATCH v3] " Viacheslav Ovsiienko
2019-07-16 10:44   ` Iremonger, Bernard
2019-07-17 14:37     ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit

DPDK-dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dpdk-dev/0 dpdk-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dpdk-dev dpdk-dev/ https://lore.kernel.org/dpdk-dev \
		dev@dpdk.org dpdk-dev@archiver.kernel.org
	public-inbox-index dpdk-dev


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox