[ovs-dev] [PATCH] dp-packet: Fix comment on DPDK buffer data.
Fischetti, Antonio
antonio.fischetti at intel.com
Tue Jan 17 15:31:45 UTC 2017
Self-NACK. Will include this change with another patch.
Antonio
> -----Original Message-----
> From: ovs-dev-bounces at openvswitch.org [mailto:ovs-dev-
> bounces at openvswitch.org] On Behalf Of antonio.fischetti at intel.com
> Sent: Wednesday, January 11, 2017 5:11 PM
> To: dev at openvswitch.org
> Subject: [ovs-dev] [PATCH] dp-packet: Fix comment on DPDK buffer data.
>
> 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
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
More information about the dev
mailing list