Commit 816acbfd authored by Federico Vaga's avatar Federico Vaga

kernel: change ft_wr_timestamp size

The global sequence number is usually 5 times bigger that the local
sequence number, so make it bigger to keep nice references.

It also change the type of the channel field. In this way, we obtain a
256byte structure which is a nice number for the kfifo (power 2).

Make it also aligned to 8Byte (64bit architecture)
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e1ef0919
......@@ -113,14 +113,14 @@ struct ft_hw_timestamp {
uint32_t metadata; /* channel, polarity, etc. */
} __packed;
/* White Rabbit timestamp */
/* White Rabbit timestamp (32Byte is nice for the kfifo) */
struct ft_wr_timestamp {
uint64_t seconds;
uint32_t coarse;
uint32_t frac;
uint32_t channel;
uint32_t seq_id;
uint32_t gseq_id;
unsigned int channel;
uint64_t gseq_id;
};
struct ft_channel_state {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment