From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by dpdk.org (Postfix) with ESMTP id 5DB402C8 for ; Tue, 20 Jun 2017 13:37:48 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id s66so22252135pfs.2 for ; Tue, 20 Jun 2017 04:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7rGi29trqQJzb02Kp9F6pCbcRjAOq0KRm3TKdMRcNDU=; b=zopwJDU7UC5J+lZon7mvcWAumJcTQrjdskiKV8TMhgA9Ej9Gi3H/RDr6wRiezMVoy5 GLGv7gyGOALHVZZs691XSqlo/a03YloPIVaFNOIzQxFatTpstsFFxWzh1Q/z7D2WqiTh C6vw0GKZoMEnmpXXm6lNibNZB92jOKh9hKgDcYgwZz1iBRjQLNoALW+AG+QMgkLouJQf S/d4JW8asv3h8XKUjrjhw4+MOPqG95ZaGMjWqHG9WnmC+jF2DiyZ60inD/QyflIf7+vd yYUss0tMxreX/LjONWoGX0AD9bwDUQqbiISA4Ra8V1KnTpu+OaPBvFpLifH3GylW1eYN Wh4A== 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:in-reply-to :references; bh=7rGi29trqQJzb02Kp9F6pCbcRjAOq0KRm3TKdMRcNDU=; b=aqeTGq9g+diXGHaxludKjFUwcyJj6fcivFHbA/MR/7k2mbxHe8w+MsrzMUAPRus8k1 wImuyDeABw8Znqw36ef5yObvDBa+nsu8xP1QvtcTpx/n7BK9EF/olmrC1YSui8wnUEa4 GCqqmegDkEQf8P/Q7kYlRWG6uJUJTGtSPNLGE/A8dmmsXqEx2TeCwFi+Y6CAPb0MkIp4 aRiOj5uEm8BwWdH5QqYl1zJRasAqdqHqq8iZyaqGfM39bigSmS4z6oKobvC1RjsjfAR3 Z/yvokiBitRuzMMh55DaR3DP4u2o+zNSfWuAppDFeKBi9HmclBzuQkGk/4eLyva4KhuX 3jig== X-Gm-Message-State: AKS2vOztVLi2cHwFLe1/PJUkItSghrz7FjmErL3BQsOAfJqvNrr39lKx ozCfRsww6jM6WWih X-Received: by 10.84.217.25 with SMTP id o25mr31180252pli.299.1497958667602; Tue, 20 Jun 2017 04:37:47 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.37.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:37:46 -0700 (PDT) From: Yuanhan Liu To: Qi Zhang Cc: Wenzhuo Lu , dpdk stable Date: Tue, 20 Jun 2017 19:35:37 +0800 Message-Id: <1497958550-13600-25-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ixgbe: fix fdir mask not be reset' has been queued to stable release 17.05.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 11:37:48 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From f309da4becea3c75b6019c6ccb4648c10c0b43c1 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Thu, 1 Jun 2017 13:36:44 -0400 Subject: [PATCH] net/ixgbe: fix fdir mask not be reset [ upstream commit 8d702249d58e01429cab988d28b95921ebf1d590 ] When the last fdir flow be destroyed, the flag "mask_added" should be reset, so the remain mask info will not take effect when a new flow be added. Fixes: a14de8b498d1 ("net/ixgbe: destroy consistent filter") Signed-off-by: Qi Zhang Acked-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index da7b1cc..9aeb71e 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -2647,6 +2647,8 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev, struct ixgbe_eth_l2_tunnel_conf_ele *l2_tn_filter_ptr; struct ixgbe_fdir_rule_ele *fdir_rule_ptr; struct ixgbe_flow_mem *ixgbe_flow_mem_ptr; + struct ixgbe_hw_fdir_info *fdir_info = + IXGBE_DEV_PRIVATE_TO_FDIR_INFO(dev->data->dev_private); switch (filter_type) { case RTE_ETH_FILTER_NTUPLE: @@ -2699,6 +2701,8 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev, TAILQ_REMOVE(&filter_fdir_list, fdir_rule_ptr, entries); rte_free(fdir_rule_ptr); + if (TAILQ_EMPTY(&filter_fdir_list)) + fdir_info->mask_added = false; } break; case RTE_ETH_FILTER_L2_TUNNEL: -- 2.7.4