From patchwork Fri Dec 1 07:50:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 13475502 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SssFFLM/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LRDUF9T+" Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0912D10F8 for ; Thu, 30 Nov 2023 23:51:01 -0800 (PST) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701417059; 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=EqwBLovC5ct849IeQWIt3omI4kJ6O9qsyWxt4uWuYCc=; b=SssFFLM/u5i1R8h3UodZcrGSPlEXNIbgBJLBiIrnipg1dXAz/v6fLYLMdezGgB86mILedE F0mjHhyf8DHgF34gTGN0fZANdcKsnsstUBFgOWq2uYayzd5DH/LCb4TlkI4Uy9EX5dQavk 5vg01L085IvcAqgA3W8woVyakkMM7Fl5XFQGvK9XyTk+dS3CwZRiP6Lo4kjz/sIGkaljKb fR31m/pRyHf0ygYt9TEdp9H1Qvb9H94uQ7SaR0SZXgrgNO7Eo5oAsGyCcaq6MJxiPWeurH W6cj67vKxaYxpa/wN5o9n3ld93dXHntlRSKt24UzZk7t4lrY/oTLVO60ENcRtA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701417059; 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=EqwBLovC5ct849IeQWIt3omI4kJ6O9qsyWxt4uWuYCc=; b=LRDUF9T+tuvT0Y2WWu751P6bOu42eJSknaAjZ2rlQNtU07K44tGHqzymNBpX0kGftMu5SQ uL66Dy6lpTzQLPAQ== 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 iwl-net v2 0/2] igc: ethtool: Check VLAN TCI mask Date: Fri, 1 Dec 2023 08:50:41 +0100 Message-Id: <20231201075043.7822-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. Patch #1 is a minor thing found along the way. Changes since v1: - Split patches 4 and 5 for -net - Rebase to -net - Wrap commit message at 75 chars - Add Ack from Vinicius Previous versions: - https://lore.kernel.org/netdev/20231128074849.16863-1-kurt@linutronix.de/ Kurt Kanzenbach (2): igc: Report VLAN EtherType matching back to user igc: Check VLAN TCI mask drivers/net/ethernet/intel/igc/igc.h | 1 + drivers/net/ethernet/intel/igc/igc_ethtool.c | 34 ++++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-)