From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 11C1C1B6F0 for ; Wed, 19 Dec 2018 10:25:14 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6020EDB956; Wed, 19 Dec 2018 09:25:13 +0000 (UTC) Received: from localhost (dhcp-192-241.str.redhat.com [10.33.192.241]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E7DA85DD89; Wed, 19 Dec 2018 09:25:05 +0000 (UTC) Date: Wed, 19 Dec 2018 10:25:04 +0100 From: Jens Freimann To: Maxime Coquelin Cc: dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com Message-ID: <20181219092504.5t6c5mxwwvkfpkmm@jenstp.localdomain> References: <20181211134804.10318-1-maxime.coquelin@redhat.com> <20181211134804.10318-2-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181211134804.10318-2-maxime.coquelin@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 19 Dec 2018 09:25:13 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v2 1/3] net/virtio: inline refill and offload helpers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2018 09:25:14 -0000 On Tue, Dec 11, 2018 at 02:48:02PM +0100, Maxime Coquelin wrote: >Signed-off-by: Maxime Coquelin >--- > drivers/net/virtio/virtio_rxtx.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c >index eb891433e..e1c270b1c 100644 >--- a/drivers/net/virtio/virtio_rxtx.c >+++ b/drivers/net/virtio/virtio_rxtx.c >@@ -741,7 +741,7 @@ virtio_dev_tx_queue_setup_finish(struct rte_eth_dev *dev, > return 0; > } > >-static void >+static inline void > virtio_discard_rxbuf(struct virtqueue *vq, struct rte_mbuf *m) > { > int error; >@@ -757,7 +757,7 @@ virtio_discard_rxbuf(struct virtqueue *vq, struct rte_mbuf *m) > } > } > >-static void >+static inline void > virtio_discard_rxbuf_inorder(struct virtqueue *vq, struct rte_mbuf *m) > { > int error; >@@ -769,7 +769,7 @@ virtio_discard_rxbuf_inorder(struct virtqueue *vq, struct rte_mbuf *m) > } > } > >-static void >+static inline void > virtio_update_packet_stats(struct virtnet_stats *stats, struct rte_mbuf *mbuf) > { > uint32_t s = mbuf->pkt_len; >@@ -811,7 +811,7 @@ virtio_rx_stats_updated(struct virtnet_rx *rxvq, struct rte_mbuf *m) > } > > /* Optionally fill offload information in structure */ >-static int >+static inline int > virtio_rx_offload(struct rte_mbuf *m, struct virtio_net_hdr *hdr) > { > struct rte_net_hdr_lens hdr_lens; since these are all static functions, does declaring them inline actually help or are they inlined anyway by the compiler? regards, Jens