Change function validate_tx_req_id() to inline in ENA driver
The function is in hot path of the driver (TX) and asking compiler for making this function inline was changed for consistency and higher readability. Submitted by: Michal Krawczyk <mk@semihalf.com> Reviewed by: rlibby, byenduri_gmail.com Obtained from: Semihalf Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D12854
This commit is contained in:
parent
cd5d5804b1
commit
fceb938715
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325512
@ -122,7 +122,7 @@ static void ena_destroy_all_io_queues(struct ena_adapter *);
|
||||
static int ena_create_io_queues(struct ena_adapter *);
|
||||
static int ena_tx_cleanup(struct ena_ring *);
|
||||
static int ena_rx_cleanup(struct ena_ring *);
|
||||
static int validate_tx_req_id(struct ena_ring *, uint16_t);
|
||||
static inline int validate_tx_req_id(struct ena_ring *, uint16_t);
|
||||
static void ena_rx_hash_mbuf(struct ena_ring *, struct ena_com_rx_ctx *,
|
||||
struct mbuf *);
|
||||
static struct mbuf* ena_rx_mbuf(struct ena_ring *, struct ena_com_rx_buf_info *,
|
||||
@ -1165,7 +1165,7 @@ ena_destroy_all_io_queues(struct ena_adapter *adapter)
|
||||
ena_destroy_all_rx_queues(adapter);
|
||||
}
|
||||
|
||||
static int
|
||||
static inline int
|
||||
validate_tx_req_id(struct ena_ring *tx_ring, uint16_t req_id)
|
||||
{
|
||||
struct ena_tx_buffer *tx_info = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user