struct dpaa_bp { /* used in the DMA mapping operations */ struct dpaa_priv *priv; /* current number of buffers in the buffer pool alloted to each CPU */ int __percpu *percpu_count; /* all buffers allocated for this pool have this raw size */
size_t raw_size; /* all buffers in this pool have this same usable size */
size_t size; /* the buffer pools are initialized with config_count buffers for each * CPU; at runtime the number of buffers per CPU is constantly brought * back to this level
*/
u16 config_count;
u8 bpid; struct bman_pool *pool; /* bpool can be seeded before use by this cb */ int (*seed_cb)(struct dpaa_bp *); /* bpool can be emptied before freeing by this cb */ void (*free_buf_cb)(conststruct dpaa_bp *, struct bm_buffer *);
refcount_t refs;
};
/* Information to be used on the Tx confirmation path. Stored just * before the start of the transmit buffer. Maximum size allowed * is DPAA_TX_PRIV_DATA_SIZE bytes.
*/ struct dpaa_eth_swbp { struct sk_buff *skb; struct xdp_frame *xdpf;
};
struct dpaa_priv { struct dpaa_percpu_priv __percpu *percpu_priv; struct dpaa_bp *dpaa_bp; /* Store here the needed Tx headroom for convenience and speed * (even though it can be computed based on the fields of buf_layout)
*/
u16 tx_headroom; struct net_device *net_dev; struct mac_device *mac_dev; struct device *rx_dma_dev; struct device *tx_dma_dev; struct qman_fq **egress_fqs; struct qman_fq **conf_fqs;
struct { /* All egress queues to a given net device belong to one * (and the same) congestion group.
*/ struct qman_cgr cgr; /* If congested, when it began. Used for performance stats. */
u32 congestion_start_jiffies; /* Number of jiffies the Tx port was congested. */
u32 congested_jiffies; /* Counter for the number of times the CGR * entered congestion state
*/
u32 cgr_congested_count;
} cgr_data; /* Use a per-port CGR for ingress traffic. */ bool use_ingress_cgr; struct qman_cgr ingress_cgr;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.