From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 88BEFA10 for ; Mon, 27 Jul 2015 18:51:58 +0200 (CEST) Received: by wibud3 with SMTP id ud3so148262406wib.1 for ; Mon, 27 Jul 2015 09:51:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=yPecDqfJquMgNcVj3LCYuWtjS5zh4evdn6SyaEVTrRA=; b=BYUimwwCKvL8gT2hU8pTyiCJZvBwWGnVMKKduAIX7+1X+YRlApBm2F61IZIup5D7jl 2VLmI20LGXOQ1W/nrci4vjZ1nhw1hICK8tvgdN4weYz8vCA1qCFV7taS+WMUMM1wjVoG 3D5hKGvHIDxIISRdg9i8e5imDZFQX6cO66UU6+OGjP+rOgL7dguRXsqrHbh0xyunOpfj +k4mMb/QEDnZgffxRZQj8eZ9E5yvhmyGFo13TVrOX35VabemyxMlMQyC1hLixlW6D1/+ Es3Xkaw5oB9H3NBO6MVgLhVCA+6EvBFIfQHYHsSFXynEzUDpVLnhm4SPN+F8P2csYcKs CItQ== X-Gm-Message-State: ALoCoQmZCQT7YvlHkJ2diYfr5I0nm+lf9ujOWDNvNqCM9r8+8mqZdx6Dd1/p2Jy1xNnTwXF6W2P8 X-Received: by 10.194.221.4 with SMTP id qa4mr51656644wjc.145.1438015918371; Mon, 27 Jul 2015 09:51:58 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id gt10sm14518268wib.20.2015.07.27.09.51.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 09:51:57 -0700 (PDT) From: Thomas Monjalon To: Cunming Liang Date: Mon, 27 Jul 2015 18:50:41 +0200 Message-ID: <2354849.gxYziY7VSC@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1437361349-2801-14-git-send-email-cunming.liang@intel.com> References: <1437113775-32199-1-git-send-email-cunming.liang@intel.com> <1437361349-2801-1-git-send-email-cunming.liang@intel.com> <1437361349-2801-14-git-send-email-cunming.liang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: shemming@brocade.com, dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v15 13/13] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 16:51:58 -0000 2015-07-20 11:02, Cunming Liang: > +static int turn_on_intr(struct lcore_conf *qconf) > +{ > + int i; > + struct lcore_rx_queue *rx_queue; > + uint8_t port_id, queue_id; > + > + for (i = 0; i < qconf->n_rx_queue; ++i) { > + rx_queue = &(qconf->rx_queue_list[i]); > + port_id = rx_queue->port_id; > + queue_id = rx_queue->queue_id; > + > + rte_spinlock_lock(&(locks[port_id])); > + rte_eth_dev_rx_intr_enable(port_id, queue_id); > + rte_spinlock_unlock(&(locks[port_id])); > + } > +} examples/l3fwd-power/main.c:836:1: error: control reaches end of non-void function [-Werror,-Wreturn-type]