diff options
| author | Armin Kuster <akuster@mvista.com> | 2015-08-09 05:38:30 +0530 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-09-15 10:49:30 -0400 |
| commit | 1692d5c3020434404fc1ee6911a60b88287a5efb (patch) | |
| tree | c705c4f059c63ff69d06da14a2a8d6800db90190 /meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch | |
| parent | 1624ca2f9f94a0b9eb76a1d37d5984d6efdda695 (diff) | |
| download | meta-openembedded-1692d5c3020434404fc1ee6911a60b88287a5efb.tar.gz | |
netmap: add new package
this adds netmap, the fast packet I/O framework
http://info.iet.unipi.it/~luigi/netmap/
- updated to latest version to get kernel 4.1 support
- fixed printf type issue
- Fixed manual config options
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch')
| -rw-r--r-- | meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch b/meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch new file mode 100644 index 0000000000..ea36b1cd91 --- /dev/null +++ b/meta-networking/recipes-kernel/netmap/files/0001-testmmap-fix-compile-issue-with-gcc-5.x.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | From c81bf54d6eb870286662a11d3b4a994717c47696 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Armin Kuster <akuster808@gmail.com> | ||
| 5 | Date: Tue, 8 Sep 2015 05:36:27 -0700 | ||
| 6 | Subject: [PATCH] testmmap: fix compile issue with gcc 5.x | ||
| 7 | |||
| 8 | this fixes: | ||
| 9 | examples/testmmap.c:540:10: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t {aka const int}' [-Werror=format=] | ||
| 10 | | printf("ring_ofs[%d] %ld\n", i, nifp->ring_ofs[i]); | ||
| 11 | | ^ | ||
| 12 | |||
| 13 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
| 14 | --- | ||
| 15 | examples/testmmap.c | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/examples/testmmap.c b/examples/testmmap.c | ||
| 19 | index d7f6acc..934489a 100644 | ||
| 20 | --- a/examples/testmmap.c | ||
| 21 | +++ b/examples/testmmap.c | ||
| 22 | @@ -537,7 +537,7 @@ do_if() | ||
| 23 | for (i = 0; i < 5; i++) | ||
| 24 | printf("spare1[%d] %u\n", i, nifp->ni_spare1[i]); | ||
| 25 | for (i = 0; i < (nifp->ni_tx_rings + nifp->ni_rx_rings + 2); i++) | ||
| 26 | - printf("ring_ofs[%d] %ld\n", i, nifp->ring_ofs[i]); | ||
| 27 | + printf("ring_ofs[%d] %zd\n", i, nifp->ring_ofs[i]); | ||
| 28 | } | ||
| 29 | |||
| 30 | struct netmap_ring * | ||
| 31 | -- | ||
| 32 | 2.3.5 | ||
| 33 | |||
