From patchwork Fri Aug 6 22:51:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vu Pham X-Patchwork-Id: 118084 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o76MtctR027523 for ; Fri, 6 Aug 2010 22:55:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965138Ab0HFWzt (ORCPT ); Fri, 6 Aug 2010 18:55:49 -0400 Received: from p02c11o145.mxlogic.net ([208.65.144.78]:52722 "EHLO p02c11o145.mxlogic.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964904Ab0HFWzs (ORCPT ); Fri, 6 Aug 2010 18:55:48 -0400 Received: from unknown [63.251.237.3] (EHLO p02c11o145.mxlogic.net) by p02c11o145.mxlogic.net(mxl_mta-6.7.0-0) with ESMTP id 4f29c5c4.652e4940.28294.00-568.71327.p02c11o145.mxlogic.net (envelope-from ); Fri, 06 Aug 2010 16:55:48 -0600 (MDT) X-MXL-Hash: 4c5c92f430c6dd3b-c745406ea19c399dc7e784a5590fbf09cebfe139 Received: from unknown [63.251.237.3] (EHLO mtiexch01.mti.com) by p02c11o145.mxlogic.net(mxl_mta-6.7.0-0) with ESMTP id 9e19c5c4.0.27925.00-399.70307.p02c11o145.mxlogic.net (envelope-from ); Fri, 06 Aug 2010 16:51:23 -0600 (MDT) X-MXL-Hash: 4c5c91eb5e8179f8-50ba7e040bc31c0c78f78077a0863e8d668c0447 Received: from vu-lt.mti.mtl.com ([10.2.1.17]) by mtiexch01.mti.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Aug 2010 15:55:37 -0700 Message-ID: <4C5C91E9.10002@mellanox.com> Date: Fri, 06 Aug 2010 15:51:21 -0700 From: Vu Pham User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 To: Roland Dreier CC: Linux RDMA , Oren Duer , OpenFabrics EWG Subject: [PATCH 08/10] enable vlan support in mlx4 qp path X-OriginalArrivalTime: 06 Aug 2010 22:55:37.0515 (UTC) FILETIME=[7C430FB0:01CB35BA] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010073001)] X-MAIL-FROM: X-SOURCE-IP: [63.251.237.3] X-AnalysisOut: [v=1.0 c=1 a=g5JJpC9It5sA:10 a=VphdPIyG4kEA:10 a=xupnbh4h0Y] X-AnalysisOut: [LOHZnncC45HQ==:17 a=CbDCq_QkAAAA:8 a=Idn4c8pMyNET34BYvhEA:] X-AnalysisOut: [9 a=T4Exp0gxElotdMPTRzADXLSmyeEA:4 a=wPNLvfGTeEIA:10 a=E3y] X-AnalysisOut: [z0KKPV6YA:10 a=WLHtB3IboGixsr9PfygA:9 a=y8BcTOHJPQQRCjWy_2] X-AnalysisOut: [Zy_sQW2X4A:4] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 06 Aug 2010 22:55:50 +0000 (UTC) Enable vlan support in qp path, allow traffic to be encapsulated in tagged vlan frames. Signed-off-by: Vu Pham diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 7abe643..1e53d45 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -109,7 +109,7 @@ struct mlx4_qp_path { __be32 tclass_flowlabel; u8 rgid[16]; u8 sched_queue; - u8 snooper_flags; + u8 vlan_index; u8 reserved3[2]; u8 counter_index; u8 reserved4[7];