From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [dpdk-stable] [PATCH v3] net/tap: fix isolation mode toggling Date: Thu, 17 May 2018 15:13:40 +0100 Message-ID: References: <1526335915-27693-1-git-send-email-ophirmu@mellanox.com> <1526336787-28457-1-git-send-email-ophirmu@mellanox.com> <88FE23C0-E7DB-4BB8-844B-4E77EC4D809F@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "dev@dpdk.org" , Pascal Mazon , Thomas Monjalon , Olga Shern , Shahaf Shuler , "stable@dpdk.org" To: "Wiles, Keith" , Ophir Munk Return-path: In-Reply-To: <88FE23C0-E7DB-4BB8-844B-4E77EC4D809F@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/14/2018 11:46 PM, Wiles, Keith wrote: > > >> On May 14, 2018, at 5:26 PM, Ophir Munk wrote: >> >> Running testpmd command "flow isolae 0" (i.e. disabling flow >> isolation) followed by command "flow isolate 1" (i.e. enabling >> flow isolation) may result in a TAP error: >> PMD: Kernel refused TC filter rule creation (17): File exists >> >> Root cause analysis: when disabling flow isolation we keep the local >> rule to redirect packets on TX (TAP_REMOTE_TX index) while we add it >> again when enabling flow isolation. As a result this rule is added >> two times in a row which results in "File exists" error. >> The fix is to identify the "File exists" error and silently ignore it. >> >> Another issue occurs when enabling isolation mode several times in a >> row in which case the same tc rules are added consecutively and >> rte_flow structs are added to a linked list before removing the >> previous rte_flow structs. >> The fix is to act upon isolation mode command only when there is a >> change from "0" to "1" (or vice versa). >> >> Fixes: f503d2694825 ("net/tap: support flow API isolated mode") >> Cc: stable@dpdk.org >> >> Reviewed-by: Raslan Darawsheh >> Signed-off-by: Ophir Munk >> — > > Acked by: Keith Wiles Applied to dpdk-next-net/master, thanks.