diff mbox

[ovs-dev,v2,2/3] netdev-dpdk: Show Rx checksum status when false.

Message ID 1494609740-15104-3-git-send-email-ktraynor@redhat.com
State Deferred
Headers show

Commit Message

Kevin Traynor May 12, 2017, 5:22 p.m. UTC
Currently ovs-appctl dpctl/show only shows the Rx checksum offload
status when true. Change to also show the status when false.

Cc: Sugesh Chandran <sugesh.chandran@intel.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 lib/netdev-dpdk.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index d1688ce..465bb82 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -1093,4 +1093,6 @@  netdev_dpdk_get_config(const struct netdev *netdev, struct smap *args)
         if (dev->hw_ol_features & NETDEV_RX_CHECKSUM_OFFLOAD) {
             smap_add(args, "rx_csum_offload", "true");
+        } else {
+            smap_add(args, "rx_csum_offload", "false");
         }
     }