pub enum XdpAct {
Basic = 1,
Redirect = 2,
NdoXmit = 4,
XskZerocopy = 8,
HwOffload = 16,
RxSg = 32,
NdoXmitSg = 64,
}Available on crate feature
netdev only.Expand description
Flags - defines an integer enumeration, with values for each entry occupying a bit, starting from bit 0, (e.g. 1, 2, 4, 8)
Variants§
Basic = 1
XDP features set supported by all drivers (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX)
Redirect = 2
The netdev supports XDP_REDIRECT
NdoXmit = 4
This feature informs if netdev implements ndo_xdp_xmit callback.
XskZerocopy = 8
This feature informs if netdev supports AF_XDP in zero copy mode.
HwOffload = 16
This feature informs if netdev supports XDP hw offloading.
RxSg = 32
This feature informs if netdev implements non-linear XDP buffer support in the driver napi callback.
NdoXmitSg = 64
This feature informs if netdev implements non-linear XDP buffer support in ndo_xdp_xmit callback.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XdpAct
impl RefUnwindSafe for XdpAct
impl Send for XdpAct
impl Sync for XdpAct
impl Unpin for XdpAct
impl UnwindSafe for XdpAct
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more