[ovs-dev] [PATCH] dp-packet: Fix comment on DPDK buffer data.

antonio.fischetti at intel.com antonio.fischetti at intel.com
Wed Jan 11 17:11:28 UTC 2017


Small fix on the comments about the DPDK buffer data to refer
to dp_packet_init_dpdk() function.

Signed-off-by: Antonio Fischetti <antonio.fischetti at intel.com>
---
 lib/dp-packet.c | 4 ++--
 lib/dp-packet.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/dp-packet.c b/lib/dp-packet.c
index 793b54f..14ab15e 100644
--- a/lib/dp-packet.c
+++ b/lib/dp-packet.c
@@ -91,8 +91,8 @@ dp_packet_use_const(struct dp_packet *b, const void *data, size_t size)
 
 /* Initializes 'b' as an empty dp_packet that contains the 'allocated' bytes of
  * memory starting at 'base'.  DPDK allocated dp_packet and *data is allocated
- * from one continous memory region, so in memory data start right after
- * dp_packet.  Therefore there is special method to free this type of
+ * from one continuous memory region, so in memory data start right after
+ * dp_packet.  Therefore there is a special method to free this type of
  * buffer.  dp_packet base, data and size are initialized by dpdk rcv() so no
  * need to initialize those fields. */
 void
diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index cf7d247..b941540 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -39,7 +39,7 @@ enum OVS_PACKED_ENUM dp_packet_source {
     DPBUF_STACK,               /* Un-movable stack space or static buffer. */
     DPBUF_STUB,                /* Starts on stack, may expand into heap. */
     DPBUF_DPDK,                /* buffer data is from DPDK allocated memory.
-                                * ref to build_dp_packet() in netdev-dpdk. */
+                                * Ref to dp_packet_init_dpdk() in dp-packet. */
 };
 
 #define DP_PACKET_CONTEXT_SIZE 64
-- 
2.4.11



More information about the dev mailing list