From mboxrd@z Thu Jan 1 00:00:00 1970 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 510C1C432C0 for ; Wed, 27 Nov 2019 13:46:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 241B020409 for ; Wed, 27 Nov 2019 13:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbfK0Nq0 (ORCPT ); Wed, 27 Nov 2019 08:46:26 -0500 Received: from m9784.mail.qiye.163.com ([220.181.97.84]:19744 "EHLO m9784.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbfK0Nq0 (ORCPT ); Wed, 27 Nov 2019 08:46:26 -0500 Received: from [192.168.1.7] (unknown [180.157.109.16]) by m9784.mail.qiye.163.com (Hmail) with ESMTPA id CA2A041B4E; Wed, 27 Nov 2019 21:46:20 +0800 (CST) Subject: Re: Question about flow table offload in mlx5e To: Paul Blakey Cc: "pablo@netfilter.org" , "netdev@vger.kernel.org" , Mark Bloch References: <1574147331-31096-1-git-send-email-wenxu@ucloud.cn> <20191119.163923.660983355933809356.davem@davemloft.net> <2a08a1aa-6aa8-c361-f825-458d234d975f@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> From: wenxu Message-ID: <5ce27064-97ee-a36d-8f20-10a0afe739cf@ucloud.cn> Date: Wed, 27 Nov 2019 21:45:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <4ecddff0-5ba4-51f7-1544-3d76d43b6b39@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZVkpVQkpNS0tLS0tDTkNIS0xZV1koWU FJQjdXWS1ZQUlXWQkOFx4IWUFZNTQpNjo3JCkuNz5ZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MEk6Sww6TDg9EwMLDDEvIwo5 DwkwChdVSlVKTkxPQ01JSENKSkhMVTMWGhIXVQweFQMOOw4YFxQOH1UYFUVZV1kSC1lBWUpDS1VK TkxVSktCVUpNWVdZCAFZQU9MTkw3Bg++ X-HM-Tid: 0a6ead1cdff12086kuqyca2a041b4e Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 在 2019/11/27 21:20, Paul Blakey 写道: > On 11/27/2019 3:11 PM, Paul Blakey wrote: >> On 11/27/2019 2:16 PM, wenxu wrote: >> >>> Sorry maybe something mess you,  Ignore with my patches. >>> >>> >>> I also did the test like you with route tc rules to ft callback. >>> >>> >>> please also did the following test:  mlx_p0 is the pf and mlx_pf0vf0 >>> is the vf . >>> >> Are you  in switchdev mode (via devlink) or default legacy mode? >> >> > mlx_pf0vf0 is representor device created after entring switchdev mode? and eth0 in vm is the binded mlx5 VF? Yes, mlx_pf0vf0 is the representor and eth0 in vm is VF. It also in the switchdev mode. sudo grep -ri "" /sys/class/net/*/phys_* 2>/dev/null /sys/class/net/mlx_p0/phys_port_name:p0 /sys/class/net/mlx_p0/phys_switch_id:34ebc100034b6b50 /sys/class/net/mlx_pf0vf0/phys_port_name:pf0vf0 /sys/class/net/mlx_pf0vf0/phys_switch_id:34ebc100034b6b50 /sys/class/net/mlx_pf0vf1/phys_port_name:pf0vf1 /sys/class/net/mlx_pf0vf1/phys_switch_id:34ebc100034b6b50 The problem is when the last filter add in the tun1 will lead the outgoing syn packets can't be real offloaded > > Can you run this command: > > sudo grep -ri "" /sys/class/net/*/phys_* 2>/dev/null > > example: > /sys/class/net/ens1f0_0/phys_port_name:pf0vf0 > /sys/class/net/ens1f0_0/phys_switch_id:b828a50003078a24 > /sys/class/net/ens1f0_1/phys_port_name:pf0vf1 > /sys/class/net/ens1f0_1/phys_switch_id:b828a50003078a24 > /sys/class/net/ens1f0/phys_port_name:p0 > /sys/class/net/ens1f0/phys_switch_id:b828a50003078a24 > > and > sudo ls /sys/class/net/*/device/virtfn*/net > > example: > /sys/class/net/ens1f0/device/virtfn0/net: > ens1f2 > > /sys/class/net/ens1f0/device/virtfn1/net: > ens1f3 > > and even > > lspci | grep -i mellanox ; ls -l /sys/class/net > > > > > > > Thansk. > >