Re: [PATCH bpf-next v2 6/6] bpf: selftests: Add defrag selftests

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

 



On Thu, Jul 06, 2023 at 05:25:53PM -0600, Daniel Xu wrote:
> +static int attach(struct ip_check_defrag *skel, bool ipv6)
> +{
> +	LIBBPF_OPTS(bpf_netfilter_opts, opts,
> +		    .pf = ipv6 ? NFPROTO_IPV6 : NFPROTO_IPV4,
> +		    .priority = 42,
> +		    .flags = BPF_F_NETFILTER_IP_DEFRAG);

imo the end results is pretty neat. The users would just add this flag and
netfilter bpf prog will see reassembled packets.

The patches look good to me.

Florian,
could you please review/ack, so we can pull them in?




[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