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 5F36445A7A for ; Tue, 1 Oct 2024 15:08:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 538E34027E; Tue, 1 Oct 2024 15:08:00 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 4EFC74027C for ; Tue, 1 Oct 2024 15:07:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727788077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f8tqEI0fWFLOz6n+XA5IrKkOm1zTzfII/zbiF9LpVl4=; b=N/XPUe+TeExy2ETKmNASsf8s/HgqQ8nN1eTnufwlAPK/TjCeP5GgVnmYfa2IuXajZeqEVa KOoyow9HIeNsMKrRFDaDnpRpYU/CV9Cwv+8Sj/r1Czn7MgnfYRwHE1QL+iY/jllqgQluqR 7M03Orv8XOwpoG9T+/NKr13z4/+F5V8= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-pP4VWYIKPiuaSr5yQdWeoA-1; Tue, 01 Oct 2024 09:07:56 -0400 X-MC-Unique: pP4VWYIKPiuaSr5yQdWeoA-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2fad086cfa0so13641131fa.3 for ; Tue, 01 Oct 2024 06:07:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727788075; x=1728392875; 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=f8tqEI0fWFLOz6n+XA5IrKkOm1zTzfII/zbiF9LpVl4=; b=FOLy5YphMsPs9wMF14tERPo0NmRrEi9P4mhYQ9rlB7Dem4duAPUXiqYozSs6eazUL7 v8nj+cXPLM17wuseaiqOaXyKwScHTlR7t60XS/+PoSFB2/ID/Hfzt24kZrieJJePwGS9 G/1Y3VIGMSIkHxgoDqixJ2wqLAYti1zBW36Xsh9nhUCIgId5HvgbL/J9oQ3aeutFrhAs hvJPlGRX6ZFyELbLmuvuZRLBCbmgBiJOsahElEYSZK6ig4LjdALtQ5lGNi4XTdeICDb2 3Sb7kcejBlLUXTvT0PUPkkLFzi6nI/uDUr7d10WUSavntlvSnE9bVOWFRWjQJXEVkcNJ 2ycw== X-Forwarded-Encrypted: i=1; AJvYcCVFfaVo2xsLy4MJG3F33C5HIf987nMuMkgSv7cUORNIav/LWBLBXIX0QoxsRtKxqLvzbIHLbTk=@dpdk.org X-Gm-Message-State: AOJu0YzQZ34p1lSVpx+dGxb4DcamhOT9joTVO6FAvdrQNChcmV2krV1I 81gSkXxfVx2Ywqo1Lm+KY4fI7QOJQxgJJ+R3LoxSJkRCyUjwMi6eztirYV5+xauTU+M0sHLlDpJ ycaTQkm2/X2/ulIbY8DfGbsgcLBZk7LnFai4oumpOktW4XaGdV17KMUR6qQtK1kbMZDVRccHoPD 1ryHDRgjtPml5wFi1hGjo= X-Received: by 2002:a05:651c:198b:b0:2fa:cc63:d9dd with SMTP id 38308e7fff4ca-2facc63dda4mr39117101fa.5.1727788075042; Tue, 01 Oct 2024 06:07:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4rEuNAwbO/hHu6fK3N/kzF5trn0pGWMd8lJF3dsukzpjstvwcHOWyeTdM+BXc2q8UoTvJzccvk52FgcQUrDo= X-Received: by 2002:a05:651c:198b:b0:2fa:cc63:d9dd with SMTP id 38308e7fff4ca-2facc63dda4mr39116981fa.5.1727788074554; Tue, 01 Oct 2024 06:07:54 -0700 (PDT) MIME-Version: 1.0 References: <20240919120039.4097053-1-david.marchand@redhat.com> <20241001091254.98540-1-david.marchand@redhat.com> In-Reply-To: From: David Marchand Date: Tue, 1 Oct 2024 15:07:41 +0200 Message-ID: Subject: Re: [PATCH v2] net/iavf: preserve MAC address with i40e PF Linux driver To: Bruce Richardson Cc: dev@dpdk.org, stable@dpdk.org, Jingjing Wu X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Tue, Oct 1, 2024 at 12:09=E2=80=AFPM Bruce Richardson wrote: > > @@ -1113,16 +1111,6 @@ iavf_dev_stop(struct rte_eth_dev *dev) > > /* Rx interrupt vector mapping free */ > > rte_intr_vec_list_free(intr_handle); > > > > - /* adminq will be disabled when vf is resetting. */ > > - if (!vf->in_reset_recovery) { > > - /* remove all mac addrs */ > > - iavf_add_del_all_mac_addr(adapter, false); > > - > > - /* remove all multicast addresses */ > > - iavf_add_del_mc_addr_list(adapter, vf->mc_addrs, vf->mc_a= ddrs_num, > > - false); > > - } > > - > > Question on this: while I understand we don't want to remove the default > mac address, should all other non-default macs not still be removed? I would say that we don't care. Right after this, the VF driver sends a VF reset (following your recent change), and the PF flushes any mac associated to the VF from hw filters. The kernel VF driver does nothing about mac addresses when uninitialising. --=20 David Marchand