[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161130.102959.1171017574583467201.davem@davemloft.net>
Date: Wed, 30 Nov 2016 10:29:59 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sargun@...gun.me
Cc: netdev@...r.kernel.org, daniel@...que.org, ast@...com
Subject: Re: [net-next 1/1] samples: bpf: Refactor test_cgrp2_attach -- use
getopt, and add mode
From: Sargun Dhillon <sargun@...gun.me>
Date: Mon, 28 Nov 2016 14:52:42 -0800
> This patch modifies test_cgrp2_attach to use getopt so we can use standard
> command line parsing.
>
> It also adds an option to run the program in detach only mode. This does
> not attach a new filter at the cgroup, but only runs the detach command.
>
> Lastly, it changes the attach code to not detach and then attach. It relies
> on the 'hotswap' behaviour of CGroup BPF programs to be able to change
> in-place. If detach-then-attach behaviour needs to be tested, the example
> can be run in detach only mode prior to attachment.
>
> Signed-off-by: Sargun Dhillon <sargun@...gun.me>
Applied, thanks.
Powered by blists - more mailing lists