From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Rybalchenko Subject: [PATCH] net/i40e: fix support DDP packages group 0xff Date: Thu, 22 Feb 2018 18:01:39 +0000 Message-ID: <1519322499-51506-1-git-send-email-kirill.rybalchenko@intel.com> Cc: stable@dpdk.org, kirill.rybalchenko@intel.com, andrey.chilikin@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com, helin.zhang@intel.com To: dev@dpdk.org Return-path: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 dae59e6..ada3eff 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.5.5