From: Vu Pham Subject: [PATCH 07/10] query the steer capabilities of mlx4 device Date: Fri, 06 Aug 2010 15:51:10 -0700 Message-ID: <4C5C91DE.1080301@mellanox.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090600070403010007050307" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ewg-bounces-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org Errors-To: ewg-bounces-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org To: Roland Dreier Cc: Linux RDMA , OpenFabrics EWG , Oren Duer List-Id: linux-rdma@vger.kernel.org This is a multi-part message in MIME format. --------------090600070403010007050307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Add API to query the steer capabilities of mlx4 device Signed-off-by: Oren Duer Signed-off-by: Vu Pham --------------090600070403010007050307 Content-Type: text/x-patch; name="mlx4_fc_0007_add_query_steer_cap.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mlx4_fc_0007_add_query_steer_cap.patch" Add API to query the steer capabilities of mlx4 device Signed-off-by: Oren Duer Signed-off-by: Vu Pham diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 4408b96..1777965 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -396,6 +394,14 @@ struct mlx4_init_port_param { u64 si_guid; }; +static inline void mlx4_query_steer_cap(struct mlx4_dev *dev, int *log_mac, + int *log_vlan, int *log_prio) +{ + *log_mac = dev->caps.log_num_macs; + *log_vlan = dev->caps.log_num_vlans; + *log_prio = dev->caps.log_num_prios; +} + #define mlx4_foreach_port(port, dev, type) \ for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ if (((type) == MLX4_PORT_TYPE_IB ? (dev)->caps.port_mask : \ --------------090600070403010007050307 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ewg mailing list ewg-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg --------------090600070403010007050307--