ena.h (4af71159db3cd4a37055b2b3d982ec53703c5c3d) | ena.h (274319acb48424958242d55e1b0c7d4528da7f70) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 377 unchanged lines hidden (view full) --- 386 counter_u64_t missing_tx_cmpl; 387 counter_u64_t bad_rx_req_id; 388 counter_u64_t bad_tx_req_id; 389 counter_u64_t bad_rx_desc_num; 390 counter_u64_t invalid_state; 391 counter_u64_t missing_intr; 392 counter_u64_t tx_desc_malformed; 393 counter_u64_t rx_desc_malformed; | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 377 unchanged lines hidden (view full) --- 386 counter_u64_t missing_tx_cmpl; 387 counter_u64_t bad_rx_req_id; 388 counter_u64_t bad_tx_req_id; 389 counter_u64_t bad_rx_desc_num; 390 counter_u64_t invalid_state; 391 counter_u64_t missing_intr; 392 counter_u64_t tx_desc_malformed; 393 counter_u64_t rx_desc_malformed; |
394 counter_u64_t missing_admin_interrupt; 395 counter_u64_t admin_to; |
|
394}; 395 396struct ena_hw_stats { 397 counter_u64_t rx_packets; 398 counter_u64_t tx_packets; 399 400 counter_u64_t rx_bytes; 401 counter_u64_t tx_bytes; --- 135 unchanged lines hidden (view full) --- 537 538struct ena_reset_stats_offset { 539 int stat_offset; 540 bool has_counter; 541}; 542 543static const struct ena_reset_stats_offset resets_to_stats_offset_map[ENA_REGS_RESET_LAST] = { 544 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_KEEP_ALIVE_TO, wd_expired), | 396}; 397 398struct ena_hw_stats { 399 counter_u64_t rx_packets; 400 counter_u64_t tx_packets; 401 402 counter_u64_t rx_bytes; 403 counter_u64_t tx_bytes; --- 135 unchanged lines hidden (view full) --- 539 540struct ena_reset_stats_offset { 541 int stat_offset; 542 bool has_counter; 543}; 544 545static const struct ena_reset_stats_offset resets_to_stats_offset_map[ENA_REGS_RESET_LAST] = { 546 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_KEEP_ALIVE_TO, wd_expired), |
545 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_ADMIN_TO, admin_q_pause), | 547 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_ADMIN_TO, admin_to), |
546 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_OS_TRIGGER, os_trigger), 547 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_MISS_TX_CMPL, missing_tx_cmpl), 548 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_INV_RX_REQ_ID, bad_rx_req_id), 549 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_INV_TX_REQ_ID, bad_tx_req_id), 550 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_TOO_MANY_RX_DESCS, bad_rx_desc_num), 551 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_DRIVER_INVALID_STATE, invalid_state), 552 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_MISS_INTERRUPT, missing_intr), 553 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_TX_DESCRIPTOR_MALFORMED, tx_desc_malformed), 554 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_RX_DESCRIPTOR_MALFORMED, rx_desc_malformed), | 548 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_OS_TRIGGER, os_trigger), 549 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_MISS_TX_CMPL, missing_tx_cmpl), 550 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_INV_RX_REQ_ID, bad_rx_req_id), 551 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_INV_TX_REQ_ID, bad_tx_req_id), 552 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_TOO_MANY_RX_DESCS, bad_rx_desc_num), 553 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_DRIVER_INVALID_STATE, invalid_state), 554 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_MISS_INTERRUPT, missing_intr), 555 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_TX_DESCRIPTOR_MALFORMED, tx_desc_malformed), 556 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_RX_DESCRIPTOR_MALFORMED, rx_desc_malformed), |
557 ENA_RESET_STATS_ENTRY(ENA_REGS_RESET_MISSING_ADMIN_INTERRUPT, missing_admin_interrupt), |
|
555}; 556 557int ena_up(struct ena_adapter *adapter); 558void ena_down(struct ena_adapter *adapter); 559int ena_restore_device(struct ena_adapter *adapter); 560void ena_destroy_device(struct ena_adapter *adapter, bool graceful); 561int ena_refill_rx_bufs(struct ena_ring *rx_ring, uint32_t num); 562int ena_update_buf_ring_size(struct ena_adapter *adapter, --- 48 unchanged lines hidden --- | 558}; 559 560int ena_up(struct ena_adapter *adapter); 561void ena_down(struct ena_adapter *adapter); 562int ena_restore_device(struct ena_adapter *adapter); 563void ena_destroy_device(struct ena_adapter *adapter, bool graceful); 564int ena_refill_rx_bufs(struct ena_ring *rx_ring, uint32_t num); 565int ena_update_buf_ring_size(struct ena_adapter *adapter, --- 48 unchanged lines hidden --- |