From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 57D82AAB7 for ; Thu, 22 Mar 2018 07:40:48 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id l16so13965482wmh.3 for ; Wed, 21 Mar 2018 23:40:48 -0700 (PDT) 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=m5X+P2LZxPvxrPhm9Z0pKJisGmc6GT6nHiswgflc+KE=; b=SHI+rSQRM8MF3a8L93ENTfYpNgsNq4ELQPu2yue7abCnHxVO1O/biFXHU5+lBvJd0T +ZypUky9UiFdev6y8RbzM8knSJH4u924Ny5HEv3de6tWUNJKEdj8GwDAw/2W5nSpQ8e5 jwQWzMRKik369CQMC2lzRrrWxrutx4owcuQiNe+LgCN85X3BGRqYOpbWm7fcnNuzKuBB xEu7eXR0OfLEjUfPerWkwAZghmKEu4APFRLoIfPhthq9GHa1OA8VwYb1NkOPM59vhseC 12pZQhgdxjSuQkUY8hQs4DFyUyFyCBn0yGwELyB2euMcufyp/S8/zB/EY9iQHKLe7E+l gnNw== 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=m5X+P2LZxPvxrPhm9Z0pKJisGmc6GT6nHiswgflc+KE=; b=tyCtT8JQoKEKkDieev63114xpSUCewrY6r3D23Q7qnpJ61j+4TdsT0+soivVrowsF5 WMwPRcOiZgtOVA/HBKo6HiJQYINHOZ7pSBtdTKG48Gs560/SWSFj2tK5cIaOy8AN8MgR QvO+JNx3YErnIwUiPwoI0l9a4YUjeYzmPT2tj2cLxRhbZISANLyvfpQeNYLuckCbll9R GtJpTElwfrsCiANad42exidkDMWX1KtcHbiu0WAi3Be0qj8RFyHVGsnIWAi1LjPNRMRs tTFe0cDEHOFDW0Zy9knGoUGdYScIx81N5pNEqwiLvO7Yj6WIm4dTn8+7tEoHIjLhm+QV 36LA== X-Gm-Message-State: AElRT7HE23aUH7Dx7BfWXn8Psk4dZKJFK9M93ndmtVSwIkr+2dc61mzj Rth4RREFOMI/aWyotFKWltxY3uVxENPvS3KMbT0= X-Google-Smtp-Source: AG47ELvxTX3M/vPMqtE88WLK7XLfcosqlOcsY/W99VgOaKSiVRT7BCsP6g31Drvsq2w4D5fbyWYJ4O/Ut5bjn4EIi8o= X-Received: by 10.80.136.107 with SMTP id c40mr20554495edc.231.1521700848017; Wed, 21 Mar 2018 23:40:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.165.45 with HTTP; Wed, 21 Mar 2018 23:40:47 -0700 (PDT) In-Reply-To: <20180321074833.6a3d2656@xeon-e3> References: <20180321074833.6a3d2656@xeon-e3> From: shengxiao qian Date: Thu, 22 Mar 2018 14:40:47 +0800 Message-ID: To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] wrong core receive the package 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: Thu, 22 Mar 2018 06:40:48 -0000 I add some logs=EF=BC=8Cit shows that the packet's hash value is 3104575691 <(310)%20457-5691> and it was received by core 3. if the function rte_eth_dev_rss_reta_update works well.the hash indirection table maybe like this: 0: 0 1 2 3 4 5 6 7 8: 8 9 10 11 12 13 14 15 16: 16 17 18 19 20 21 22 23 24: 24 25 26 27 28 29 30 31 32: 32 33 34 35 36 37 38 39 40: 0 1 2 3 4 5 6 7 48: 8 9 10 11 12 13 14 15 56: 16 17 18 19 20 21 22 23 64: 24 25 26 27 28 29 30 31 72: 32 33 34 35 36 37 38 39 80: 0 1 2 3 4 5 6 7 88: 8 9 10 11 12 13 14 15 96: 8 9 10 11 12 13 14 15 104: 24 25 26 27 28 29 30 31 112: 32 33 34 35 36 37 38 39 120: 0 1 2 3 4 5 6 7 The hash value 3104575691 <(310)%20457-5691> & 127 =3D 75,according to the = hash indirection table, the core num 35 is right.But actually it was core3 received. So i guess may be the hash indirection table is wrong? How can i check this= ? 2018-03-21 22:48 GMT+08:00 Stephen Hemminger : > On Wed, 21 Mar 2018 11:13:19 +0800 > shengxiao qian wrote: > > > Hi there; > > Our machine has 2 cpus=EF=BC=88Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.= 20GHz=EF=BC=89with > > 40 cores. > > If the core num is less than or equal to 16. the application with dpdk > > works fine.But if the core num more than 16.there is something wrong wi= th > > it. > > In our test scenario(more then 16 cores), server a is a tcp client > and > > server b is a tcp server. Server a sends a syn packet to server B with > > core1, and server B returns a syn ack message to server a.Although the > hash > > value of these two packets is the same, syn ack packets are distributed > to > > server a other core(not the send core),Can anyone give some help? > > > > RSS hash is not symmetrical. The SYN and SYN-ACK packets have swapped > address and port (src/dest); therefore the hash will be different. > > There are some weaker RSS hash keys that are symmetrical. >