summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-04-21 13:57:19 -0500
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:18 -0600
commit6f2707c6b135681f821b55cac484a7512f5fe79a (patch)
tree78979b30fec39a6050430b0bafeb88425d24d737 /arch/sandbox
parent909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770 (diff)
sandbox: eth: Add a function to skip ping timeouts
When called, the next call to receive will trigger a 10-second leap forward in time to avoid waiting for time to pass when tests are evaluating timeout behavior. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/include/asm/eth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/eth.h b/arch/sandbox/include/asm/eth.h
index 4b79ede9b9..88804fb8e2 100644
--- a/arch/sandbox/include/asm/eth.h
+++ b/arch/sandbox/include/asm/eth.h
@@ -12,4 +12,6 @@
void sandbox_eth_disable_response(int index, bool disable);
+void sandbox_eth_skip_timeout(void);
+
#endif /* __ETH_H */