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 08BA048B0B for ; Fri, 14 Nov 2025 17:46:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC87840EE4; Fri, 14 Nov 2025 17:46:49 +0100 (CET) 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 30EB140EE4 for ; Fri, 14 Nov 2025 17:46:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763138808; 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=OvgLDPnbLVUWYzWSnYLaFYgPgDNKFzGPorgUwbMJPeU=; b=Qc5IkYMahq+12piUVIofwUt4EC1NWczZjc/zK+5dYbBisC67ibHvDRaGNFKTVc4GC2RS51 v++BblNgUOlyajlB9Brx2wNKujbTx73KEJtYF3ABfBtyCFxaPQU0rfuX+XHqJ8faRTej5c kmSCSw5pI0PGpwcRauIOxwjU2xJmN8g= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-RmVwzraYOKWNGVMdB72PsQ-1; Fri, 14 Nov 2025 11:46:45 -0500 X-MC-Unique: RmVwzraYOKWNGVMdB72PsQ-1 X-Mimecast-MFC-AGG-ID: RmVwzraYOKWNGVMdB72PsQ_1763138804 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-42b2ffe9335so3023944f8f.1 for ; Fri, 14 Nov 2025 08:46:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763138804; x=1763743604; h=in-reply-to:references:user-agent:cc:subject:to:from:message-id :date:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OvgLDPnbLVUWYzWSnYLaFYgPgDNKFzGPorgUwbMJPeU=; b=p7HlCm7Agn/WHxBnafoATZI0bG1ziQ3dkxJ0q/igM1sIJ40fhe8Hyc0YPN5iQI65tT biIopWh5YLArztvGjjrxj8Xr1y5TTA/dLCaU6KqG4wxTEHHLE/OfHqwlllYopKZ9f4Fo JyY25jeZ15hmwGGaRJNqe+0nY7DrHq0jbawysIDoQyGSML5cH3vJ/G6W/Q/gJ0vuRiBw IJuVlF4Jyxd6CeaZWabhxm9PynmR5Ig4yFXoR7kzkJkKWIVP7GiF+z6sJwNVPGOz2b6c eJq72Ii5EW2NFyYA5fbIe4VBMKXZ9WV/FYdLgUebarR9rutYOq/g5su/663Jqici4saT 7c/w== X-Forwarded-Encrypted: i=1; AJvYcCU7IIl+R/HFGfFEbJMSNy3G9RpR76KtFMbg2IvNtsCg1PzvGJJJWcMio6PWdZr3U2R0EfBWMLY=@dpdk.org X-Gm-Message-State: AOJu0Yyd/gnE6Z4jW/gGFUwPWrrJ+PrMv52shJJTFqMcC95xhQYOCTod VpNNEt3M6XhEZ4hshBsI4rdTeJOcQ16g5vRMkeW8iSeHAWaVLIbnlb/VamXT54ACwUPJbX2m8vy hmRQt35gZoHJ4CQIW6K7ZQzbM8sb/cdd5GEsuGpnJAyEFouS4 X-Gm-Gg: ASbGnctZb/yh3T5C0hB7CNvTemqkk1/AzMxvAS5iUAt7yERiBweeji6hROApthvQ9FO H5seSpOyHeobhr3ZpD0AU6MTOfkAc2hA41symnJGLLTS66DKV4S9xDJmrShOIVUEw+funiG2nj/ pHTwLqoQBXCT2o5GyzhTny48UqHxpv0StuhLwl14gWn1zQsmqSBnMRfHSA6y6vyADy8Iit/xQrc 5g2tM2qBDiSeUyTivq0QSZijv1SzK/L0p99yaZtcqFtQ9gR/6A+7ecoqSnJIjdb9kdq3yq96CLQ e7ZZEAaN7Ph/Qca8hdpr+T49tTmpzkE8K/wv1PaYALjOHLdEFhAb0oYRfOF+n9EELniKwKZLsip IZs7tRsx7taQtWu9gpWtwha2wMWSa7BZmeguZJ0yq+olGZwPWvZpLTp0rxg== X-Received: by 2002:a05:6000:310b:b0:427:454:43b4 with SMTP id ffacd0b85a97d-42b5938f8e0mr3603390f8f.48.1763138804189; Fri, 14 Nov 2025 08:46:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IED09DG+QbWGx3BuGv/DBVvMN/rJ/0Nbvm72uYCL3WL4uaQ/DiB0Q7ttli7MH+bv+W1koyatQ== X-Received: by 2002:a05:6000:310b:b0:427:454:43b4 with SMTP id ffacd0b85a97d-42b5938f8e0mr3603366f8f.48.1763138803814; Fri, 14 Nov 2025 08:46:43 -0800 (PST) Received: from localhost (2a01cb00021ec000b06e6b63494bd4c5.ipv6.abo.wanadoo.fr. [2a01:cb00:21e:c000:b06e:6b63:494b:d4c5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53e7b14bsm10560409f8f.9.2025.11.14.08.46.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Nov 2025 08:46:43 -0800 (PST) Mime-Version: 1.0 Date: Fri, 14 Nov 2025 17:46:42 +0100 Message-Id: From: "Robin Jarry" To: =?utf-8?q?Morten_Br=C3=B8rup?= , "Stephen Hemminger" Subject: Re: [PATCH dpdk] net: ipv6 link local compliance with rfc 4291 Cc: , "Christophe Fontaine" , User-Agent: aerc/0.21.0-27-g605fd3b39ccd-dirty References: <20251114105751.54802-3-rjarry@redhat.com> <20251114080532.1e86d13e@phoenix> <98CBD80474FA8B44BF855DF32C47DC35F65560@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35F65560@smartserver.smartshare.dk> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: h_uvWcQD66qYmKqwS2_ZunKjlw2znlOUp4xnFWwE1sg_1763138804 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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 Morten Br=C3=B8rup, Nov 14, 2025 at 17:14: >> From: Stephen Hemminger [mailto:stephen@networkplumber.org] >> Reading the kernel source there is also special handling to include >> device >> id into link local address. This is to handle corner case where >> multiple network >> cards have same hardware MAC address. > > Multiple physical NICs should never have the same MAC address. > Lots of stuff will break if they do. > E.g. a network switch will forward packets to the NIC that most recently = sent packets, so its MAC address was learned in the MAC address table in th= e switch. > > What is the use case justifying this tweak in the kernel? Some drivers expose multiple ports sharing the same mac address. This very is specific to certain hardware vendors. The comment here refers to a change from 2005. I couldn't find the root commit/email. https://github.com/jeffmahoney/linux-pre-git/commit/44993d3bb812f > 2005/01/17 13:13:52-08:00 hch > [IPV6]: Fix EUI64 generation on S/390. > > - put a dev_id field in struct net_device, so that it uses space that > would be wasted by padding otherwise. > - if this fields is non-null let ipv6_generate_eui64 use the algorithm > from the QETH code to generate an EUI that's different for each > OS instance. See code comments for details. > > Signed-off-by: David S. Miller I don't think DPDK should care about this. --=20 Robin > Do not use while operating a motor vehicle or heavy machinery.