aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMajd Dibbiny <majd@mellanox.com>2015-06-04 12:30:43 -0400
committerDavid S. Miller <davem@davemloft.net>2015-06-04 19:41:01 -0400
commite760152d08da78aa160e68ac90bf8f3f10aff462 (patch)
tree677d7691c175a8fe684c30e3392b8d0513a8f062 /include/linux
parent211e6c80e5a68ef39a81484583e8efbf9774627d (diff)
net/mlx5_core: Use port number in the query port mtu helpers
Extend the function prototypes for max and operational mtu to take the local port number. In the Ethernet driver is this hard coded to one, since ConnectX4 Ethernet devices are always function-per-port. The IB driver also serves older devices (ConnectIB) which isn't such, and hence the part can vary. Signed-off-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index b90fb9336d21..cd09784b6999 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -751,8 +751,10 @@ int mlx5_set_port_status(struct mlx5_core_dev *dev,
751int mlx5_query_port_status(struct mlx5_core_dev *dev, u8 *status); 751int mlx5_query_port_status(struct mlx5_core_dev *dev, u8 *status);
752 752
753int mlx5_set_port_mtu(struct mlx5_core_dev *dev, int mtu); 753int mlx5_set_port_mtu(struct mlx5_core_dev *dev, int mtu);
754int mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, int *max_mtu); 754int mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, int *max_mtu,
755int mlx5_query_port_oper_mtu(struct mlx5_core_dev *dev, int *oper_mtu); 755 u8 local_port);
756int mlx5_query_port_oper_mtu(struct mlx5_core_dev *dev, int *oper_mtu,
757 u8 local_port);
756 758
757int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq); 759int mlx5_debug_eq_add(struct mlx5_core_dev *dev, struct mlx5_eq *eq);
758void mlx5_debug_eq_remove(struct mlx5_core_dev *dev, struct mlx5_eq *eq); 760void mlx5_debug_eq_remove(struct mlx5_core_dev *dev, struct mlx5_eq *eq);