]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Merge branch 'bpf-prog-map-ID'
authorDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 19:41:25 +0000 (15:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 19:41:25 +0000 (15:41 -0400)
commit286556c0b63a91d48770d5979e6653656235dbb0
treef71901b7ceeebc924ad0c68184f4cd4f96511c7c
parent8ea4fae926afd81f4d7fd43444562afc8629f77c
parent95b9afd3987f91c09151158279e165276a95c597
Merge branch 'bpf-prog-map-ID'

Martin KaFai Lau says:

====================
Introduce bpf ID

This patch series:
1) Introduce ID for both bpf_prog and bpf_map.
2) Add bpf commands to iterate the prog IDs and map
   IDs of the system.
3) Add bpf commands to get a prog/map fd from an ID
4) Add bpf command to get prog/map info from a fd.
   The prog/map info is a jump start in this patchset
   and it is not meant to be a complete list.  They can
   be extended in the future patches.

v3:
- I suspect v2 may not have applied cleanly.
  In particular, patch 1 has conflict with a recent
  change in struct bpf_prog_aux introduced at a similar time frame:
  8726679a0fa3 ("bpf: teach verifier to track stack depth")
  v3 should have fixed it.

v2:
Compiler warning fixes:
- Remove lockdep_is_held() usage.  Add comment
  to explain the lock situation instead.
- Add static for idr related variables
- Add __user to the uattr param in bpf_prog_get_info_by_fd()
  and bpf_map_get_info_by_fd().
====================

Signed-off-by: David S. Miller <davem@davemloft.net>