svn commit: r325512 - head/sys/dev/ena

Marcin Wojtas mw at FreeBSD.org
Tue Nov 7 13:26:13 UTC 2017


Author: mw
Date: Tue Nov  7 13:26:11 2017
New Revision: 325512
URL: https://svnweb.freebsd.org/changeset/base/325512

Log:
  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 at semihalf.com>
  Reviewed by: rlibby, byenduri_gmail.com
  Obtained from: Semihalf
  Sponsored by: Amazon, Inc.
  Differential Revision: https://reviews.freebsd.org/D12854

Modified:
  head/sys/dev/ena/ena.c

Modified: head/sys/dev/ena/ena.c
==============================================================================
--- head/sys/dev/ena/ena.c	Tue Nov  7 13:20:41 2017	(r325511)
+++ head/sys/dev/ena/ena.c	Tue Nov  7 13:26:11 2017	(r325512)
@@ -122,7 +122,7 @@ static void	ena_destroy_all_io_queues(struct ena_adapt
 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;


More information about the svn-src-head mailing list