ktime: add ktime_after and ktime_before helper

Add two minimal helper functions analogous to time_before() and
time_after() that will later on both be needed by SCTP code.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
Daniel Borkmann
2014-06-11 18:19:28 +02:00
提交者 David S. Miller
父节点 9181a6bd18
当前提交 67cb9366ff
修改 2 个文件,包含 25 行新增1 行删除

查看文件

@@ -1782,7 +1782,7 @@ no_hmac:
else
kt = ktime_get();
if (!asoc && ktime_compare(bear_cookie->expiration, kt) < 0) {
if (!asoc && ktime_before(bear_cookie->expiration, kt)) {
/*
* Section 3.3.10.3 Stale Cookie Error (3)
*