Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2346611imm; Mon, 28 May 2018 06:28:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr5lz3nse/YGDebqCdMys5klWnL9eT1u0oFsNvr4iVURvs97hZVDcf0+oy95QxQJoK/A8b+ X-Received: by 2002:a63:6096:: with SMTP id u144-v6mr10611276pgb.433.1527514116648; Mon, 28 May 2018 06:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527514116; cv=none; d=google.com; s=arc-20160816; b=ozbBb9CESJ9A3a8n9gxasV+sv5N1vRzSxVbzBOduiYy0KFV7gfMfJa+pX/OAxpzLZf IXnb0b3sd7rJPKE/PAOww0VYgcMseaUr4XiHZuW1B2BxWUU5HCIXCqjzYn6SHl/3GkZS 0WW8Ywz9wnTyk/RL7skkSSn4KclbWVbgsqdfwIEgO56803Soj+vhU8nnhqgz7wIJuZK4 5kw0GiuAduYbJUQloIZlkFlI1w36fRVfNWsmgwJHVBV6mwvNHsMyoi5J9BYydeDUy7Zl NPrXF1Wnj1aMtz04IJVD2PFCcuQX3PHQdU22oTMosdvifnB439Pl8Eh1VCTsn8yh964D cTYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=CD48d4bWIZEp9ZI196OcXPJch8EcZaAbIY7/h/OjHfA=; b=0ZAKYnBXf4laPuXsphZlA1tdH+eP90D3m8rslWSmlroFlWDA3neeKEnE1ekbcBMhbf UynahCN/fzVnl1lrujPcE94Aksn+lcc+1NvGUm4FGGOLhZAl62OBucJeBLFcUbbUsxTr VRU1aLqa9/STokWDB1MVfgabHAdeRvvjLl0d5MqXqqyYOZRKZB/9k1v/Fbd1BfC6vPwJ o3I+4bO3aFbyNDx5lRNHiC7Cmd4M5Xi1cRx4aRKEMPbcKWWAXR4QaQO0Im+BP88kPIfM ntXP0vmsqVVVW+moDg64YUayGaKULliz7MhxEUxzQ9OcgMUBBrGNMHYzvmMYf/ijaMt3 2oqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IqrrigMA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21-v6si31595166pls.398.2018.05.28.06.28.21; Mon, 28 May 2018 06:28:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IqrrigMA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163257AbeE1Krd (ORCPT + 99 others); Mon, 28 May 2018 06:47:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:37524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163243AbeE1KrZ (ORCPT ); Mon, 28 May 2018 06:47:25 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2A0920660; Mon, 28 May 2018 10:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504445; bh=6BZ3caphxznFj2VgXFa8KSLegmmPj16HighVOihcVMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IqrrigMAMo3R13mtuDZvjExLuor4uRXN3FMFQBD0+NqPuU+/SSCEU2wCN1vqktKso g9GXB1hdSAqu7rjQ/Us0p8UTTaGsgjFZhyTVDg1Wav6ueVDmXJgVBTno0LU8rK7d7E fZjsCKv285qnc0wo0gdYzWDD6AZKzmKpWzLIyJI4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Or Gerlitz , Mark Bloch , Saeed Mahameed , Sasha Levin Subject: [PATCH 4.14 108/496] net/mlx5e: Return error if prio is specified when offloading eswitch vlan push Date: Mon, 28 May 2018 11:58:13 +0200 Message-Id: <20180528100324.459968455@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Or Gerlitz [ Upstream commit 001a2fc0c8cc29241305e44ffbce52d1daf8782b ] This isn't supported when we emulate eswitch vlan push action which is the current state of things. Fixes: 8b32580df1cb ('net/mlx5e: Add TC vlan action for SRIOV offloads') Signed-off-by: Or Gerlitz Reviewed-by: Mark Bloch Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -2018,7 +2018,8 @@ static int parse_tc_fdb_actions(struct m if (tcf_vlan_action(a) == TCA_VLAN_ACT_POP) { attr->action |= MLX5_FLOW_CONTEXT_ACTION_VLAN_POP; } else if (tcf_vlan_action(a) == TCA_VLAN_ACT_PUSH) { - if (tcf_vlan_push_proto(a) != htons(ETH_P_8021Q)) + if (tcf_vlan_push_proto(a) != htons(ETH_P_8021Q) || + tcf_vlan_push_prio(a)) return -EOPNOTSUPP; attr->action |= MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH;