Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp725316pxf; Thu, 18 Mar 2021 10:07:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1uFgBQDOdn6m8ijy0McheEsXa54PiR+yjOntoIdWYfpP9Q9tXzFDV3f2bbEEo4BF+ZAMQ X-Received: by 2002:a17:906:81d5:: with SMTP id e21mr41515239ejx.102.1616087233520; Thu, 18 Mar 2021 10:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616087233; cv=none; d=google.com; s=arc-20160816; b=EhYXX8qn7GrhNApcEIg07OUy/RahKqnnIhaoIOKUjRaL+0nwfdU7P1NxQFgeCvWA1Z c18+QUglIGU2IVtFdbBrUPeFhcIO3EGt2OB2Eo9IEQ3ekd4YRSii4wldkNuc8i1vrrIh BTMHRR26v/Fkd2EhBo2GsEx1n4ZX/eBkRJRiY752jVRay9p4L+AW9ZGLSG4DsWqO7vG1 +XCTY2rmDrQMe3Dv/uTFCgB/DmTiR7z45L8dy8dFk9dgwQzWxpmsK55L8uAzpBEQ+v18 OAkiHRftiNsSX7f4eMl5OZwMy3QZEnLyGEdRviX8we0WrDBRObEB2q3ZZtsyieR5+3E4 KeTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=CwB7juSD4sAH6/M5fdRn11uzqtjIktZXjljHzKOeX+c=; b=NTRiPX68btYkBKUwFgf4g8VqPomkw4vKSgBiitiJ99WEeDPZaB439gsFTKxEsWGzyr Dpu84T/3uz6/3EYT5rFzgyJcwy4rsEvr9p/mwulCx6NQ24FPLquXEGXmOirsnpsAOU3Y NQoj/aTypIrQThvH2RST5sS3LR4f00NdaPV7mqvfaiS6b1Y0+7f7O+2Cp0FwXp+3POTC 9YexNpLoi/rNdws+wm4kTAwF3SFj7kRRZokVSZ/DfZqfVeCCTDxCYHsX3i7ILjM5/XKT BKJQkTWdPEtXQiF4bfVTtvMrURoLDQb128FefU7xlT8Unt0Lk1/bVqwC8pyeDCPY6qT6 xKcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si1977805ejd.256.2021.03.18.10.06.48; Thu, 18 Mar 2021 10:07:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbhCRRGO (ORCPT + 99 others); Thu, 18 Mar 2021 13:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232075AbhCRRGG (ORCPT ); Thu, 18 Mar 2021 13:06:06 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32CC7C06174A for ; Thu, 18 Mar 2021 10:06:06 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lMw60-000EWb-FW; Thu, 18 Mar 2021 18:06:04 +0100 Message-ID: Subject: Re: WMM doesn't work for VLAN frame From: Johannes Berg To: Cedric VONCKEN , "linux-wireless@vger.kernel.org" Date: Thu, 18 Mar 2021 18:06:03 +0100 In-Reply-To: (sfid-20210316_161819_662475_641D2A95) References: (sfid-20210316_161819_662475_641D2A95) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2021-03-16 at 15:15 +0000, Cedric VONCKEN wrote: > > Explantation of the issue > 1. The validate_xmit_vlan function add the the vlan tag in the skb frame, set skb->protocol to VLAN protocol (0x8100) and set skb->vlan_tci to 0. > 2. The cfg80211_classify8021d use these fields to determine the frame priority, but the skb->protocol value (0x8100) is not handled byt this function and this function return a default value 0. (some line breaks would've been nice) Well, since your own commit (!) c6ca5e28bc005 the VLAN TCI is used. If the VLAN TCI is 0, then you don't get anything else? Not sure what you were expecting different now? Oh. You're saying that somehow the order of functions changed? But validate_xmit_vlan() only pushes a hw offload vlan tag into the frame (wifi devices aren't offload capable)? johannes