From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 028142A1A for ; Wed, 27 Apr 2016 17:25:07 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id e201so44081866wme.0 for ; Wed, 27 Apr 2016 08:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=Y9snbkJ/b3Hh5Jccc1neBJTBIB/Egd1ez+XX0VPDdoQ=; b=zYvCJG4z1tDhR8wT7XxfWrNRGxhH256KqRI5VgYsmHXIuH3urSjdpaNnZi2ac/O8UN ZtlOIZ5HLCzbXZKQfGNbbAZXJW0CrGVIZsepNx5dAWSkgstjFsQST1oi4zQgfm3rrUN6 vnLb/WOLjh61oKYjmFuy35iC+vvRndp0WePvSOM4LdskIQy+i9I2WfQfrNluumNK6D0z 3djfyjTr23QITCqGhi+I6hESYRzNOuu84Mhf3vtduim25JFRnt/0VbmzHpofZiRcTcQX NQfBE4E+62S7BAQtQ8PSmKXNdbND/ga6DEqApDeCxw7HzMpf8HKcpdndU0MdhgRida+C g7Xg== 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; bh=Y9snbkJ/b3Hh5Jccc1neBJTBIB/Egd1ez+XX0VPDdoQ=; b=gbh2xOCbRuqx1KntoDnBVg+pVmS2l5x8P/ZVQfO7Eb7Lq+9pgFxm801EfMVCXbf861 8LFQvrNUYQ8SxIc7tg4uqevnk4d4eSetx8l+qXH0ZUfSj8Fm0prLDC9hyQ9WQoenACTn 7IxcVjsKDt3tFhRbHf9hc75tdVEt1BNloohjjg6T3gcsKf7FK50bP2hHO0DKdCF4qoos Hc19xPewZSUOaY4NqzCOM8A8E7xrqFk/msSjuCJAtC+BPEaZxfaA9iqP/qSprayVYz5/ ra46PWV9W2U7cGc3zMS4/k4fgi6PYAs7Bziyd3Dtf4a9ApXA7912H+Ye9Vs1UPLMQRGm lbJA== X-Gm-Message-State: AOPr4FXmGYHpeZKUqjrI69V7ytasjZXXRmgwXqjIICWbhpu3wLSpEubwU0a2yP0+I4zeffMN X-Received: by 10.28.104.131 with SMTP id d125mr24339354wmc.99.1461770706834; Wed, 27 Apr 2016 08:25:06 -0700 (PDT) Received: from xps13.localnet (51.111.75.86.rev.sfr.net. [86.75.111.51]) by smtp.gmail.com with ESMTPSA id a200sm23167212wme.8.2016.04.27.08.25.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Apr 2016 08:25:05 -0700 (PDT) From: Thomas Monjalon To: Tomasz Kulasek Cc: dev@dpdk.org, ian.betts@intel.com, yuan.peng@intel.com Date: Wed, 27 Apr 2016 17:25:04 +0200 Message-ID: <1547256.GDx29xVENn@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1461163527-7348-1-git-send-email-tomaszx.kulasek@intel.com> References: <1461163527-7348-1-git-send-email-tomaszx.kulasek@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/performance-thread: fix size of destination port ids in l3fwd-thread 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: Wed, 27 Apr 2016 15:25:07 -0000 2016-04-20 16:45, Tomasz Kulasek: > This patch uses similar approach for fix, like in commit 8353a36a9b4b > ("examples/l3fwd: fix size of destination port ids"), restoring 16 bit size > for destination port ids and doing necessary conversion from 32 to 16 bit > after lpm_lookupx4. > > Also fixes wrong logic in get_dst_port() on lpm path causing unpredictable > return value when ipv4/ipv6 lookup success, introduced in the same patch. The word "Also" means that you should write 2 patches :)