Fix comments about the DPDK buffer data to refer to dp_packet_init_dpdk() function.
Signed-off-by: Antonio Fischetti <[email protected]> --- lib/dp-packet.c | 4 ++-- lib/dp-packet.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 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..27a5506 100644 --- a/lib/dp-packet.h +++ b/lib/dp-packet.h @@ -35,11 +35,11 @@ extern "C" { #endif enum OVS_PACKED_ENUM dp_packet_source { - DPBUF_MALLOC, /* Obtained via malloc(). */ - 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. */ + DPBUF_MALLOC, /* Obtained via malloc(). */ + 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. + * Refer to dp_packet_init_dpdk() in dp-packet.c */ }; #define DP_PACKET_CONTEXT_SIZE 64 -- 2.4.11 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
