On 07/12/17 12:00, Github ODP bot wrote:
> From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
> 
> loop interface can get any kind of packets, but should output only basic
> packets. Reset packet subtype on loopback.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
> ---
> /** Email created from pull request 68 (lumag:packet-loop)
>  ** https://github.com/Linaro/odp/pull/68
>  ** Patch: https://github.com/Linaro/odp/pull/68.patch
>  ** Base sha: ee5be324411a7520528a367967c28fc529d3bc2e
>  ** Merge commit sha: 1d53262ac97803775f439a7ebce2d3bb10cdc3b2
>  **/
>  platform/linux-generic/pktio/loop.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/platform/linux-generic/pktio/loop.c 
> b/platform/linux-generic/pktio/loop.c
> index c825393a..b1d311fa 100644
> --- a/platform/linux-generic/pktio/loop.c
> +++ b/platform/linux-generic/pktio/loop.c
> @@ -165,6 +165,8 @@ static int loopback_send(pktio_entry_t *pktio_entry, int 
> index ODP_UNUSED,
>  
>       for (i = 0; i < len; ++i) {
>               hdr_tbl[i] = packet_to_buf_hdr(pkt_tbl[i]);
> +             _odp_buffer_event_subtype_set(hdr_tbl[i]->handle.handle,
> +                                           ODP_EVENT_PACKET_BASIC);
>               bytes += odp_packet_len(pkt_tbl[i]);
>       }
>  
> 
why only loop pktio? Should ODP_EVENT_PACKET_BASIC be assumed for all
packets from pool ODP_POOL_PACKET type?

Maxim.

Reply via email to