Re: [RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:44PM +, Wang Nan escreveu: > Following commits will add new types for instance of a bpf program. > For kernel bpf program, a program instance is fd. For ubpf program, > the instance of a program is a 'struct ubpf_vm'. This patch promote > original 'fds' array to

Re: [RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:44PM +, Wang Nan escreveu: > Following commits will add new types for instance of a bpf program. > For kernel bpf program, a program instance is fd. For ubpf program, > the instance of a program is a 'struct ubpf_vm'. This patch promote > original 'fds' array to

[RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Wang Nan
Following commits will add new types for instance of a bpf program. For kernel bpf program, a program instance is fd. For ubpf program, the instance of a program is a 'struct ubpf_vm'. This patch promote original 'fds' array to 'union prog_instance' array, prepare for further extending.

[RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Wang Nan
Following commits will add new types for instance of a bpf program. For kernel bpf program, a program instance is fd. For ubpf program, the instance of a program is a 'struct ubpf_vm'. This patch promote original 'fds' array to 'union prog_instance' array, prepare for further extending.