From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 867981B341 for ; Mon, 13 Nov 2017 11:24:58 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id z3so14060832wme.5 for ; Mon, 13 Nov 2017 02:24:58 -0800 (PST) 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; bh=8KqEqdbc22Xr4W2Jj6HfwhMWbt2+f71EWXL2m2FZu0s=; b=D2qkDjH+eloSyhbY8GsLTKkWYaUXDU9y3aAzGAbBzT3mhE9oQQFCS5n7LveofY8irV cDvntYq/Er5P0ByN0z9PGC9m/Z9mIsrgBmRSreje0+EW/YU0GPc+ecNsIeihFE4ZW/JF v0SeilErzvAYxsovn3eu9Eeeq4UxbuhlGYEQYj/b6aXKilehsO5yRLYaCDYgvOIGvy95 JZHsd8WQelSR2NplVW792OnbdKRTzO7Nv6QSXd3gaGlNe1trQRkDmsciiYw3ncyKrJ/P QbxMV+rVg8whol35gfBjJmzrvVTPRGc5il0WE1sk0QfQ9rgU9Yydy7FWZhUnyha5Kteb eiTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8KqEqdbc22Xr4W2Jj6HfwhMWbt2+f71EWXL2m2FZu0s=; b=KHm1qcyhpYTlvW+cV441vIcVPn21XKs3Ak5qoYTJzkUvO8bstk6BApBjKQtWvhVvvC KNQQHqG72bfApgv+rpeSoOmILph90Lsi7Fj33pCf3hA3oy4SDg4wwjKU0w3mNouZPnfW J3/v75ojmsakNLTWvuPeVV7sFKD0xaNn9o3kkf47tVLvzDCWYtZ2jgoRCd7eAhkuFMrH MOrMowUVBAceXYrzhG3rzK0MCHOovKOTQyspIx+YbmN4C4ga8nxJd7icjAK/bwVFhFOH xhJb2soyUdx7jrf7RitBKIa4nVcIDnvrbRz2EtE6IrEjtiUgjfLbZJhi2W/G22nJkiRQ nDng== X-Gm-Message-State: AJaThX5P/wccEco/OPMzJRltciMa+SSevGlqV7JruLMx9XG1rQdfxqQh YZMvbVtx7e4RTFu7Dv35nCYHK6K+zQ== X-Google-Smtp-Source: AGs4zMawnKdgPkmLhia2MsC92pZWnee2tbpglUdGESz8wK8oTCqDF+7inhSzmLP65bVrvem0x3FQCA== X-Received: by 10.80.151.108 with SMTP id d41mr11802342edb.236.1510568698029; Mon, 13 Nov 2017 02:24:58 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id s6sm14537594edd.23.2017.11.13.02.24.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 02:24:57 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Yongseok Koh , Adrien Mazarguil Date: Mon, 13 Nov 2017 11:25:16 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/mlx5: fix flow director deletion X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2017 10:24:58 -0000 The speciation are wrongly computed causing the rule to not be match correctly for deletion. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 3df8fba4e..466d74b5f 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -2915,8 +2915,8 @@ priv_fdir_filter_delete(struct priv *priv, if (memcmp(spec, flow_spec, RTE_MIN(attr_h->size, flow_h->size))) goto wrong_flow; - spec = (void *)((uintptr_t)attr + attr_h->size); - flow_spec = (void *)((uintptr_t)flow_attr + + spec = (void *)((uintptr_t)spec + attr_h->size); + flow_spec = (void *)((uintptr_t)flow_spec + flow_h->size); } /* At this point, the flow match. */ -- 2.11.0