From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 444961B19 for ; Mon, 30 Apr 2018 16:08:31 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id j4so13413049wme.1 for ; Mon, 30 Apr 2018 07:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TJyJs0l/YY1/eU/2y67uV7NVcrohXstRtac2+bhSebU=; b=G4D5+Grd51hFaGVz2HUpSqYtD/uBmlWyqCraIW12C/XAMBcW510EdS7wEwtlvC1TNd kt4x50pIt3vY3NYCSEwRHp+hEhUkoRoEo+EzWR5LI72AuXaPymC1mZV0UWibA3BvK5GW 2VxewWZR7R2PRbfmDQV0ixZZWBCw2PJYUjLXnRDjnreHC4YKDfEn8c9Q2W13ZI2xvW01 bsvxSsgW0kn+G5CMLhaI2XMsrSr0SBCZcLiM9S+nHLIeA+2cNJPl7A/1axlzmV2/O284 s+npX6pHYfAHkt8wrCf16jZlWDnIAa4NDlokPeM5HuKlprmFGeTyzQpOEZ+ly1IhuS50 wJbg== 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=TJyJs0l/YY1/eU/2y67uV7NVcrohXstRtac2+bhSebU=; b=jicdprEA5PBCiIVMQnhDfX9Q1bNP3szGKLdtM7g7DgKjXjIyBoO0XLJrTQO1/tfzJJ FQBZ3TYw0AOGVL75du3scSkxmMF/0g0Z2ijr4bseK9wnqSaG3hm3yuSR7diKAwabij+T YIRvqunlkTue/qKDMfTysyRl2tLUjEBwLjz2B3wnt3LVKGUFuqMef21UGZp6EKmgPI3c J5OhCuiA2wVlC/ckst8eiD7oKz8FQ36IuFT4Xy19aSEWYVDcj6oqvnemY+0ph3DFmKjB NIf/MUNvkJckxJBZEaTuAyxT8vMtdY/ugZ5QbPdtr+U7lxgAgf5VMfvbMbDVPIry2jkR jAOA== X-Gm-Message-State: ALQs6tAoCByAPxN/11xZ3MpTXyjtD887rN6yAm+PLbXJ6zMRrJf0cvha P7ADR8wftZuEj7lwL9Lvk9O0k6TEuHc= X-Google-Smtp-Source: AB8JxZqz+WC7FTRQb20ENgMNyL4M9ORdeKdF8NdsB9B6cWKqgFFHQIVH00gff2ZRmscP2lragjFn+Q== X-Received: by 10.28.210.193 with SMTP id j184mr7385510wmg.14.1525097310982; Mon, 30 Apr 2018 07:08:30 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id 19-v6sm18565164wrz.7.2018.04.30.07.08.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:08:30 -0700 (PDT) From: luca.boccassi@gmail.com To: Kirill Rybalchenko Cc: Qi Zhang , dpdk stable Date: Mon, 30 Apr 2018 15:03:58 +0100 Message-Id: <20180430140606.4615-80-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/i40e: fix support DDP packages group 0xff' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:08:31 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From f15771c5f8b22e70f48747951e574abdcc347d11 Mon Sep 17 00:00:00 2001 From: Kirill Rybalchenko Date: Thu, 22 Feb 2018 18:01:39 +0000 Subject: [PATCH] net/i40e: fix support DDP packages group 0xff [ upstream commit e46a1e0bebe217f81e4c2425dd843f9d2fb31930 ] Group ID 0xFF indicates that packages does not change parser graph so compatible with any other packages. Fixes: b1ec717bfff5 ("net/i40e: fix multiple DDP packages conflict") Signed-off-by: Kirill Rybalchenko Acked-by: Qi Zhang --- drivers/net/i40e/rte_pmd_i40e.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c index dae59e6dc..ada3eff27 100644 --- a/drivers/net/i40e/rte_pmd_i40e.c +++ b/drivers/net/i40e/rte_pmd_i40e.c @@ -1530,6 +1530,11 @@ i40e_check_profile_info(uint16_t port, uint8_t *profile_info_sec) return 1; } } + /* profile with group id 0xff is compatible with any other profile */ + if ((pinfo->track_id & group_mask) == group_mask) { + rte_free(buff); + return 0; + } for (i = 0; i < p_list->p_count; i++) { p = &p_list->p_info[i]; if ((p->track_id & group_mask) == 0) { @@ -1540,6 +1545,8 @@ i40e_check_profile_info(uint16_t port, uint8_t *profile_info_sec) } for (i = 0; i < p_list->p_count; i++) { p = &p_list->p_info[i]; + if ((p->track_id & group_mask) == group_mask) + continue; if ((pinfo->track_id & group_mask) != (p->track_id & group_mask)) { PMD_DRV_LOG(INFO, "Profile of different group exists."); -- 2.14.2