diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2019-07-26 12:06:52 -0400 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-07-29 16:50:48 -0400 |
commit | 6dbff13ca8a2ad2fddd904c2e789dd5e59a8644c (patch) | |
tree | 446527d445144952a2b04728a2b1dc197579878b | |
parent | 475e31f8da1b299099fc3d8d51d47b0e86410163 (diff) |
include/bpf.h: Remove map_insert_ctx() stubs
When we changed the device and CPU maps to use linked lists instead of
bitmaps, we also removed the need for the map_insert_ctx() helpers to keep
track of the bitmaps inside each map. However, it seems I forgot to remove
the function definitions stubs, so remove those here.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | include/linux/bpf.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 18f4cc2c6acd..bfdb54dd2ad1 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h | |||
@@ -713,7 +713,6 @@ struct xdp_buff; | |||
713 | struct sk_buff; | 713 | struct sk_buff; |
714 | 714 | ||
715 | struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key); | 715 | struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key); |
716 | void __dev_map_insert_ctx(struct bpf_map *map, u32 index); | ||
717 | void __dev_map_flush(struct bpf_map *map); | 716 | void __dev_map_flush(struct bpf_map *map); |
718 | int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, | 717 | int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, |
719 | struct net_device *dev_rx); | 718 | struct net_device *dev_rx); |
@@ -721,7 +720,6 @@ int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, | |||
721 | struct bpf_prog *xdp_prog); | 720 | struct bpf_prog *xdp_prog); |
722 | 721 | ||
723 | struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key); | 722 | struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key); |
724 | void __cpu_map_insert_ctx(struct bpf_map *map, u32 index); | ||
725 | void __cpu_map_flush(struct bpf_map *map); | 723 | void __cpu_map_flush(struct bpf_map *map); |
726 | int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, | 724 | int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, |
727 | struct net_device *dev_rx); | 725 | struct net_device *dev_rx); |
@@ -801,10 +799,6 @@ static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, | |||
801 | return NULL; | 799 | return NULL; |
802 | } | 800 | } |
803 | 801 | ||
804 | static inline void __dev_map_insert_ctx(struct bpf_map *map, u32 index) | ||
805 | { | ||
806 | } | ||
807 | |||
808 | static inline void __dev_map_flush(struct bpf_map *map) | 802 | static inline void __dev_map_flush(struct bpf_map *map) |
809 | { | 803 | { |
810 | } | 804 | } |
@@ -834,10 +828,6 @@ struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) | |||
834 | return NULL; | 828 | return NULL; |
835 | } | 829 | } |
836 | 830 | ||
837 | static inline void __cpu_map_insert_ctx(struct bpf_map *map, u32 index) | ||
838 | { | ||
839 | } | ||
840 | |||
841 | static inline void __cpu_map_flush(struct bpf_map *map) | 831 | static inline void __cpu_map_flush(struct bpf_map *map) |
842 | { | 832 | { |
843 | } | 833 | } |