From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E1B843D48 for ; Mon, 25 Mar 2024 18:53:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E688B40695; Mon, 25 Mar 2024 18:52:59 +0100 (CET) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mails.dpdk.org (Postfix) with ESMTP id E355240298 for ; Mon, 25 Mar 2024 18:52:58 +0100 (CET) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a466a27d30aso575980666b.1 for ; Mon, 25 Mar 2024 10:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711389178; x=1711993978; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sg4zZRCadjeyV8VuYVFALkkrmakeBQXvnLG4x6LPlzQ=; b=IP/c1ifiQfg2hUhQx0UHG2UFJBQfHt4Pqj74yaYh4IAVv+qe40Xu4dDN8BAODTqeEh I8cjN0bvIRJGS3xvPRgU6bZ+/hvdpgPETm4YhRQmsYeTzEnQh48Q1VOd2UbLUBE0lJZr 9ugD0H8rFvAcEYzhlQveY8zuOmmNdjfntB5GUNiAdpOyA0M5SkC3rLwL3XK0ZrFL5zjW QlPIVtVuYP28YFSDkFoRq14nBddhXhm94pLvlM4tCLSjjVI2OcKrQI85eMpM/yjHrYuG 7xwXU3X5s/PpB9KzxQx6hBKhb1jU5JwuxPVnZoUpvzrPwXyqtEO4AevaMaqy5Ty+Q7/Q 3Jpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711389178; x=1711993978; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sg4zZRCadjeyV8VuYVFALkkrmakeBQXvnLG4x6LPlzQ=; b=H2F4Xx64Zwv59LB8/WAsTjJP6HZfvc9C4gYdlWnG6OkmKec+/V9PCbG0H/OIDPEpHp s3vuioYxfpgaX1H5WzDXCzOuOX51x8h2QKVeJahlaBkCDYxKGCQwJnEYYvd8r9Zk8qyh jV7b0r9Po3RVrLAqD0OA8Cc1s7W4L6U1xts2AWOFEJ8sMAzM0UtL6NGeDCeJvfnwTjzz ROl5foBDn8xvKGiPwzQKTObpTLW1toHCvTk5qG+ePD4YaCRJ/IyHio8X3nhySDWj+JRE SN3Qb6CLHlVe48JHACeWDZ29jAmqjTNHKvEGgSTHkE0vL5t2EWDcrm7Ahzx10g+OAqjN stLA== X-Gm-Message-State: AOJu0YwN+GbkpAorI5yVBlkADxUG8KeQcnuhEY0Nb0WFoxAPpsIbXjhv i5He/Fn/DkbO/7TCF4WbwRSO2Np9xae4hcF+LImwbDyQfljGrUag4k3+2PU01aBkt4+IQgS4SEj n+s+kgtOCfxoTmQwuSMyyn9u7t/UWeUQLA5I= X-Google-Smtp-Source: AGHT+IH7cx/fUNOdV6GLwFQgF0MNAbQCgtMFaatBP+qRfgL6cx/H0Lgsuun+5gZN/qKAeTDmVvRCmLS57gyH1dbGguE= X-Received: by 2002:a17:907:7283:b0:a47:4c82:edb2 with SMTP id dt3-20020a170907728300b00a474c82edb2mr4218650ejc.5.1711389178351; Mon, 25 Mar 2024 10:52:58 -0700 (PDT) MIME-Version: 1.0 References: <20240325101454.63ef509d@hermes.local> In-Reply-To: <20240325101454.63ef509d@hermes.local> From: Antonio Di Bacco Date: Mon, 25 Mar 2024 18:52:47 +0100 Message-ID: Subject: Re: MLX5 VF stops transmitting when the Physical Function is added to a Linux bridge To: Stephen Hemminger Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Stephen, I know that the mlx5_core is bifurcated, I did another test, I just added one of the VF to the bridge but I see that testpmd using other VFs suffer the same problem. When I add to the bridge another interface (not the one with VF but a simple 1Gbps named ens5f0) I see that VFs used by testpmd stop working. If I give the command ifconfig ens5f0 down, then, the testpmd VF resumes transmission. Best regards, Antonio. On Mon, Mar 25, 2024 at 6:14=E2=80=AFPM Stephen Hemminger wrote: > > On Mon, 25 Mar 2024 15:59:36 +0100 > Antonio Di Bacco wrote: > > > I have a Connect X5 card (PF ens1f0np0) directly connected to another s= erver: > > > > 1) create VF on PF on both servers > > 2) change mac address of VFs to my own addressing > > 3) start testpmd on server 1 in txonly mode to transmit to server 0 > > 4) start testpmd on server 0 in rxonly mode to receive > > 5) everything is fine, I keep receiving packets on node-0 > > > > Now, on server 1 I add the PF to a linux bridge, and everything's still= fine. > > > > If I add another interface (a simple 1Gbps with no VF, ens5f0) to the > > linux bridge, then, I don't receive anymore packets on node-0 > > > > If I remove the ens5f0 from the bridge or I put down the ens5f0 the > > traffic flow restarts. > > > > I understand that DPDK uses the VF directly with no dependencies on > > the kernel. How can operations on the kernel side (like adding an > > interface to bridge) can affect the VF? > > > > > > Best regards, > > Antonio. > > Mellanox is bifurcated driver, so kernel and DPDK interact. > Adding device to bridge will change MAC address.