From patchwork Tue Nov 28 07:48:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 13470568 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Te2WRIGc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j/pWxzrz" Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCE899 for ; Mon, 27 Nov 2023 23:49:11 -0800 (PST) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701157749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XMKvs9k0lrDJpPKqiFsLE6VhMPcM38DJ/QVMxQep/fc=; b=Te2WRIGcjjGUtwN5hRVhm3KaaGBek33NGtt+/bT7r02EUUjMa+ROQ1mwL5JgOZaGZlIpPG APdR9VT6Tab/BEjsb2t8mF0sDc1tqQw4QMmxZZrCGnv00lD+YfAfVrbk//G9lu/nHsRa4M 30LxdWkoil6gPYShCcMpKXBM9T5q3y35DAkn8EQI+XqMAVh2CK5ynM/rj42EJVzKhKr9hA RJLF783YE6XBTGE0WMjqd0I9v8oJhsDPRmQpQG01Fbn6RTTc3oQKb6jEt573vp3lhuO9Qv OGLjxN5h3gaw8W2vRUbV5C5YxgghtHl+fTvozOSIlI+qqCPrAnNMtFJg+l7yXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701157749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XMKvs9k0lrDJpPKqiFsLE6VhMPcM38DJ/QVMxQep/fc=; b=j/pWxzrzdjRvt/3dNVZNDx2lo7GvDHVoHpgZPS0scjrzysTB19kcqisA6VUHxIk7ivs8Ba gXCDIk/eIwsBQnDQ== To: Jesse Brandeburg , Tony Nguyen , Vinicius Costa Gomes Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH net-next 0/5] igc: ethtool: Check VLAN TCI mask Date: Tue, 28 Nov 2023 08:48:44 +0100 Message-Id: <20231128074849.16863-1-kurt@linutronix.de> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Hi, currently it is possible to configure receive queue assignment using the VLAN TCI field with arbitrary masks. However, the hardware only supports steering either by full TCI or the priority (PCP) field. In case a wrong mask is given by the user the driver will silently convert it into a PCP filter which is not desired. Therefore, add a check for it. Patches #1 to #4 are minor things found along the way. Kurt Kanzenbach (5): igc: Use reverse xmas tree igc: Use netdev printing functions for flex filters igc: Unify filtering rule fields igc: Report VLAN EtherType matching back to user igc: Check VLAN TCI mask drivers/net/ethernet/intel/igc/igc.h | 3 +- drivers/net/ethernet/intel/igc/igc_ethtool.c | 36 +++++++++++++++++--- drivers/net/ethernet/intel/igc/igc_main.c | 21 ++++++------ 3 files changed, 45 insertions(+), 15 deletions(-) Acked-by: Vinicius Costa Gomes