[DCCP] packet_history: convert dccphrx_tstamp to ktime_t
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b8bda9d708
commit
e7c2335794
@@ -37,6 +37,7 @@
|
||||
#ifndef _DCCP_PKT_HIST_
|
||||
#define _DCCP_PKT_HIST_
|
||||
|
||||
#include <linux/ktime.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/time.h>
|
||||
@@ -124,7 +125,7 @@ struct dccp_rx_hist_entry {
|
||||
dccphrx_ccval:4,
|
||||
dccphrx_type:4;
|
||||
u32 dccphrx_ndp; /* In fact it is from 8 to 24 bits */
|
||||
struct timeval dccphrx_tstamp;
|
||||
ktime_t dccphrx_tstamp;
|
||||
};
|
||||
|
||||
struct dccp_rx_hist {
|
||||
@@ -136,7 +137,6 @@ extern void dccp_rx_hist_delete(struct dccp_rx_hist *hist);
|
||||
|
||||
static inline struct dccp_rx_hist_entry *
|
||||
dccp_rx_hist_entry_new(struct dccp_rx_hist *hist,
|
||||
const struct sock *sk,
|
||||
const u32 ndp,
|
||||
const struct sk_buff *skb,
|
||||
const gfp_t prio)
|
||||
@@ -151,7 +151,7 @@ static inline struct dccp_rx_hist_entry *
|
||||
entry->dccphrx_ccval = dh->dccph_ccval;
|
||||
entry->dccphrx_type = dh->dccph_type;
|
||||
entry->dccphrx_ndp = ndp;
|
||||
dccp_timestamp(sk, &entry->dccphrx_tstamp);
|
||||
entry->dccphrx_tstamp = ktime_get_real();
|
||||
}
|
||||
|
||||
return entry;
|
||||
|
Reference in New Issue
Block a user