app/testpmd: add check for rx offload security flag
Checks
Commit Message
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>
---
app/test-pmd/config.c | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On 9/4/2018 1:32 PM, Kevin Laatz wrote:
> 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>
Hi Kevin,
> -----Original Message-----
> From: Laatz, Kevin
> Sent: Tuesday, September 4, 2018 1:33 PM
> To: dev@dpdk.org
> Cc: Iremonger, Bernard <bernard.iremonger@intel.com>; Laatz, Kevin
> <kevin.laatz@intel.com>
> 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().
>
> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
> ---
> app/test-pmd/config.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> 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 &
> --
> 2.9.5
./devtools/check-git-log.sh -1
Wrong headline lowercase:
app/testpmd: add check for rx offload security flag
Regards,
Bernard.
@@ -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 &