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

Message ID 20180910162854.89466-1-kevin.laatz@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series [v2] app/testpmd: add check for Rx offload security flag |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Kevin Laatz Sept. 10, 2018, 4:28 p.m. UTC
  Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the
port_offload_cap_display().

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 app/test-pmd/config.c | 9 +++++++++
 1 file changed, 9 insertions(+)
  

Comments

Iremonger, Bernard Sept. 10, 2018, 4:55 p.m. UTC | #1
> -----Original Message-----
> From: Laatz, Kevin
> Sent: Monday, September 10, 2018 5:29 PM
> To: dev@dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>; Laatz, Kevin
> <kevin.laatz@intel.com>
> Subject: [PATCH v2] 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().
> 
> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
  
Ferruh Yigit Sept. 21, 2018, 12:51 a.m. UTC | #2
On 9/10/2018 5:55 PM, Iremonger, Bernard wrote:
> 
>> -----Original Message-----
>> From: Laatz, Kevin
>> Sent: Monday, September 10, 2018 5:29 PM
>> To: dev@dpdk.org
>> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>; Laatz, Kevin
>> <kevin.laatz@intel.com>
>> Subject: [PATCH v2] 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().
>>
>> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
>> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

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

Patch

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 14ccd68..4c60c7e 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -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 &