Re: [lng-odp] [PATCHv5 0/4] TAP pktio

2015-12-14 Thread Maxim Uvarov

Merged,
Maxim.

On 12/14/2015 10:08, Ilya Maximets wrote:

On 11.12.2015 19:51, Stuart Haslam wrote:

On Thu, Dec 10, 2015 at 06:32:00PM +0300, Ilya Maximets wrote:

Creates a new pktio type that allows for creating and
sending/receiving packets through TAP interface.
Detailed description in commit-message of patch
"[PATCHv5 3/4] linux-generic: pktio: add tap pktio type".

Changelog:

Version 5:
* nothing changed. New patch added to add ability
  to wait some time right after pktio_open() to
  be sure that tap interface switched to enabled state
  inside the bridge. Fixes occasional first test failures.
  ODP_WAIT_FOR_NETWORK used to run tests.
* rebased on current master

Version 4:
* changed error handling part in tap_pktio_send. (Stuart Haslam)

Version 3:
* return 77 (TEST_SKIPPED) if user is not root. (Stuart Haslam)

Version 2:
* Validation tests added
* Pktio tests fixed to work with real-world
  interfaces.
* MAC of pktio now is not a kernel interface's MAC
* Interfaces are UP after pktio_open()
* Fixed getting mtu, getting/setting promisc mode
* Misclenious fixes

Ilya Maximets (4):
   validation: pktio: initialize mac addresses for all packets
   validation: pktio: ability to wait for external network
   linux-generic: pktio: add tap pktio type
   linux-generic: pktio: add test for tap pktio

For the series:

Reviewed-and-Tested-by: Stuart Haslam 

Thanks.


  platform/linux-generic/Makefile.am |   2 +
  .../linux-generic/include/odp_packet_io_internal.h |   3 +
  platform/linux-generic/include/odp_packet_tap.h|  21 ++
  platform/linux-generic/pktio/io_ops.c  |   1 +
  platform/linux-generic/pktio/tap.c | 327 +
  platform/linux-generic/test/Makefile.am|   1 +
  platform/linux-generic/test/pktio/Makefile.am  |   3 +-
  platform/linux-generic/test/pktio/pktio_run_tap| 115 
  test/validation/pktio/pktio.c  |  72 -
  9 files changed, 536 insertions(+), 9 deletions(-)
  create mode 100644 platform/linux-generic/include/odp_packet_tap.h
  create mode 100644 platform/linux-generic/pktio/tap.c
  create mode 100755 platform/linux-generic/test/pktio/pktio_run_tap

--
2.1.4





___
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp


Re: [lng-odp] [PATCHv5 0/4] TAP pktio

2015-12-13 Thread Ilya Maximets
On 11.12.2015 19:51, Stuart Haslam wrote:
> On Thu, Dec 10, 2015 at 06:32:00PM +0300, Ilya Maximets wrote:
>> Creates a new pktio type that allows for creating and
>> sending/receiving packets through TAP interface.
>> Detailed description in commit-message of patch
>> "[PATCHv5 3/4] linux-generic: pktio: add tap pktio type".
>>
>> Changelog:
>>
>> Version 5:
>>  * nothing changed. New patch added to add ability
>>to wait some time right after pktio_open() to
>>be sure that tap interface switched to enabled state
>>inside the bridge. Fixes occasional first test failures.
>>ODP_WAIT_FOR_NETWORK used to run tests.
>>  * rebased on current master
>>
>> Version 4:
>>  * changed error handling part in tap_pktio_send. (Stuart Haslam)
>>
>> Version 3:
>>  * return 77 (TEST_SKIPPED) if user is not root. (Stuart Haslam)
>>
>> Version 2:
>>  * Validation tests added
>>  * Pktio tests fixed to work with real-world
>>interfaces.
>>  * MAC of pktio now is not a kernel interface's MAC
>>  * Interfaces are UP after pktio_open()
>>  * Fixed getting mtu, getting/setting promisc mode
>>  * Misclenious fixes
>>
>> Ilya Maximets (4):
>>   validation: pktio: initialize mac addresses for all packets
>>   validation: pktio: ability to wait for external network
>>   linux-generic: pktio: add tap pktio type
>>   linux-generic: pktio: add test for tap pktio
> 
> For the series:
> 
> Reviewed-and-Tested-by: Stuart Haslam 

Thanks.

> 
>>
>>  platform/linux-generic/Makefile.am |   2 +
>>  .../linux-generic/include/odp_packet_io_internal.h |   3 +
>>  platform/linux-generic/include/odp_packet_tap.h|  21 ++
>>  platform/linux-generic/pktio/io_ops.c  |   1 +
>>  platform/linux-generic/pktio/tap.c | 327 
>> +
>>  platform/linux-generic/test/Makefile.am|   1 +
>>  platform/linux-generic/test/pktio/Makefile.am  |   3 +-
>>  platform/linux-generic/test/pktio/pktio_run_tap| 115 
>>  test/validation/pktio/pktio.c  |  72 -
>>  9 files changed, 536 insertions(+), 9 deletions(-)
>>  create mode 100644 platform/linux-generic/include/odp_packet_tap.h
>>  create mode 100644 platform/linux-generic/pktio/tap.c
>>  create mode 100755 platform/linux-generic/test/pktio/pktio_run_tap
>>
>> -- 
>> 2.1.4
>>
> 
> 
___
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp


