From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by dpdk.org (Postfix) with ESMTP id 598F36828 for ; Mon, 10 Nov 2014 13:43:08 +0100 (CET) Received: by mail-la0-f51.google.com with SMTP id q1so7626541lam.38 for ; Mon, 10 Nov 2014 04:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=zBdEe4xYt+P7D7gE0E1vbUQwjNz8SQ8xk/Gfn3et1hw=; b=d8u4JIAw0QVn/M7iWmgBwSg7mwtIPmkhUzIhhKuUomgu8gvBPZrTWgmw4cOdlx1VJq 5hExyM0/fYnddbteqw4lBO6xJztippQG8r6SgmpImd5jlWc1M4KRiZaxyN5A1tryUhQ9 q7qwuSD8APTpHXDwb+jCGpm60YNJ8z10p3JXnW4wBDZjmy/huJ6gTjCLRyUbZb6gSr4c mukv7N65/NgyGxkEO39kV/x8N62n/leMdswlbgJQBFqLsMXiKAaZOnUxP9SFAhzya2lH MBQfIiVS7/rYFokp+7s+YPcYC5jAyXfMbs2iG7kd0OfWlhiJ7x/KHNTMVhbbHunuGicS ltGA== X-Received: by 10.152.7.71 with SMTP id h7mr28368540laa.68.1415623972688; Mon, 10 Nov 2014 04:52:52 -0800 (PST) Received: from localhost.localdomain ([194.251.119.201]) by mx.google.com with ESMTPSA id b4sm5263382lak.28.2014.11.10.04.52.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Nov 2014 04:52:52 -0800 (PST) From: Qinglai Xiao To: dev@dpdk.org Date: Mon, 10 Nov 2014 14:52:45 +0200 Message-Id: <1415623967-52488-1-git-send-email-jigsaw@gmail.com> X-Mailer: git-send-email 1.7.1 Cc: Qinglai Xiao Subject: [dpdk-dev] [PATCH v2 0/2] Add in_flight_bitmask so as to use full 32 bits of tag 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, 10 Nov 2014 12:43:08 -0000 The patch series extends the tags used by librte_distributor from 31 bits to 32 bits. Besides, it fixes the integer overflow in the algorithm of finding matched tags. The newly introduced union field rte_mbuf.hash.usr stands as the flow identifier. User application is advocated to set this field for each mbuf before calling the distributor process rte_distributor_process. Qinglai Xiao (2): Add new union field usr in mbuf->hash. Add in_flight_bitmask so as to use full 32 bits of tag. app/test/test_distributor.c | 18 ++++++------ app/test/test_distributor_perf.c | 4 +- lib/librte_distributor/rte_distributor.c | 45 ++++++++++++++++++++++-------- lib/librte_distributor/rte_distributor.h | 4 ++ lib/librte_mbuf/rte_mbuf.h | 1 + 5 files changed, 49 insertions(+), 23 deletions(-)