On Fri, Aug 02, 2019 at 09:12:33AM +0200, Ander Juaristi wrote:
> diff --git a/include/net/netfilter/nf_tables.h 
> b/include/net/netfilter/nf_tables.h
> index 9b624566b82d..f635b9c2e221 100644
> --- a/include/net/netfilter/nf_tables.h
> +++ b/include/net/netfilter/nf_tables.h
> @@ -2,6 +2,7 @@
>  #ifndef _NET_NF_TABLES_H
>  #define _NET_NF_TABLES_H
>  
> +#include <asm/unaligned.h>
>  #include <linux/list.h>
>  #include <linux/netfilter.h>
>  #include <linux/netfilter/nfnetlink.h>
> @@ -119,6 +120,11 @@ static inline void nft_reg_store8(u32 *dreg, u8 val)
>       *(u8 *)dreg = val;
>  }
>  
> +static inline void nft_reg_store64(u64 *dreg, u64 val)
> +{
> +     put_unaligned(val, dreg);
> +}

Could you make an initial patch to add nft_reg_load64() and
nft_reg_store64()? That patch should also update nft_byteorder to use
it. That would be patch 1/2.

Then, you place this patch 2/2 to add time support after 1/2.

Thanks.

Reply via email to