From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m15-35.126.com (m15-35.126.com [220.181.15.35]) by dpdk.org (Postfix) with ESMTP id F2AFD14E8 for ; Mon, 27 Nov 2017 09:23:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=DtyHH brlRuxDPhgMJQ5FaOUbnuT4U8W86n0CkcWU+w0=; b=WzTM+JAI2N1CqNX0Y6lhM oBSAVnVsLK39i5mKu5y3geqmjCUKUfQ2WcQwA1XT5vdNBCcyQhGHgM3ISgnpJdiU 1ilxTSrhh0QddsT9n7F2jVWgr0Slwkauf+1mesNtjvXM5SHWJlgCqYf5SQkGME8z /SGJ10cDX9+G45pRx6vHCI= Received: from topperxin$126.com ( [114.255.44.142] ) by ajax-webmail-wmsvr35 (Coremail) ; Mon, 27 Nov 2017 16:23:10 +0800 (CST) X-Originating-IP: [114.255.44.142] Date: Mon, 27 Nov 2017 16:23:10 +0800 (CST) From: topperxin To: users@dpdk.org X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20160729(86883.8884) Copyright (c) 2002-2017 www.mailtech.cn 126com X-CM-CTRLDATA: Cq9LgmZvb3Rlcl9odG09ODAzOjU2 MIME-Version: 1.0 Message-ID: <52738422.b154.15ffc92a890.Coremail.topperxin@126.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: I8qowEDJGEFvyxta9VNXAA--.54991W X-CM-SenderInfo: xwrs1vhu0l0qqrswhudrp/1tbiLRSdDlhg0LH2sAACs3 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] how to calculate the checksum for tcp segment from gso output X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 08:23:13 -0000 SEkgbGlzdAoKICAgICAgICAgSW4gdGhlIDE3LjExIHZlcnNpb24gLGxpYiBnc28gd2FzIGludHJv ZHVjZWQuCiAgICAgICAgIEkganVzdCB3YW50IHRvIGNoZWNrIGl0J3MgcGVyZm9ybWFuY2UuCiAg ICAgICAgVGhlIG91dHB1dCBzZWdtZW50cyBmcm9tIHRoZSBydGVfZ3NvX3NlZ21lbnRzKCkgd2Vy ZSBtdWx0aS1zZWdtZW50cyBtYnVmLCBhdCB0aGUgc2FtZSB0aW1lLCBydGVfZ3NvX3NlZ21lbnRz KCkgZG9uJ3QgY2FsY3VsYXRlIHRoZSBjaGVja3N1bSBmb3IgdGhlIG91dCBwdXQgdGNwIHNlZywg c28gLCB0aGUgYXBwbGljYXRpb24gaGF2ZSB0byBjYWxjdWxhdGUgdGhlIGNzdW0gYnkgaXRzZWxm LgogICAgICAgIEJ1dCB0aGUgY3VycmVudCBydGVfdWRwdGNwX2NzdW0oKSBpbnRlcmZhY2UgY2Fu J3QgY2FsY3VsYXRlIHRoZSBjaGVja3N1bSBvZiBtdWx0aS1zZWdtZW50IG1idWYuCgogICAgICAg IFdobyBrbm93IGhvdyB0byBkbyBpdD8gCiAgICAK >From rolette@infinite.io Mon Nov 27 13:36:22 2017 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 3D05D1B1A1 for ; Mon, 27 Nov 2017 13:36:22 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id u83so33978545wmb.5 for ; Mon, 27 Nov 2017 04:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infinite-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q/SVYMpKokdHWZcVvm2Wqr6K3Jp0y7xfmbFM/tBz1Lc=; b=DgRD/O7tpsBJ9kaCFF9Deec9u38YkvbQFCQyZnTabPYL90AbBMMZxdfAdCnHs5QEKv wrWt/Tzysujt0kWUnk5FZVHExjmAtwAeYFjv8VPIE6+IMyh0HfUVPzmqpr0cLRavuVCR 4pGBSKXWCUf+gy6EVJCqWZnWgq6F4+v2IAouimsb/8vUv3LH69tORV2G5eG+1w3Z5sHB 6DcbHjh2UZEAfn0L/jFx2bD09qgXygONeBJAx5R9Rf0y4ZFZ98678ehj1YSssT2ngch5 XXV1vSsryGjTbX0YXgmi1MwAE7iQPkBdgpfJUvaGRKwOiYkc+AYX7jYl5EliePfspiWj GRnA== 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=q/SVYMpKokdHWZcVvm2Wqr6K3Jp0y7xfmbFM/tBz1Lc=; b=S2yZyNn1ODUQTcUHc4ShOGuNFHxqry1+EBlG/fB4z/Mw7I4tYsj5PxFUmywCm4WnL2 IBbSY/Ry2xZhKU80ya+cO+B+HSrcL2jnrgtQvQmjQ71CiPbn4ariX2zC6IpqFOR4HeWw wL+THh+kGJLWrENhoj0petrbKA4tGFTgt31LAX/z2+T5WkK6PbZuadD7wiKrToSXYd+U aGiGaJGauOttWWLixzj8BtimWIC70koSllj61n9RdTd7cD/r50468uYlB9rvOB18OhRK wJv5r/ECwRN38SK9pvD7Oiih9YKpu5vvWy45YhHepSt6xla0QXsNKXjx5YSMd39nzKVd sRHA== X-Gm-Message-State: AJaThX6TBqThlNGua6cV53dys//DH9Xjzh2jYOtz0xxzgUHIFTLPO/7C E8MRGZ3/t9XVctPdEIp2pwgliRXYFNNjj/QIwQm39g== X-Google-Smtp-Source: AGs4zMbvwgfO+SKpbr+d03Q8m+k1mzmTQDsz0cwdjSnY4jrIQNwPU1J5RPgaCNfEjrQQtMlLrU7K1tfgQQAErhVH4J4= X-Received: by 10.28.30.213 with SMTP id e204mr13705732wme.40.1511786181899; Mon, 27 Nov 2017 04:36:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.170.157 with HTTP; Mon, 27 Nov 2017 04:36:21 -0800 (PST) In-Reply-To: References: From: Jay Rolette Date: Mon, 27 Nov 2017 06:36:21 -0600 Message-ID: To: junlee Cc: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] KNI with RTE_KNI_PREEMPT_DEFAULT=n causes CPU soft-lockup X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 12:36:22 -0000 That shouldn't cause soft-lockups, but IIRC, there have been KNI bugs in that past that would. Probably worth checking whatever version of DPDK you are running vs. the tree for relevant fixes. Given what you are looking into, this thread may be of interest: http://dpdk.org/ml/archives/dev/2015-June/018858.html Jay On Sun, Nov 26, 2017 at 7:27 PM, junlee wrote: > Hi, > > We are testing KNI performance and finds the schedule_timeout_interruptible > causes extra latency for packets. > > We tried to set RTE_KNI_PREEMPT_DEFAULT=n to reduce the latency, but ends > up with CPU soft-lockup. > > Anybody knows how to make this work? > > static int > kni_thread_single(void *data) > { > struct kni_net *knet = data; > int j; > struct kni_dev *dev; > > while (!kthread_should_stop()) { > down_read(&knet->kni_list_lock); > for (j = 0; j < KNI_RX_LOOP_NUM; j++) { > list_for_each_entry(dev, &knet->kni_list_head, list) { > kni_net_rx(dev); > kni_net_poll_resp(dev); > } > } > up_read(&knet->kni_list_lock); > #ifdef RTE_KNI_PREEMPT_DEFAULT > /* reschedule out for a while */ > schedule_timeout_interruptible( > usecs_to_jiffies(KNI_KTHREAD_RESCHEDULE_INTERVAL)); > #endif > } > > return 0; > } > > Thanks. >