diff options
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r-- | include/linux/bpf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index bfdb54dd2ad1..f9a506147c8a 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h | |||
@@ -713,6 +713,7 @@ 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 | struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key); | ||
716 | void __dev_map_flush(struct bpf_map *map); | 717 | void __dev_map_flush(struct bpf_map *map); |
717 | int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, | 718 | int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, |
718 | struct net_device *dev_rx); | 719 | struct net_device *dev_rx); |
@@ -799,6 +800,12 @@ static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, | |||
799 | return NULL; | 800 | return NULL; |
800 | } | 801 | } |
801 | 802 | ||
803 | static inline struct net_device *__dev_map_hash_lookup_elem(struct bpf_map *map, | ||
804 | u32 key) | ||
805 | { | ||
806 | return NULL; | ||
807 | } | ||
808 | |||
802 | static inline void __dev_map_flush(struct bpf_map *map) | 809 | static inline void __dev_map_flush(struct bpf_map *map) |
803 | { | 810 | { |
804 | } | 811 | } |