Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2640663rbb; Wed, 28 Feb 2024 08:04:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhxtmiMVyLRybz35yfyNqclVQRgLLeBwVfnSRNwoQkNmcIbStr4v6ddRr8yIo5oJIJGqXdK+DZH/WU7Fyyr4ta6P8xGJubrqfMC9Zpfw== X-Google-Smtp-Source: AGHT+IERquKgWCpeQqw1JePD0vFeLMqbid+HgYa56cpdwdwag9wAlO87G5Tdm43YQlexZU6gKPoV X-Received: by 2002:a05:6e02:216a:b0:365:259b:711e with SMTP id s10-20020a056e02216a00b00365259b711emr16339754ilv.5.1709136273535; Wed, 28 Feb 2024 08:04:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709136273; cv=pass; d=google.com; s=arc-20160816; b=swXEltpinpaSQTC5sDSfRFrQuxUaq27EfQipGBaWB8AxnLNARnHAFaJtHJbeKdG8g7 lPsukm9yNHrJ/rJrPj73l4+RkTQq//vDqk6WxvUbRdpnl0ePqE3fqHGC89VPH8r8YE4a tT124VxqGm30gnSLsYsoTa4BI55nzkVHeYCxJhfzqfOoBbqXoTGgNUas0ksktTgtZG2h 1/zG9tNYXtmLu+4BhQZuh+X0NVJ13t8TpetIbfvjTTn4rqDgv6R0onNTyIt5MWhEj3aH SjX+ZlYgGgmd/++w0ccaPJhPz4XkbpftjxI82AZO0SD8qOBUPyPixKgkavyD4QAxklLc lHMA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=hfuxi8bVlgWbcMzLEZSPvEMkWRh0UiZWU1oOY//I/Ls=; fh=XF5dR1hZ6bmHhiCesO+5NPfXhTaDjas2E0STvyrxXLQ=; b=Tf9yKFbcDHbg134GvyOnGjGqayn0KwWYc34s1QQwPpIjbsMCl+Gvb/88c1I/1sKx56 xl8zqPGcKRGvhvclSwC8+mz0PbyPMVcbh9MekDFEGOsXkydeosXcxV6irCUgkc+hRQhg ErK2dBY0knopdEgo8Vl4w7QE2ymRnWL5Mex2hNCr8yBTgt3I1QO8pbWj6gRqKIZkJLWS Pvulmz4SiuNAZzQaJ3kacudW5q1RLgh8qhgavo4xv1k0dZto/E6e24Uvy4F24oEMxJvQ VaQ5h/rZF70pGjCbJzYJwyVE1bs67GVB6Q1rR/faPk93Mzijb5S7XNbDxJb1LrJAZwGj zFsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aMiwYxcu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85315-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q13-20020a92d40d000000b003639cded5d2si2930775ilm.165.2024.02.28.08.04.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 08:04:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aMiwYxcu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85315-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 60FAD2845AE for ; Wed, 28 Feb 2024 16:04:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25EE515D5DA; Wed, 28 Feb 2024 16:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aMiwYxcu" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 0509E1487DC; Wed, 28 Feb 2024 16:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709136253; cv=none; b=bVohblCorm+qbD/ZEptBLRnw1TIefYHXa/LQ74GqGLSmyWSYJgcqEjWG/ccOfzsWmqr2jj+CRJo9SgdkCM+Kmloe60TPaPWBzt4P+xE5c1BxY2/AQolvrPf2NrZU6SKR89WmHardN29BszOS8kst3QHCZwYXVUqVNF7OCN2pFyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709136253; c=relaxed/simple; bh=HmhSwJzywo2VHhaxf4zsr70ZyAx8N40+pr9JK+rKZj4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cxLSibARAwx7myUHZcSMuK/zXthJT2We6QEVhYu3Yf4qyHwpNGXVraQalgiCD4FSp+ARr2vTsAWfY/NsAjA5NMbMBSIgPIsPN4w6HKktJasZ4MvVjF/uUfDjOJD+gZ6V4A3FbHR9JsjpXRHiNjFO4vze9w8CFsd1KO2xwu0Q6qI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aMiwYxcu; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709136251; x=1740672251; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HmhSwJzywo2VHhaxf4zsr70ZyAx8N40+pr9JK+rKZj4=; b=aMiwYxcu+xQE8H4QLP+fBfqD/4IbwIJy/EOw1vVh1LXj41vi5g/KbpsF gNNNOz/tpmkCjNwtOpznghfpST+GCiKbSqWeb0974+Nbeyn9VpKXOL/xd WtiQNrH4io04856fbmp8GdotOXmHteglB9b1RibLy59iBuBnut4Cx5t+n CKequBHc0DViJEtICgkC/1i8g0PKJi5NukDGgMvETDvwo1R9DbWPQHrcK zBIlqEeRn5efAegeVkhF6viI7wuznzWeL7jI4LaU+Kxu+I/fxEOiicWrN fNaNWq8e/ZJpK62P2JKupJ4JzOjWR03zBfjif1xyVSeR44QSXO5MSbCuf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="3706562" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="3706562" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 08:04:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="7527674" Received: from irvmail002.ir.intel.com ([10.43.11.120]) by orviesa009.jf.intel.com with ESMTP; 28 Feb 2024 08:04:07 -0800 Received: from lincoln.igk.intel.com (lincoln.igk.intel.com [10.102.21.235]) by irvmail002.ir.intel.com (Postfix) with ESMTP id A506936820; Wed, 28 Feb 2024 16:04:00 +0000 (GMT) From: Larysa Zaremba To: intel-wired-lan@lists.osuosl.org Cc: Larysa Zaremba , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Mateusz Pacuszka , Tony Nguyen , Lukasz Plachno , Jakub Buchocki , Pawel Kaminski , Przemek Kitszel , Michal Swiatkowski , Mateusz Polchlopek , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Pawel Chmielewski , Jesse Brandeburg Subject: [PATCH iwl-net 0/5] ice: LLDP support for VFs Date: Wed, 28 Feb 2024 16:59:44 +0100 Message-ID: <20240228155957.408036-1-larysa.zaremba@intel.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Allow to: * receive LLDP packets on a VF * transmit LLDP from a VF Only a single VF per port can transmit LLDP packets, all trusted VFs can transmit LLDP packets. For both functionalities to work, private flag fw-lldp-agent must be off. I am aware that implemented way of configuration (through sysfs) can be potentially controversial and would like some feedback from outside. Larysa Zaremba (1): ice: Do not add LLDP-specific filter Mateusz Pacuszka (3): ice: Fix check for existing switch rule ice: Implement VF LLDP RX support on VF ice: Implement VF LLDP TX support for VF Mateusz Polchlopek (1): ice: Add function to get VF from device struct drivers/net/ethernet/intel/ice/ice.h | 2 + .../net/ethernet/intel/ice/ice_adminq_cmd.h | 1 - drivers/net/ethernet/intel/ice/ice_common.c | 26 -- drivers/net/ethernet/intel/ice/ice_common.h | 2 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 6 +- drivers/net/ethernet/intel/ice/ice_lib.c | 83 +++++- drivers/net/ethernet/intel/ice/ice_lib.h | 4 + drivers/net/ethernet/intel/ice/ice_main.c | 58 ++++ drivers/net/ethernet/intel/ice/ice_sriov.c | 4 + drivers/net/ethernet/intel/ice/ice_switch.c | 4 +- drivers/net/ethernet/intel/ice/ice_vf_lib.c | 252 ++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_vf_lib.h | 26 ++ drivers/net/ethernet/intel/ice/ice_virtchnl.c | 11 + 13 files changed, 439 insertions(+), 40 deletions(-) -- 2.43.0