| Date | Wed, 27 May 2015 18:57:13 -0700 | From | Alexei Starovoitov <> | Subject | Re: [RFC PATCH v4 16/29] bpf tools: Create eBPF maps defined in an object file |
| |
On Wed, May 27, 2015 at 05:19:51AM +0000, Wang Nan wrote: > This patch creates maps based on 'map' section in object file using > bpf_create_map(), and store the fds into an array in > 'struct bpf_object'. Since the byte order of the object may differ > from the host, swap map definition before processing.
obsolete commit log? The code doesn't do byteswap and it shouldn't. The other patch already checked for matching endiannes.
> This is the first patch in 'loading' phase. Previous patches parse ELF > object file and create needed data structure, but doesn't play with > kernel. They belong to 'opening' phase. > > Signed-off-by: Wang Nan <wangnan0@huawei.com>
|