RE: [bpf-next 1/3] sample/bpf: Avoid repetitive definition of log2 func

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Xin Hao wrote:
> log2 func is defined and used in following three files:
>     samples/bpf/lathist_kern.c
>     samples/bpf/lwt_len_hist_kern.c
>     samples/bpf/tracex2_kern.c
> 
> There's no need to repeat define them many times, so i added
> a "common.h" file which maintains common codes, you just need
> to include it in your file and future we can put more common codes
> into this file.
> 
> Signed-off-by: Xin Hao <xhao@xxxxxxxxxxxxxxxxx>
> ---

LGTM

Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux