From owner-freebsd-net@freebsd.org Tue Jan 24 06:57:14 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E1A3CBF09D for ; Tue, 24 Jan 2017 06:57:14 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 441C7C62 for ; Tue, 24 Jan 2017 06:57:14 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id k127so106073068vke.0 for ; Mon, 23 Jan 2017 22:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1FUbCV4KloSrpGR5qJfCxD0X4yIKAlbK89vEOhJAfF4=; b=UUwRQQJdRxTeiiGFHWsy9eg2c5RD7oeMaHbeB6DHRf9yIJWtg0p8oZz7QNIkMuF++y Ok/p0Bs1bJymsDMm+SgBS3WaWRZqDtOghLNDSz3yx/pos0BjTNQf7N1Z4IrV612mGhUX OvvtfjCCpzrtlbB1vshWbMDrwI+jxPNxyFiCUYWcFw1AN56ogkdfNrSRt7gl8NulpYkB q1ULYzWH2wvEbxZ7O5jyUe0VifO4IfVTPRiPfAJ6dtAiXT1S0JD8+qQmXUNwaITdQ1rR A91zFOIfcdbNgzB25cF1C8hlFSv7w9Wiywus1cJyLHTcrcakTCcIoQsEiXpxA7ZW3eXB tjoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1FUbCV4KloSrpGR5qJfCxD0X4yIKAlbK89vEOhJAfF4=; b=bxeJ9Ee+h23UbZW2mnyw1J8HKHEZ8GSLj6WCvs+GuNQwTaTiXTbCQlHoI1PCxObWBE f1CttB14bGNaDQohunZpukogh1ENZUKC39HHtc/I3iqGCsMFEzTUScMJg5kIubb/TTZP OvpLMRdFoUvv7SvJ39J7oOQHpGQkZR2GPkS7hw9vVUcU0A45CCt1c80S2XjpPgYqXwfK ZPyCmvCJ+e8JMKtbh1aS+TzOVpOj99QzWr84vhHGiuReCpUMmdQcURmAWeUuccVvIUxW URy0vCNRmmCIhqmfdMlsl75V/LTA2hA7Y1vrYUebegfMvvNQMrHmGje7hYRQzWhRsN9W pAUw== X-Gm-Message-State: AIkVDXInKj7G78GkXkQ0b/cbI6hZIM3tvgib1iiv1uQ4pBdsem4VfnQzEzKd+uMBnZOu2oJkb4vDNKhIw3mYOQ== X-Received: by 10.31.168.145 with SMTP id r139mr15050050vke.148.1485241033301; Mon, 23 Jan 2017 22:57:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.2.10 with HTTP; Mon, 23 Jan 2017 22:57:12 -0800 (PST) In-Reply-To: References: From: Sepherosa Ziehau Date: Tue, 24 Jan 2017 14:57:12 +0800 Message-ID: Subject: Re: High priority for the tx queue in netmap To: Xiaoye Sun Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 06:57:14 -0000 On Tue, Jan 24, 2017 at 4:09 AM, Xiaoye Sun wrote: > Hi, > > In my application, there are multiple tx queues in the OS, and the netmap > program uses one tx queue. I wondering if I can give the netmap tx queue > higher priority so that the NIC always sends the packets from this queue if > netmap put any packet to it. You need to check your NIC chip vendor for this. Thanks, sephe