Commit Graph

3 Commits (17e99fd4ae3c28cd7cc5a63cc44d3686ab479d6c)

Author SHA1 Message Date
tyrone-wu 17e99fd4ae
aya,aya-obj: conversion for u32 to prog type enum & format enum display
Adds conversion from u32 to `bpf_prog_type` so that the `type_` field in
`bpf_prog_info` can map to the program type enum. This also implements
Display for `bpf_prog_type` for condensed output format.
10 months ago
Tuetuopay 139f382638 aya: add support for map-bound XDP programs
Such programs are to be bound to cpumap or devmap instead of the usual
network interfaces.
2 years ago
Shenghui Ye ac49827e20 aya-obj: migrate aya::obj into a separate crate
To split the crate into two, several changes were made:
1. Most `pub(crate)` are now `pub` to allow access from Aya;
2. Parts of BpfError are merged into, for example, RelocationError;
3. BTF part of Features is moved into the new crate;
4. `#![deny(missing_docs)]` is removed temporarily;
5. Some other code gets moved into the new crate, mainly:
   - aya::{bpf_map_def, BtfMapDef, PinningType},
   - aya::programs::{CgroupSock*AttachType},

The new crate is currenly allowing missing_docs. Member visibility
will be adjusted later to minimize exposure of implementation details.

Refs: #473
2 years ago