From patchwork Sat Dec 9 17:37:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 10103759 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D507060325 for ; Sat, 9 Dec 2017 17:37:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C05B029117 for ; Sat, 9 Dec 2017 17:37:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B37A429164; Sat, 9 Dec 2017 17:37:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62D2829117 for ; Sat, 9 Dec 2017 17:37:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243AbdLIRhU (ORCPT ); Sat, 9 Dec 2017 12:37:20 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:34951 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbdLIRhR (ORCPT ); Sat, 9 Dec 2017 12:37:17 -0500 Received: by mail-ot0-f194.google.com with SMTP id q3so11620007oth.2 for ; Sat, 09 Dec 2017 09:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eG/GNz+9vmnsgcKU/zOdDREjUsme22s+/3eUscVQrH4=; b=m150LSa5taJER1w4qmm7UPoK4QxxnVZmBwdwETLct4dVuI6HV/kK0nctAi75n3kzdp W6N8mo4arh7PtYkvLiu3Eo+Nn1P6/jxmcagpBfpj8Nq9BW38kOZAy/7RzJW+0IWNZZaS 9T9BW5VEYKdnU2wARcN8HGPU++ehrIB6t7mGKtTMCnSjb93Ne7cx515kAhm07TdJU6gT Q4kDppJVArFAjkbAUbX1rrwJNfbGJdG4J7QuoeWdRZPUr80jYYVL4omJDeM1DFcijjWk 5nqSMmcw0gHOPH6udW5PP+OaSPH/7rVLE8kXmk/ybAqyRCQaoh11cS5rZJ32eH22gfvY iV+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=eG/GNz+9vmnsgcKU/zOdDREjUsme22s+/3eUscVQrH4=; b=dU3c0ecza3Jb1jNVa7Saqh93YSZLyIX/k/pI8MKGV80QalXwZ6SEFIosaG4KzQ4okF eCR4b4B/CfytpHiddFYeh3lDWU5k689uSDJEem/y0GjbyiK21GCkIgRbVDlGpQare7dq lftzuJ/vwcXMQtqlE8/FMxlJGIpaSpXx/r33vqXwKpJEPaPgFKBXwDDkpFhp6F5N55on IAJmN/MGzUk4ei32tMUSszu32op6uTx/0Cbq2079hZZeAv+i0eNamSVfwpgtOpoXztjW yVb6RwHQ+ix60y09ckKw1wavILK+8+t0gwT01bcBqcR6aMj4/pa9Aga+IATXX/bHWNqC JYiw== X-Gm-Message-State: AJaThX6avzp/W4kBuUEURLgzoAWPGvSy2Kr1vIAW9sUc3pRczEO4vNI9 0JaprkkFrK/nEKcAomAwi4JnYA== X-Google-Smtp-Source: AGs4zMYN61phPwbRz1mJ4JUuj0+XSeNedGYQmXMjdVHmona6j9lIWJHoEKyO+xwC251KQzs8fZEi2g== X-Received: by 10.157.8.2 with SMTP id 2mr32236829oty.250.1512841036662; Sat, 09 Dec 2017 09:37:16 -0800 (PST) Received: from Larrylap.localdomain (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id l3sm4511610oif.49.2017.12.09.09.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Dec 2017 09:37:16 -0800 (PST) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , Larry Finger , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 1/3] rtlwifi: rtl_pci: 8822BE puts broadcast and multicast packet to HIQ Date: Sat, 9 Dec 2017 11:37:08 -0600 Message-Id: <20171209173710.9879-2-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171209173710.9879-1-Larry.Finger@lwfinger.net> References: <20171209173710.9879-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ping-Ke Shih Making this change to HIQ, which has high priority, improves the response time for transmission after TBTT or beacon. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/pci.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c index 3e9eb11a38f9..8ae36a263426 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.c +++ b/drivers/net/wireless/realtek/rtlwifi/pci.c @@ -59,6 +59,7 @@ static u8 _rtl_mac_to_hwqueue(struct ieee80211_hw *hw, struct sk_buff *skb) struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); __le16 fc = rtl_get_fc(skb); u8 queue_index = skb_get_queue_mapping(skb); + struct ieee80211_hdr *hdr; if (unlikely(ieee80211_is_beacon(fc))) return BEACON_QUEUE; @@ -67,6 +68,13 @@ static u8 _rtl_mac_to_hwqueue(struct ieee80211_hw *hw, struct sk_buff *skb) if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192SE) if (ieee80211_is_nullfunc(fc)) return HIGH_QUEUE; + if (rtlhal->hw_type == HARDWARE_TYPE_RTL8822BE) { + hdr = rtl_get_hdr(skb); + + if (is_multicast_ether_addr(hdr->addr1) || + is_broadcast_ether_addr(hdr->addr1)) + return HIGH_QUEUE; + } return ac_to_hwq[queue_index]; }