Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/gve/gve_adminq.h
| Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | struct gve_device_option_dqo_qpl { | ||||
| __be32 supported_features_mask; | __be32 supported_features_mask; | ||||
| __be16 tx_comp_ring_entries; | __be16 tx_comp_ring_entries; | ||||
| __be16 rx_buff_ring_entries; | __be16 rx_buff_ring_entries; | ||||
| }; | }; | ||||
| _Static_assert(sizeof(struct gve_device_option_dqo_qpl) == 8, | _Static_assert(sizeof(struct gve_device_option_dqo_qpl) == 8, | ||||
| "gve: bad admin queue struct length"); | "gve: bad admin queue struct length"); | ||||
| struct gve_ring_size_bound { | |||||
| __be16 rx; | |||||
| __be16 tx; | |||||
| }; | |||||
| _Static_assert(sizeof(struct gve_ring_size_bound) == 4, | |||||
| "gve: bad admin queue struct length"); | |||||
| struct gve_device_option_modify_ring { | struct gve_device_option_modify_ring { | ||||
| __be32 supported_features_mask; | __be32 supported_features_mask; | ||||
| __be16 max_rx_ring_size; | struct gve_ring_size_bound max_ring_size; | ||||
| __be16 max_tx_ring_size; | struct gve_ring_size_bound min_ring_size; | ||||
| }; | }; | ||||
| _Static_assert(sizeof(struct gve_device_option_modify_ring) == 8, | _Static_assert(sizeof(struct gve_device_option_modify_ring) == 12, | ||||
| "gve: bad admin queue struct length"); | "gve: bad admin queue struct length"); | ||||
| struct gve_device_option_jumbo_frames { | struct gve_device_option_jumbo_frames { | ||||
| __be32 supported_features_mask; | __be32 supported_features_mask; | ||||
| __be16 max_mtu; | __be16 max_mtu; | ||||
| uint8_t padding[2]; | uint8_t padding[2]; | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines | |||||