From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (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 3C41181724 for ; Tue, 8 Jul 2025 22:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752012161; cv=none; b=s0OzhaVDOWEUCXaKh4sDb+bcHTgSo49kFnm/gBNpATzisjYhpugxlRChlJUOnjWdv3j4WFkws8s4PiofetXhyrxJ47gPRdrPI5qVbACK1ePiUZ+zOpkzWDvN6gJpCTWor2Zev1DKOqcjGeMBJ7Avycb/f3LHGGCSmCBn+3SMGSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752012161; c=relaxed/simple; bh=z0tUCMMPDbF3xWgFul1BEHRkbE3mK2LburHI2nQPO1A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h8WdYatrrFx83h8NgNjKNTx3j5tD3EbVMQaQSdqriNUWo1pRYkQy+STxUDghM8RV1AFVHxXBq0T2aQu5ION+cOrSgHCxiuAYAvXQFtVuxA+BwoY3nixxYv7GJOLnGkf82qPSHxulzkBh1TveEhLlJvi4w3i1F6H7mC9VXxb19Fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 1ACA76122E; Wed, 9 Jul 2025 00:02:38 +0200 (CEST) Date: Wed, 9 Jul 2025 00:02:38 +0200 From: Florian Westphal To: Eric Woudstra Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Nikolay Aleksandrov , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , netfilter-devel@vger.kernel.org, bridge@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH v14 nf-next 3/3] netfilter: nft_chain_filter: Add bridge double vlan and pppoe Message-ID: References: <20250708151209.2006140-1-ericwouds@gmail.com> <20250708151209.2006140-4-ericwouds@gmail.com> Precedence: bulk X-Mailing-List: bridge@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250708151209.2006140-4-ericwouds@gmail.com> Eric Woudstra wrote: > + if (!pskb_may_pull(skb, VLAN_HLEN)) > + break; > + vhdr = (struct vlan_hdr *)(skb->data); > + offset = VLAN_HLEN; > + outer_proto = skb->protocol; > + proto = vhdr->h_vlan_encapsulated_proto; > + skb_set_network_header(skb, offset); > + skb->protocol = proto; Why is skb->protocol munged? Also applies to the previous patch, I forgot to ask.