Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp443888lqg; Fri, 1 Mar 2024 09:45:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXv/ZXVXKQHH3KJ1yEEOFEQPC5tiIt5c2pJxcn/FkU+fQt2RHd5b7jpINab5p+4Zt22lsfOf0L0N5nF1vRgFCGO/E2ooYdxLEX1nfRI+Q== X-Google-Smtp-Source: AGHT+IH9l+lesUfAund7jyPd5Apq8kVN72fHfz82z9E5FPNVcJynu0VgbN6y8je17tR00JorZKDl X-Received: by 2002:a05:6830:44a0:b0:6e4:41bb:b30 with SMTP id r32-20020a05683044a000b006e441bb0b30mr3395010otv.19.1709315123362; Fri, 01 Mar 2024 09:45:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709315123; cv=pass; d=google.com; s=arc-20160816; b=zkVNCipW4fg7bPQlVCO1fAksH+Xp+bXaAjw0ydmIaiTiH/PEWsB+DHXdKhiacBwN/N eqV+mGLqTny/a/y29xXdZdugqjvj73V5hahB/sDvDkPUoKQZ8b+WwbHKpsy2D3P/IOn3 o7A1KbFQGrNtFR2mewdRW1BxmY0IuNPG6IfzdwvOR4UyWbwH/ztYFcvYpG9S8J9+abrx p/mZTn8BNhGyOt5nVUJfXgQNCgRONPMNd4qokBLSmD3zaZBq5ADHqJ9OAYaHdrVCb1nc kF/Dc9CjrLqmCMIYIy0cJQxQq2FMhUKpHt9LYDTzQeM8R5slErkod5QbTh41vndpu2oW cOcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HNMmUne/Yqfu1vvSCIO2TJ01IwsJBexeRJmnJDqOCPs=; fh=E1i7CdRhgLvkzzpNYgagzC0zGSLmiWCZ+30VADHcumo=; b=PNzTUpdghIUKCp10nXheszWc2jRAy1Afro4RHobppy2xrZcXUDHCK/2ABubgEUJyFI fgwkTiiCJXFUmVaEnQemf54Bc/spXQmn4CXZKnsOy1N14co/oZycFpRpQnNt6aQJaifY ouZYjhNicd15XLpy/Mhz7griAJnLMUz6UTm8MTaiBJVnSS0i9PqxEtlT7X7wRDJxrUJk YwJ5JmlF4soA8LoDsCLudoBePNEbbzzTadAB3hV9RFIXGDQQHwc51xaTMT5txOmmqNZ7 b4dQkMuoY3d6HZhJNj+Jq6mMPb4rT1CmsvjI0E6Q/hhxsMJqeY+4NbtdX02hnuCeKogk qzfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rHcos0Pz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s6-20020a6550c6000000b005d8bc09efb4si4092283pgp.886.2024.03.01.09.45.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:45:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rHcos0Pz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 94F11B21263 for ; Fri, 1 Mar 2024 17:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C73DD101D4; Fri, 1 Mar 2024 17:08:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rHcos0Pz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7B45F9FD; Fri, 1 Mar 2024 17:08:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709312919; cv=none; b=Uov+lzzJf76OK9uMB/cWQzIgnUTC0uxR7cEDyu8vO2ZiJSwsEdpZIatWT2Xt7QkIqqGW+OybO5NS/xMveVRoVgr3fZjlymzS+pi3t7Hx4jUZEw9Xk7JgpFil1zIbW67rQQ50z312HIBBSf1pq2BycAB+447msbR0BNjsWD6IfB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709312919; c=relaxed/simple; bh=dQWhTKqicP29reyqSeNu/vMazISZHdnkYuuXEej6Pz4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W257XcJdzEOIR7o5wFleG5zjb6Lz3TQ47wF5WUhSl6zgZxg85xShEft6sSDSaZAYrkeXA5A4G1xHsy9gPYo5QXPdaCwEvjv01+znxCJFjWh8DpoQib9uUMM9DxtZims7GwH57Pjl8fcNLjJYK5aBDKTb9j+g3PjN4keUoKXe3JM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rHcos0Pz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6D44C433F1; Fri, 1 Mar 2024 17:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709312918; bh=dQWhTKqicP29reyqSeNu/vMazISZHdnkYuuXEej6Pz4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rHcos0PzRuz4UdjZjyMoX73NdGAjqFbDAr1Jd8vyGXu3BayLGaB7uwICV/c8BU1m9 agaOQYfKzMN5o71Azn12aXvklX/paZlRt/2ibz8nMsmUNJGsKhgYUqL9tcPirqRsC7 Zdo/QgNfo9NQYkasAp+Rp8vDyfGLW8Zwqou9ADlOg9lXRvo5Tmrd3eS57IB5YB8Rax T6/XOoD4ejiZ4B+rJzWjwVvqRwagMPfj3mKx5lHMAGHqHSOwf3hYLncHHANvCphqba D7zEThR8hRDP/CK/5LYHDLJCleFEU+zfBuSjU1FsANZACmVniTpf3q9iMkStOuuMR4 skExEjJ0Owx2g== Date: Fri, 1 Mar 2024 09:08:36 -0800 From: Jakub Kicinski To: Larysa Zaremba Cc: Jiri Pirko , , , , Mateusz Pacuszka , Tony Nguyen , Lukasz Plachno , Jakub Buchocki , Pawel Kaminski , Przemek Kitszel , Michal Swiatkowski , Mateusz Polchlopek , "David S. Miller" , "Eric Dumazet" , Paolo Abeni , "Pawel Chmielewski" , Jesse Brandeburg Subject: Re: [PATCH iwl-net 0/5] ice: LLDP support for VFs Message-ID: <20240301090836.185e3b79@kernel.org> In-Reply-To: References: <20240228155957.408036-1-larysa.zaremba@intel.com> <20240228084745.2c0fef0e@kernel.org> <20240229072813.5d7614c3@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 29 Feb 2024 20:33:04 +0100 Larysa Zaremba wrote: > > This is an LLDP agent which runs as part of the NIC FW, AFAIU, not about > > forwarding or filtering. > > > > They already have the priv flag, so best to reuse that. If not possible > > we can explore options, but as Larysa mentioned herself in the cover > > letter sysfs is probably low on the preference list :( > > FW agent is disabled NIC-wide, so only PF should be able to set such flag. Sorry, then I misread. If it's about which VF gets the LLDP traffic from the _wire_, then I'm with Jiri. It's a basic forwarding problem, isn't it? Match on EtherType and forward? > The lazy part of me likes the private flag direction, because just > replacing sysfs entries with corresponding private flags would make > patch look better while not changing the implementation much. > > I guess, treating it like a normal eswitch configuration would be > ideal, but it would not be purely generic, as there is an added level > of complexity because of FW Agent interactions.