net: sandbox: Add a priv ptr for tests to use
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 26 Sep 2018 21:48:59 +0000 (16:48 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 10 Oct 2018 17:28:59 +0000 (12:28 -0500)
commit9cbe5972c3c00e974482181cd4062d9229a9b7d5
tree8ca670695d6931a755c059d66b0e66f662183f82
parent3f02c98bd1000fc26ee2700fd5a75112cdeaca6c
net: sandbox: Add a priv ptr for tests to use

Tests need to be able to pass their "unit test state" to the handlers
where asserts are evaluated. Add a function that allows the tests to set
this private data on the sandbox eth device.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/eth.h
drivers/net/sandbox.c