aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ena
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2017-11-07 13:26:11 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2017-11-07 13:26:11 +0000
commitfceb93871598b5f6779a21e3ae3e380694289aea (patch)
tree397f0ad1255ce8a9de9adb348d3594f41f4ab61a /sys/dev/ena
parentcd5d5804b16daf16a3ffe31e857be954f49d3834 (diff)
downloadsrc-fceb93871598b5f6779a21e3ae3e380694289aea.tar.gz
src-fceb93871598b5f6779a21e3ae3e380694289aea.zip
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
Notes
Notes: svn path=/head/; revision=325512
Diffstat (limited to 'sys/dev/ena')
-rw-r--r--sys/dev/ena/ena.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c
index 5925f9289f70..cfff43a1412b 100644
--- a/sys/dev/ena/ena.c
+++ b/sys/dev/ena/ena.c
@@ -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;