Re: [PATCH net-next] tools: bpftool: try to mount bpffs if required for pinning objects

2017-10-26 Thread David Miller
From: Jakub Kicinski Date: Tue, 24 Oct 2017 20:11:28 -0700 > From: Quentin Monnet > > One possible cause of failure for `bpftool {prog|map} pin * file FILE` > is the FILE not being in an eBPF virtual file system (bpffs). In this > case, make bpftool attempt to mount bpffs on the parent director

Re: [PATCH net-next] tools: bpftool: try to mount bpffs if required for pinning objects

2017-10-25 Thread Alexei Starovoitov
On Tue, Oct 24, 2017 at 08:11:28PM -0700, Jakub Kicinski wrote: > From: Quentin Monnet > > One possible cause of failure for `bpftool {prog|map} pin * file FILE` > is the FILE not being in an eBPF virtual file system (bpffs). In this > case, make bpftool attempt to mount bpffs on the parent direc

[PATCH net-next] tools: bpftool: try to mount bpffs if required for pinning objects

2017-10-24 Thread Jakub Kicinski
From: Quentin Monnet One possible cause of failure for `bpftool {prog|map} pin * file FILE` is the FILE not being in an eBPF virtual file system (bpffs). In this case, make bpftool attempt to mount bpffs on the parent directory of the FILE. Then, if this operation is successful, try again to pin