Lines Matching defs:gve_priv
473 struct gve_priv { struct
474 struct net_device *dev;
475 struct gve_tx_ring *tx; /* array of tx_cfg.num_queues */
476 struct gve_rx_ring *rx; /* array of rx_cfg.num_queues */
477 struct gve_queue_page_list *qpls; /* array of num qpls */
478 struct gve_notify_block *ntfy_blocks; /* array of num_ntfy_blks */
479 dma_addr_t ntfy_block_bus;
480 struct msix_entry *msix_vectors; /* array of num_ntfy_blks + 1 */
481 char mgmt_msix_name[IFNAMSIZ + 16];
482 u32 mgmt_msix_idx;
483 __be32 *counter_array; /* array of num_event_counters */
484 dma_addr_t counter_array_bus;
486 u16 num_event_counters;
487 u16 tx_desc_cnt; /* num desc per ring */
488 u16 rx_desc_cnt; /* num desc per ring */
489 u16 tx_pages_per_qpl; /* tx buffer length */
490 u16 rx_data_slot_cnt; /* rx buffer length */
491 u64 max_registered_pages;
492 u64 num_registered_pages; /* num pages registered with NIC */
493 u32 rx_copybreak; /* copy packets smaller than this */
494 u16 default_num_queues; /* default num queues to set up */
496 struct gve_queue_config tx_cfg;
497 struct gve_queue_config rx_cfg;
498 struct gve_qpl_config qpl_cfg; /* map used QPL ids */
499 u32 num_ntfy_blks; /* spilt between TX and RX so must be even */
501 struct gve_registers __iomem *reg_bar0; /* see gve_register.h */
502 __be32 __iomem *db_bar2; /* "array" of doorbells */
503 u32 msg_enable; /* level for netif* netdev print macros */
504 struct pci_dev *pdev;
507 u32 tx_timeo_cnt;
510 union gve_adminq_command *adminq;
511 dma_addr_t adminq_bus_addr;
512 u32 adminq_mask; /* masks prod_cnt to adminq size */
513 u32 adminq_prod_cnt; /* free-running count of AQ cmds executed */
514 u32 adminq_cmd_fail; /* free-running count of AQ cmds failed */
515 u32 adminq_timeouts; /* free-running count of AQ cmds timeouts */
517 u32 adminq_describe_device_cnt;
518 u32 adminq_cfg_device_resources_cnt;
519 u32 adminq_register_page_list_cnt;
520 u32 adminq_unregister_page_list_cnt;
521 u32 adminq_create_tx_queue_cnt;
522 u32 adminq_create_rx_queue_cnt;
523 u32 adminq_destroy_tx_queue_cnt;
524 u32 adminq_destroy_rx_queue_cnt;
525 u32 adminq_dcfg_device_resources_cnt;
526 u32 adminq_set_driver_parameter_cnt;
527 u32 adminq_report_stats_cnt;
528 u32 adminq_report_link_speed_cnt;
529 u32 adminq_get_ptype_map_cnt;
532 u32 interface_up_cnt; /* count of times interface turned up since last reset */
533 u32 interface_down_cnt; /* count of times interface turned down since last reset */
534 u32 reset_cnt; /* count of reset */
535 u32 page_alloc_fail; /* count of page alloc fails */
536 u32 dma_mapping_error; /* count of dma mapping errors */
537 u32 stats_report_trigger_cnt; /* count of device-requested stats-reports since last reset */
538 struct workqueue_struct *gve_wq;
539 struct work_struct service_task;
540 struct work_struct stats_report_task;
541 unsigned long service_task_flags;
542 unsigned long state_flags;
544 struct gve_stats_report *stats_report;
545 u64 stats_report_len;
546 dma_addr_t stats_report_bus; /* dma address for the stats report */
547 unsigned long ethtool_flags;
549 unsigned long stats_report_timer_period;
550 struct timer_list stats_report_timer;
553 u64 link_speed;
555 struct gve_options_dqo_rda options_dqo_rda;
556 struct gve_ptype_lut *ptype_lut_dqo;
582 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument