From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC v3] /net: memory interface (memif) Date: Fri, 4 Jan 2019 11:32:05 -0800 Message-ID: <20190104113205.5b76e3aa@hermes.lan> References: <20181213133051.18779-1-jgrajcia@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: To: Jakub Grajciar Return-path: Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by dpdk.org (Postfix) with ESMTP id 1A31D1B4BA for ; Fri, 4 Jan 2019 20:32:13 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id 64so18731006pfr.9 for ; Fri, 04 Jan 2019 11:32:12 -0800 (PST) In-Reply-To: <20181213133051.18779-1-jgrajcia@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 13 Dec 2018 14:30:51 +0100 Jakub Grajciar wrote: > + role = MEMIF_ROLE_SLAVE; > + flags = 0; > + id = 0; > + buffer_size = 2048; > + log2_ring_size = 10; > + nrxq = 1; > + ntxq = 1; > + socket_filename = ETH_MEMIF_DEFAULT_SOCKET_FILENAME; > + secret = NULL; > + eth_addr = NULL; Minor nit, since you initialize some of the values when declaring them. Why not move all these initializations up to where the declaration is. Just makes everything more compact. > + /* create interface */ > + ret = > + memif_create(vdev, role, id, flags, socket_filename, log2_ring_size, > + nrxq, ntxq, buffer_size, secret, eth_addr); > + Another nit, why split the line like this? Instead of: ret = memif_create(vdev, role, id, flags, socket_filename, log2_ring_size, nrxq, ntxq, buffer_size, secret, eth_addr);