mptcp: introduce token KUNIT self-tests
Unit tests for the internal MPTCP token APIs, using KUNIT v1 -> v2: - use the correct RCU annotation when initializing icsk ulp - fix a few checkpatch issues Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a00a582203
commit
a8ee9c9b58
@@ -307,3 +307,12 @@ void __init mptcp_token_init(void)
|
||||
spin_lock_init(&token_hash[i].lock);
|
||||
}
|
||||
}
|
||||
|
||||
#if IS_MODULE(CONFIG_MPTCP_KUNIT_TESTS)
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_new_request);
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_new_connect);
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_accept);
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_get_sock);
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_destroy_request);
|
||||
EXPORT_SYMBOL_GPL(mptcp_token_destroy);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user