]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/mlx4/device.h
net/mlx4_core: Add sink counter
[mirror_ubuntu-artful-kernel.git] / include / linux / mlx4 / device.h
index ad31e476873f8b8f9a5a8fd0f04fb70075a4df7c..312c50420dde08de308bfed6e666fe15f5c54dfd 100644 (file)
@@ -957,6 +957,7 @@ struct mlx4_mad_ifc {
                        ((dev)->caps.flags & MLX4_DEV_CAP_FLAG_IBOE))
 
 #define MLX4_INVALID_SLAVE_ID  0xFF
+#define MLX4_SINK_COUNTER_INDEX(dev)   (dev->caps.max_counters - 1)
 
 void handle_port_mgmt_change_event(struct work_struct *work);