Skip to contentSkip to conversation

SCSY-192443 Bug fix DPDK-dumpcap for interface parameter

PATCH Superseded Pattan, Reshma 3 participants 6 messages Sep 6, 2022 – Oct 31, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Kaur, Arshdeep <[email protected]>
Subject: [PATCH] SCSY-192443 Bug fix DPDK-dumpcap for interface parameter

Bug: IF condition to handle -i parameter was not incorrect.

Hi ,

Remove SCSY* from heading
No need to add *Bug word in the heading.
Heading should have the example name that you are fixing that is "dumpcap".
So, Heading can be as simple as "dumpcap: fix interface parameter check"
Need to add fixes line to the commit message for any fix. Refer the section 7.7 in the link on how to add the fixes line. https://doc.dpdk.org/guides/contributing/patches.html
With these changes you can send the V2.

Thanks,
Reshma

#2 lore raw

PATCH v2 1/1 dumpcap: fix interface parameter check.

In reply to a message not in the archive
Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")
---
 app/dumpcap/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/dumpcap/main.c +1 -1
index a6041d4ff4..8972c45a71 100644
@@ -240,7 +240,7 @@ static void select_interface(const char *arg)
 {
 	uint16_t port;
 
-	if (strcmp(arg, "*"))
+	if (!strcmp(arg, "*"))
 		select_all_interfaces();
 	else if (rte_eth_dev_get_port_by_name(arg, &port) == 0)
 		add_interface(port, arg);
Signature · 1 line
2.37.1
#3 lore raw

RE: [PATCH v2] dumpcap: fix interface parameter check.

Quoted 9 lines

-----Original Message-----
From: Arshdeep Kaur <[email protected]>
Sent: Monday, September 12, 2022 1:53 PM
To: [email protected]
Subject: [PATCH v2] dumpcap: fix interface parameter check.

Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")

Can you add short commit message description .

Thanks,
Reshma

#4 lore raw

PATCH v3 1/1 dumpcap: fix interface parameter check.

In reply to Arshdeep Kaur

Correction in handling 'IF' condition for -i parameter.

Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")
---
 app/dumpcap/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/dumpcap/main.c +1 -1
index a6041d4ff4..8972c45a71 100644
@@ -240,7 +240,7 @@ static void select_interface(const char *arg)
 {
 	uint16_t port;
 
-	if (strcmp(arg, "*"))
+	if (!strcmp(arg, "*"))
 		select_all_interfaces();
 	else if (rte_eth_dev_get_port_by_name(arg, &port) == 0)
 		add_interface(port, arg);
Signature · 1 line
2.37.1