Lines Matching defs:gve_priv
753 struct gve_priv { struct
754 struct net_device *dev;
755 struct gve_tx_ring *tx; /* array of tx_cfg.num_queues */
756 struct gve_rx_ring *rx; /* array of rx_cfg.num_queues */
757 struct gve_notify_block *ntfy_blocks; /* array of num_ntfy_blks */
758 struct gve_irq_db *irq_db_indices; /* array of num_ntfy_blks */
759 dma_addr_t irq_db_indices_bus;
760 struct msix_entry *msix_vectors; /* array of num_ntfy_blks + 1 */
761 char mgmt_msix_name[IFNAMSIZ + 16];
762 u32 mgmt_msix_idx;
763 __be32 *counter_array; /* array of num_event_counters */
764 dma_addr_t counter_array_bus;
766 u16 num_event_counters;
767 u16 tx_desc_cnt; /* num desc per ring */
768 u16 rx_desc_cnt; /* num desc per ring */
769 u16 max_tx_desc_cnt;
770 u16 max_rx_desc_cnt;
771 u16 min_tx_desc_cnt;
772 u16 min_rx_desc_cnt;
773 bool modify_ring_size_enabled;
774 bool default_min_ring_size;
775 u16 tx_pages_per_qpl; /* Suggested number of pages per qpl for TX queues by NIC */
776 u64 max_registered_pages;
777 u64 num_registered_pages; /* num pages registered with NIC */
778 struct bpf_prog *xdp_prog; /* XDP BPF program */
779 u32 rx_copybreak; /* copy packets smaller than this */
780 u16 default_num_queues; /* default num queues to set up */
782 struct gve_tx_queue_config tx_cfg;
783 struct gve_rx_queue_config rx_cfg;
784 u32 num_ntfy_blks; /* spilt between TX and RX so must be even */
786 struct gve_registers __iomem *reg_bar0; /* see gve_register.h */
787 __be32 __iomem *db_bar2; /* "array" of doorbells */
788 u32 msg_enable; /* level for netif* netdev print macros */
789 struct pci_dev *pdev;
792 u32 tx_timeo_cnt;
795 union gve_adminq_command *adminq;
796 dma_addr_t adminq_bus_addr;
797 struct dma_pool *adminq_pool;
798 struct mutex adminq_lock; /* Protects adminq command execution */
799 u32 adminq_mask; /* masks prod_cnt to adminq size */
800 u32 adminq_prod_cnt; /* free-running count of AQ cmds executed */
801 u32 adminq_cmd_fail; /* free-running count of AQ cmds failed */
802 u32 adminq_timeouts; /* free-running count of AQ cmds timeouts */
804 u32 adminq_describe_device_cnt;
805 u32 adminq_cfg_device_resources_cnt;
806 u32 adminq_register_page_list_cnt;
807 u32 adminq_unregister_page_list_cnt;
808 u32 adminq_create_tx_queue_cnt;
809 u32 adminq_create_rx_queue_cnt;
810 u32 adminq_destroy_tx_queue_cnt;
811 u32 adminq_destroy_rx_queue_cnt;
812 u32 adminq_dcfg_device_resources_cnt;
813 u32 adminq_set_driver_parameter_cnt;
814 u32 adminq_report_stats_cnt;
815 u32 adminq_report_link_speed_cnt;
816 u32 adminq_get_ptype_map_cnt;
817 u32 adminq_verify_driver_compatibility_cnt;
818 u32 adminq_query_flow_rules_cnt;
819 u32 adminq_cfg_flow_rule_cnt;
820 u32 adminq_cfg_rss_cnt;
821 u32 adminq_query_rss_cnt;
824 u32 interface_up_cnt; /* count of times interface turned up since last reset */
825 u32 interface_down_cnt; /* count of times interface turned down since last reset */
826 u32 reset_cnt; /* count of reset */
827 u32 page_alloc_fail; /* count of page alloc fails */
828 u32 dma_mapping_error; /* count of dma mapping errors */
829 u32 stats_report_trigger_cnt; /* count of device-requested stats-reports since last reset */
830 u32 suspend_cnt; /* count of times suspended */
831 u32 resume_cnt; /* count of times resumed */
832 struct workqueue_struct *gve_wq;
833 struct work_struct service_task;
834 struct work_struct stats_report_task;
835 unsigned long service_task_flags;
836 unsigned long state_flags;
838 struct gve_stats_report *stats_report;
839 u64 stats_report_len;
840 dma_addr_t stats_report_bus; /* dma address for the stats report */
841 unsigned long ethtool_flags;
843 unsigned long stats_report_timer_period;
844 struct timer_list stats_report_timer;
847 u64 link_speed;
848 bool up_before_suspend; /* True if dev was up before suspend */
850 struct gve_ptype_lut *ptype_lut_dqo;
853 u16 max_rx_buffer_size; /* device limit */
855 enum gve_queue_format queue_format;
858 u32 tx_coalesce_usecs;
859 u32 rx_coalesce_usecs;
861 u16 header_buf_size; /* device configured, header-split supported if non-zero */
862 bool header_split_enabled; /* True if the header split is enabled by the user */
864 u32 max_flow_rules;
865 u32 num_flow_rules;
867 struct gve_flow_rules_cache flow_rules_cache;
869 u16 rss_key_size;
893 static inline bool gve_get_do_reset(struct gve_priv *priv) in gve_get_do_reset() argument