Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2017 13:26:11 +0000 (UTC)
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325512 - head/sys/dev/ena
Message-ID:  <201711071326.vA7DQBJZ091348@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711071326.vA7DQBJZ091348>