netperf: add large files support
PATCH 1/1 netperf: add large files support
From: Zhenhua Luo <[email protected]>
Signed-off-by Zhenhua Luo <[email protected]>
--- .../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
meta-networking/recipes-support/netperf/files/0001-netperf2.6-large-files-support.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 63f3adaa8f8ff6f4310b8b470f8ded8788cbae21 Mon Sep 17 00:00:00 2001 +From: Jianhua Xie <[email protected]> +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 <[email protected]> +--- + 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 +
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +1 -0
@@ -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"
Signature · 1 line
1.7.9.7