Re: [lng-odp] [PATCHv5 0/4] TAP pktio

2015-12-11 Thread Stuart Haslam
On Thu, Dec 10, 2015 at 06:32:00PM +0300, Ilya Maximets wrote:
> Creates a new pktio type that allows for creating and
> sending/receiving packets through TAP interface.
> Detailed description in commit-message of patch
> "[PATCHv5 3/4] linux-generic: pktio: add tap pktio type".
> 
> Changelog:
> 
> Version 5:
>   * nothing changed. New patch added to add ability
> to wait some time right after pktio_open() to
> be sure that tap interface switched to enabled state
> inside the bridge. Fixes occasional first test failures.
> ODP_WAIT_FOR_NETWORK used to run tests.
>   * rebased on current master
> 
> Version 4:
>   * changed error handling part in tap_pktio_send. (Stuart Haslam)
> 
> Version 3:
>   * return 77 (TEST_SKIPPED) if user is not root. (Stuart Haslam)
> 
> Version 2:
>   * Validation tests added
>   * Pktio tests fixed to work with real-world
> interfaces.
>   * MAC of pktio now is not a kernel interface's MAC
>   * Interfaces are UP after pktio_open()
>   * Fixed getting mtu, getting/setting promisc mode
>   * Misclenious fixes
> 
> Ilya Maximets (4):
>   validation: pktio: initialize mac addresses for all packets
>   validation: pktio: ability to wait for external network
>   linux-generic: pktio: add tap pktio type
>   linux-generic: pktio: add test for tap pktio

For the series:

Reviewed-and-Tested-by: Stuart Haslam 

> 
>  platform/linux-generic/Makefile.am |   2 +
>  .../linux-generic/include/odp_packet_io_internal.h |   3 +
>  platform/linux-generic/include/odp_packet_tap.h|  21 ++
>  platform/linux-generic/pktio/io_ops.c  |   1 +
>  platform/linux-generic/pktio/tap.c | 327 
> +
>  platform/linux-generic/test/Makefile.am|   1 +
>  platform/linux-generic/test/pktio/Makefile.am  |   3 +-
>  platform/linux-generic/test/pktio/pktio_run_tap| 115 
>  test/validation/pktio/pktio.c  |  72 -
>  9 files changed, 536 insertions(+), 9 deletions(-)
>  create mode 100644 platform/linux-generic/include/odp_packet_tap.h
>  create mode 100644 platform/linux-generic/pktio/tap.c
>  create mode 100755 platform/linux-generic/test/pktio/pktio_run_tap
> 
> -- 
> 2.1.4
> 
___
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp


[lng-odp] [PATCHv5 0/4] TAP pktio

2015-12-10 Thread Ilya Maximets
Creates a new pktio type that allows for creating and
sending/receiving packets through TAP interface.
Detailed description in commit-message of patch
"[PATCHv5 3/4] linux-generic: pktio: add tap pktio type".

Changelog:

Version 5:
* nothing changed. New patch added to add ability
  to wait some time right after pktio_open() to
  be sure that tap interface switched to enabled state
  inside the bridge. Fixes occasional first test failures.
  ODP_WAIT_FOR_NETWORK used to run tests.
* rebased on current master

Version 4:
* changed error handling part in tap_pktio_send. (Stuart Haslam)

Version 3:
* return 77 (TEST_SKIPPED) if user is not root. (Stuart Haslam)

Version 2:
* Validation tests added
* Pktio tests fixed to work with real-world
  interfaces.
* MAC of pktio now is not a kernel interface's MAC
* Interfaces are UP after pktio_open()
* Fixed getting mtu, getting/setting promisc mode
* Misclenious fixes

Ilya Maximets (4):
  validation: pktio: initialize mac addresses for all packets
  validation: pktio: ability to wait for external network
  linux-generic: pktio: add tap pktio type
  linux-generic: pktio: add test for tap pktio

 platform/linux-generic/Makefile.am |   2 +
 .../linux-generic/include/odp_packet_io_internal.h |   3 +
 platform/linux-generic/include/odp_packet_tap.h|  21 ++
 platform/linux-generic/pktio/io_ops.c  |   1 +
 platform/linux-generic/pktio/tap.c | 327 +
 platform/linux-generic/test/Makefile.am|   1 +
 platform/linux-generic/test/pktio/Makefile.am  |   3 +-
 platform/linux-generic/test/pktio/pktio_run_tap| 115 
 test/validation/pktio/pktio.c  |  72 -
 9 files changed, 536 insertions(+), 9 deletions(-)
 create mode 100644 platform/linux-generic/include/odp_packet_tap.h
 create mode 100644 platform/linux-generic/pktio/tap.c
 create mode 100755 platform/linux-generic/test/pktio/pktio_run_tap

-- 
2.1.4

___
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp