History

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.

Toke Høiland-Jørgensen committed 7 years ago

Commit 6dbff131 parent 475e31f1 file · +0 −10Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/bpf.h+0−10
@@ -713,7 +713,6 @@ struct xdp_buff; · 712 unmodified lines
713struct sk_buff;713struct sk_buff;
714 714
715struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key);715struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key);
716void __dev_map_insert_ctx(struct bpf_map *map, u32 index);
717void __dev_map_flush(struct bpf_map *map);716void __dev_map_flush(struct bpf_map *map);
718int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp,717int 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, · 1 unmodified line
721 struct bpf_prog *xdp_prog);720 struct bpf_prog *xdp_prog);
722 721
723struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key);722struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key);
724void __cpu_map_insert_ctx(struct bpf_map *map, u32 index);
725void __cpu_map_flush(struct bpf_map *map);723void __cpu_map_flush(struct bpf_map *map);
726int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp,724int 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, · 73 unmodified lines
801 return NULL;799 return NULL;
802}800}
803 801
804static inline void __dev_map_insert_ctx(struct bpf_map *map, u32 index)
805{
806}
807
808static inline void __dev_map_flush(struct bpf_map *map)802static 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) · 23 unmodified lines
834 return NULL;828 return NULL;
835}829}
836 830
837static inline void __cpu_map_insert_ctx(struct bpf_map *map, u32 index)
838{
839}
840
841static inline void __cpu_map_flush(struct bpf_map *map)831static inline void __cpu_map_flush(struct bpf_map *map)
842{832{
843}833}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t