Patchwork [meta-oe] netperf: add large files support

login
register
mail settings
Submitter Ting Liu
Date Sept. 4, 2013, 8:36 a.m.
Message ID <1378283762-22627-1-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/57331/
State Superseded, archived
Headers show

Comments

Ting Liu - Sept. 4, 2013, 8:36 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 .../0001-netperf2.6-large-files-support.patch      |   31 ++++++++++++++++++++
 .../recipes-support/netperf/netperf_2.6.0.bb       |    1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-networking/recipes-support/netperf/files/0001-netperf2.6-large-files-support.patch

Patch

diff --git a/meta-networking/recipes-support/netperf/files/0001-netperf2.6-large-files-support.patch b/meta-networking/recipes-support/netperf/files/0001-netperf2.6-large-files-support.patch
new file mode 100644
index 0000000..b3132d7
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/files/0001-netperf2.6-large-files-support.patch
@@ -0,0 +1,31 @@ 
+From 63f3adaa8f8ff6f4310b8b470f8ded8788cbae21 Mon Sep 17 00:00:00 2001
+From: Jianhua Xie <jianhua.xie@freescale.com>
+Date: Wed, 28 Aug 2013 15:47:49 +0800
+Subject: [PATCH] netperf2.6: large files support
+
+add netperf large files support, without this patch, netperf2.6 can only
+support smaller than 2GB files with TCP_SENDFILE item.
+
+Upstream-Status: Pending
+
+Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com>
+---
+ config.h.in |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/config.h.in b/config.h.in
+index b9f3dcf..70ed534 100644
+--- a/config.h.in
++++ b/config.h.in
+@@ -399,7 +399,7 @@
+ #undef WANT_XTI
+ 
+ /* Number of bits in a file offset, on hosts where this is settable. */
+-#undef _FILE_OFFSET_BITS
++#define _FILE_OFFSET_BITS 64
+ 
+ /* Define for large files, on AIX-style hosts. */
+ #undef _LARGE_FILES
+-- 
+1.7.0.4
+
diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
index eda7859..f9ca9c9 100644
--- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
+++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
@@ -10,6 +10,7 @@  PR = "r0"
 SRC_URI="ftp://ftp.netperf.org/netperf/netperf-${PV}.tar.bz2 \
          file://cpu_set.patch \
          file://vfork.patch \
+         file://0001-netperf2.6-large-files-support.patch \
          file://init"
 SRC_URI[md5sum] = "9654ffdfd4c4f2c93ce3733cd9ed9236"
 SRC_URI[sha256sum] = "cd8dac710d4273d29f70e8dbd09353a6362ac58a11926e0822233c0cb230323a"