Skip to contentSkip to conversation

app/testpmd: add check for rx offload security flag

PATCH Superseded Kevin Laatz 3 participants 6 messages Sep 4, 2018 – Sep 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd: add check for rx offload security flag

Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display().

---
 app/test-pmd/config.c | 9 +++++++++
 1 file changed, 9 insertions(+)
app/test-pmd/config.c +9 -0
index 14ccd68..4c60c7e 100644
@@ -594,6 +594,15 @@ port_offload_cap_display(portid_t port_id)
 			printf("off\n");
 	}
 
+	if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SECURITY) {
+		printf("RX offload security:           ");
+		if (ports[port_id].dev_conf.rxmode.offloads &
+		    DEV_RX_OFFLOAD_SECURITY)
+			printf("on\n");
+		else
+			printf("off\n");
+	}
+
 	if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_VLAN_INSERT) {
 		printf("VLAN insert:                   ");
 		if (ports[port_id].dev_conf.txmode.offloads &
Signature · 1 line
2.9.5
#2 lore raw
In reply to Kevin Laatz

Hi Kevin,

Quoted 37 lines

-----Original Message-----
From: Laatz, Kevin
Sent: Tuesday, September 4, 2018 1:33 PM
To: [email protected]
Cc: Iremonger, Bernard <[email protected]>; Laatz, Kevin <[email protected]>
Subject: [PATCH] app/testpmd: add check for rx offload security flag

Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display().

---
 app/test-pmd/config.c | 9 +++++++++
 1 file changed, 9 insertions(+)
app/test-pmd/config.c index renamed from app/test-pmd/config.c +0 -0

14ccd68..4c60c7e 100644

app/test-pmd/config.c +9 -1
@@ -594,6 +594,15 @@ port_offload_cap_display(portid_t port_id)
 			printf("off\n");
 	}
 
+	if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SECURITY) {
+		printf("RX offload security:           ");
+		if (ports[port_id].dev_conf.rxmode.offloads &
+		    DEV_RX_OFFLOAD_SECURITY)
+			printf("on\n");
+		else
+			printf("off\n");
+	}
+
 	if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_VLAN_INSERT) {
 		printf("VLAN insert:                   ");
 		if (ports[port_id].dev_conf.txmode.offloads &
--
Quoted 1 line

2.9.5

./devtools/check-git-log.sh -1
Wrong headline lowercase:
app/testpmd: add check for rx offload security flag

Regards,

Bernard.

#3 lore raw

PATCH v2 1/1 app/testpmd: add check for Rx offload security flag

In reply to Kevin Laatz

Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display().

---
 app/test-pmd/config.c | 9 +++++++++
 1 file changed, 9 insertions(+)
app/test-pmd/config.c +9 -0
index 14ccd68..4c60c7e 100644
@@ -594,6 +594,15 @@ port_offload_cap_display(portid_t port_id)
 			printf("off\n");
 	}
 
+	if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SECURITY) {
+		printf("RX offload security:           ");
+		if (ports[port_id].dev_conf.rxmode.offloads &
+		    DEV_RX_OFFLOAD_SECURITY)
+			printf("on\n");
+		else
+			printf("off\n");
+	}
+
 	if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_VLAN_INSERT) {
 		printf("VLAN insert:                   ");
 		if (ports[port_id].dev_conf.txmode.offloads &
Signature · 1 line
2.9.5
Acked-by on v2 1/1
#4 lore raw

Re: [PATCH v2] app/testpmd: add check for Rx offload security flag

Quoted 9 lines

-----Original Message-----
From: Laatz, Kevin
Sent: Monday, September 10, 2018 5:29 PM
To: [email protected]
Cc: Iremonger, Bernard <[email protected]>; Laatz, Kevin <[email protected]>
Subject: [PATCH v2] app/testpmd: add check for Rx offload security flag

Quoted 5 lines

Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display().

Applied
#5 lore raw

Re: [PATCH v2] app/testpmd: add check for Rx offload security flag

Quoted 9 lines · Bernard
Quoted 9 lines

-----Original Message-----
From: Laatz, Kevin
Sent: Monday, September 10, 2018 5:29 PM
To: [email protected]
Cc: Iremonger, Bernard <[email protected]>; Laatz, Kevin <[email protected]>
Subject: [PATCH v2] app/testpmd: add check for Rx offload security flag

Quoted 7 lines
Quoted 5 lines

Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display().

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