Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: e3cef11dd0161d49dddc09d8e6263722825953f7
      
https://github.com/Linaro/odp/commit/e3cef11dd0161d49dddc09d8e6263722825953f7
  Author: Juha-Matti Tilli <[email protected]>
  Date:   2018-01-17 (Wed, 17 Jan 2018)

  Changed paths:
    M platform/linux-generic/odp_packet_io.c

  Log Message:
  -----------
  linux-generic: pktio: change SLEEP_NSEC into SLEEP_USEC

Change SLEEP_NSEC into SLEEP_USEC and make odp_pktin_wait_time return
always microseconds.

Signed-off-by: Juha-Matti Tilli <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
Signed-off-by: Maxim Uvarov <[email protected]>


  Commit: 5e064cd9fa626b8fe7cc6d695b5bbf5065e0e54e
      
https://github.com/Linaro/odp/commit/5e064cd9fa626b8fe7cc6d695b5bbf5065e0e54e
  Author: Juha-Matti Tilli <[email protected]>
  Date:   2018-01-17 (Wed, 17 Jan 2018)

  Changed paths:
    M platform/linux-generic/include/odp_packet_io_internal.h
    M platform/linux-generic/odp_packet_io.c
    M platform/linux-generic/pktio/netmap.c
    M platform/linux-generic/pktio/pktio_common.c
    M platform/linux-generic/pktio/socket.c
    M platform/linux-generic/pktio/socket_mmap.c

  Log Message:
  -----------
  linux-generic: pktio: genuinely sleep in timeout receive

ODP has two functions, odp_pktin_recv_tmo and odp_pktin_recv_mq_tmo that
allow sleeping for a certain time. However, the sleep was not a genuine
interruptible sleep (select/poll/epoll) but rather a busy loop. This
resulted in high CPU use when this call was used. This functionality
adds to three pktio mechanisms a way to allow sleeping using select()
system call. The way is used if all used pktio mechanisms support it.

Signed-off-by: Juha-Matti Tilli <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
Signed-off-by: Maxim Uvarov <[email protected]>


  Commit: 1bb6291e4e9050d476fefb02f11024898847e2b7
      
https://github.com/Linaro/odp/commit/1bb6291e4e9050d476fefb02f11024898847e2b7
  Author: Juha-Matti Tilli <[email protected]>
  Date:   2018-01-17 (Wed, 17 Jan 2018)

  Changed paths:
    M example/l2fwd_simple/odp_l2fwd_simple.c

  Log Message:
  -----------
  example: l2fwd_simple: test interruptible sleep in odp_pktin_recv_tmo

Test interruptible sleep within odp_pktin_recv_tmo by using the
l2fwd_simple test application. This gives us confidence that
odp_pktin_recv_tmo changes work with pktio mechanisms such as .pcap
not offering the interrupt-driven implementations.

Signed-off-by: Juha-Matti Tilli <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
Signed-off-by: Maxim Uvarov <[email protected]>


Compare: https://github.com/Linaro/odp/compare/520c170d758f...1bb6291e4e90

Reply via email to