From patchwork Tue Nov 20 12:20:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 10690337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2342A13BB for ; Tue, 20 Nov 2018 12:20:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15C952A5A1 for ; Tue, 20 Nov 2018 12:20:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 098E62A5AC; Tue, 20 Nov 2018 12:20:44 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 8E5982A5A1 for ; Tue, 20 Nov 2018 12:20:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728782AbeKTWtb (ORCPT ); Tue, 20 Nov 2018 17:49:31 -0500 Received: from rere.qmqm.pl ([91.227.64.183]:31886 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729521AbeKTWt0 (ORCPT ); Tue, 20 Nov 2018 17:49:26 -0500 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 42zlBQ3KFyzdt; Tue, 20 Nov 2018 13:19:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1542716366; bh=Oo8d6E0e1cnfv8jWdqyzj7VpdpVuu4lVgZB9S1jqWk4=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=ecMNQntN/LLZfGNZ4c4MiLiwYIRG7K63WVdoz1lEGpUidpfT5kPCF+WjK44M7tleX 0yECuTsaZISklKIPuNmT44bcSHONI0C+4910NNwqz9io+2sFm4o7Tya2Fep5UBXWaI 6cA0PUAQBFF7+QANVHSwaM3ZgkrCh/ZRkAxDBE3/+xBiOrlMFOlMohPPt72KAkGtLF ozV8buRTxQcpwIfFxqHT1cECpl1W7LJn72ElD3vXcPJoTPNhU+ndpTB/pAPHq6KK3b 4XnqWAIehVMI0bXVv6CSaGAIDqxwbrzHwwsopo58VT8S+dxlidfp8pdl2Z3/up+O86 a71uJqhjetI9w== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.2 at mail Date: Tue, 20 Nov 2018 13:20:33 +0100 Message-Id: In-Reply-To: References: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH net-next 4/4] mlx5: use skb_vlan_tag_get_prio() MIME-Version: 1.0 To: netdev@vger.kernel.org Cc: Saeed Mahameed , Leon Romanovsky , linux-rdma@vger.kernel.org, Ajit Khaparde , devel@linuxdriverproject.org, Haiyang Zhang , "K. Y. Srinivasan" , Sathya Perla , Somnath Kotur , Sriharsha Basavapatna , Stephen Hemminger Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Michał Mirosław --- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c index 6dacaeba2fbf..9afdf955f2bc 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c @@ -127,7 +127,7 @@ u16 mlx5e_select_queue(struct net_device *dev, struct sk_buff *skb, else #endif if (skb_vlan_tag_present(skb)) - up = skb->vlan_tci >> VLAN_PRIO_SHIFT; + up = skb_vlan_tag_get_prio(skb); /* channel_ix can be larger than num_channels since * dev->num_real_tx_queues = num_channels * num_tc