From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BD439A04C2; Mon, 25 Nov 2019 08:43:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B02292BCE; Mon, 25 Nov 2019 08:43:43 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by dpdk.org (Postfix) with ESMTP id F3A63CF3 for ; Mon, 25 Nov 2019 08:43:41 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id ep1so6209942pjb.7 for ; Sun, 24 Nov 2019 23:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=BAEobp+G0jxhBza2eg/EHCdhWjqOl7oaxvI4fdJpwjY=; b=0qFIKzB5YJ9k42WOK0RJ6sdOzPh4ppci9s38d4RarRRaQhOHUPsKfrhkl9EzIOXKfF 39UVwhCAqPUS0npdB1q5dRUWkIHIzLNY+kyeTpjyEQfu2BfqFRPQtqYFO0Z9eF0VLfOJ 3lub+PdzocI8aTosmI3hLOPwS/lx+wvcsxaa9zk1q24nLuXTq8IUXj+G4R+ObdIDC01w wzCNQBwipMZfbgPjOjPvx6KuPcgdv7h8NUmWsNVfZtxRgs6FLR363tTQeRmQUyiw9mJ9 jGD2Wv3S7LG6knjNM2BdFVcE1Nx1MpttdYF2nSp084uLg8p5tG6X3CZuMJlN25QLRjFO XsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=BAEobp+G0jxhBza2eg/EHCdhWjqOl7oaxvI4fdJpwjY=; b=JuotAft8Lv339vL3zMlJuaZAJY7+tJBGdyGOj81Bga0D9mHU7nDxCX0GWKN5D809el vLQ42hzomA3YUjIcd1yYhz+vMe818aRi0D8MofigTli26oiTI3DWc4Lo0FoUVSkzj13X 58aMEJ+5Bjtve+LF42wlP21iV5OSclz5TyfGQ/HY3UlxqPiFN1efXfzKag74yJfJle0Q 3560h5BsPnkr3ZBIZdmNJIU8XMKQmqOarlbU4/N0BXwVXyBcjN66AkLu7kcSxv+lUdVW jzLthsRCR8v6PmIKcR80dS2AYqAP8TYAudjm03Z82BoPq2H/u6SivHfoxATX6MHByMww pC1Q== X-Gm-Message-State: APjAAAXBZnGtsQfoHf9ZCBwOqhad8NAXYWiwPMdiLCPG5E1mzORG3lw8 x/OyXTOc/QWz/RcInPc7PmdGig== X-Google-Smtp-Source: APXvYqxzPwFPjiU9V+gww7+jlKDsaRX/IfkQeQ242O3bC3SCB/OcmlukXPCwskmAh5144GsNgWUC9Q== X-Received: by 2002:a17:902:d917:: with SMTP id c23mr9983713plz.310.1574667820745; Sun, 24 Nov 2019 23:43:40 -0800 (PST) Received: from [10.2.194.64] ([61.120.150.70]) by smtp.gmail.com with ESMTPSA id fh11sm7089626pjb.2.2019.11.24.23.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Nov 2019 23:43:40 -0800 (PST) From: =?gb2312?B?utjF9A==?= Message-Id: <25D9FEAD-D712-40D9-9BB3-E88F1CA4794B@bytedance.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Mon, 25 Nov 2019 15:43:35 +0800 In-Reply-To: Cc: "dev@dpdk.org" , Matan Azrad To: Slava Ovsiienko References: <0B649466-6BA1-4E28-A176-71C51CB7A00A@bytedance.com> X-Mailer: Apple Mail (2.3445.104.11) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [External] RE: mlx5: the default rule makes VF rep cannot get packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi,=20 > =E5=9C=A8 2019=E5=B9=B411=E6=9C=8825=E6=97=A5=EF=BC=8C=E4=B8=8B=E5=8D=88= 3:32=EF=BC=8CSlava Ovsiienko =E5=86=99=E9=81=93= =EF=BC=9A >=20 > Hi, > =20 > What OFED version do you use? Or OOB kernel driver/rdma-core? OFED 4.6-3.11. > Target table (1 in the mentioned patch) is created on the flow = creation as empty one. > The default rule for the empty ingress table in FDB (transfer = attribute in testpmd command) > =E2=80=93 go to vport 0 (to wire/VF representors), it is established = by kernel/rdma-core, In your setup > it does not work. > =20 The NIC works in switchdev mode; every VF has a representer, and dpdk is = polling each rep to get packets.=20 If I revert this patch, in the probe stage, DPDK will not install the = default rule which directs packets to Table 1, and dpdk can get packets. The target is to use dpdk as well as action offload together. =20 The setup code is in the function = *mlx5_flow_create_esw_table_zero_flow*. Even for running L2FWD, I cannot get a packet from VF rep. You mean = this is a driver problem ? > With best regards, Slava > =20 > From: =E8=B4=BA=E9=B9=8F =20 > Sent: Monday, November 25, 2019 9:27 > To: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko = > Subject: mlx5: the default rule makes VF rep cannot get packets > =20 > Hi,=20 > =20 > We found the patch "net/mlx5: revert default rules amount = optimization",=20 > which installs a rule directing all egress traffic from VF to table 1, = results in=20 > VF representors get no packets, even if there is no offload rules = installed.=20 >=20 >=20 > I=E2=80=99ve tested both l2fwd and ovs-dpdk. However, PF rep works = just fine.=20 > =20 > =20 > We are using dpdk 19.11-rc3 for evaluation.