Skip to content

Commit 6dbff13

Browse files
tohojoAlexei Starovoitov
authored andcommitted
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>
1 parent 475e31f commit 6dbff13

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎include/linux/bpf.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -713,15 +713,13 @@ struct xdp_buff;
713713
struct sk_buff;
714714

715715
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);
717716
void __dev_map_flush(struct bpf_map *map);
718717
int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp,
719718
struct net_device *dev_rx);
720719
int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb,
721720
struct bpf_prog *xdp_prog);
722721

723722
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);
725723
void __cpu_map_flush(struct bpf_map *map);
726724
int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp,
727725
struct net_device *dev_rx);
@@ -801,10 +799,6 @@ static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map,
801799
return NULL;
802800
}
803801

804-
static inline void __dev_map_insert_ctx(struct bpf_map *map, u32 index)
805-
{
806-
}
807-
808802
static inline void __dev_map_flush(struct bpf_map *map)
809803
{
810804
}
@@ -834,10 +828,6 @@ struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key)
834828
return NULL;
835829
}
836830

837-
static inline void __cpu_map_insert_ctx(struct bpf_map *map, u32 index)
838-
{
839-
}
840-
841831
static inline void __cpu_map_flush(struct bpf_map *map)
842832
{
843833
}

0 commit comments

Comments
 (0)