Skip to main content

profile_bee_aya/maps/xdp/
mod.rs

1//! XDP maps.
2mod cpu_map;
3mod dev_map;
4mod dev_map_hash;
5mod xsk_map;
6
7pub use cpu_map::CpuMap;
8pub use dev_map::DevMap;
9pub use dev_map_hash::DevMapHash;
10use thiserror::Error;
11pub use xsk_map::XskMap;
12
13use super::MapError;
14
15#[derive(Error, Debug)]
16/// Errors occuring from working with XDP maps.
17pub enum XdpMapError {
18    /// Chained programs are not supported.
19    #[error("chained programs are not supported by the current kernel")]
20    ChainedProgramNotSupported,
21
22    /// Map operation failed.
23    #[error(transparent)]
24    MapError(#[from] MapError),
25}