]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5_core: Use port number in the query port mtu helpers
authorMajd Dibbiny <majd@mellanox.com>
Thu, 4 Jun 2015 16:30:43 +0000 (19:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 23:41:01 +0000 (16:41 -0700)
commitb56bf7768f49374d369da54d9442c1747c35b6bf
tree677d7691c175a8fe684c30e3392b8d0513a8f062
parent6ab720cf75d0018a67a7938e432a085748883438
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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/driver.h