Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DBB0C43603 for ; Tue, 10 Dec 2019 06:53:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CEE7206D5 for ; Tue, 10 Dec 2019 06:53:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbfLJGxU (ORCPT ); Tue, 10 Dec 2019 01:53:20 -0500 Received: from m9784.mail.qiye.163.com ([220.181.97.84]:33965 "EHLO m9784.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727299AbfLJGxU (ORCPT ); Tue, 10 Dec 2019 01:53:20 -0500 Received: from [192.168.188.14] (unknown [120.132.1.226]) by m9784.mail.qiye.163.com (Hmail) with ESMTPA id 8FCC641A06; Tue, 10 Dec 2019 14:53:18 +0800 (CST) Subject: Re: Question about flow table offload in mlx5e To: Paul Blakey Cc: "netdev@vger.kernel.org" References: <1574147331-31096-1-git-send-email-wenxu@ucloud.cn> <746ba973-3c58-31f8-42ce-db880fd1d8f4@ucloud.cn> <64285654-bc9a-c76e-5875-dc6e434dc4d4@ucloud.cn> <1b13e159-1030-2ea3-f69e-578041504ee6@ucloud.cn> <84874b42-c525-2149-539d-e7510d15f6a6@mellanox.com> <057b0ab1-5ce3-61f0-a59e-1c316e414c84@mellanox.com> <4ecddff0-5ba4-51f7-1544-3d76d43b6b39@mellanox.com> <5ce27064-97ee-a36d-8f20-10a0afe739cf@ucloud.cn> <052c1c18-89cb-53ed-344c-decd4d296db3@mellanox.com> <01602d82-b46c-07d2-dea7-baa3545db80f@mellanox.com> From: wenxu Message-ID: Date: Tue, 10 Dec 2019 14:53:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <01602d82-b46c-07d2-dea7-baa3545db80f@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZVkpVSUhMS0tLSktMTE1OSVlXWShZQU lCN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MU06Ohw5Tzg5PUk5ISsOKj8c GjQKCh5VSlVKTkxOQk1LTEJDTEpNVTMWGhIXVQweFQMOOw4YFxQOH1UYFUVZV1kSC1lBWUpJS1VK SElVSlVJSU1ZV1kIAVlBSENNQjcG X-HM-Tid: 0a6eee9565c82086kuqy8fcc641a06 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 12/9/2019 3:48 PM, Paul Blakey wrote: > On 12/9/2019 5:18 AM, wenxu wrote: >> HiĀ  Paul, >> >> >> Thanks for your fix, I will test it. >> >> On 12/8/2019 5:39 PM, Paul Blakey wrote: >>> Here's the temp fix: >>> >>> >>> The problem is TC + FT offload, and this revealed a bug in the driver. >>> >>> For the tunnel test, we changed tc block offload to ft callback, and >>> didn't change the indr block offload. >>> >>> So the tunnel unset rule is offloaded from indr tc callback (it's >>> indirect because it's on tun1 device): >>> >>> mlx5e_rep_indr_setup_block_cb >> Maybe It should add a "mlx5e_rep_indr_setup_ft_cb" makes the FT offload can support the indr setup? >> >> Or all indr setup through TC offload? > Adding a "mlx5e_rep_indr_setup_ft_cb" with the correct flags (FT) and > (EGRESS) should work as well, but this is just a test... Indeed, I test with a mlx5e_rep_indr_setup_ft_c, it is also work as well. Thanks paul!