]> 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)
commitfc518c1aeefffc4e505f0bbe973c5f0b26869893
tree677d7691c175a8fe684c30e3392b8d0513a8f062
parent8b86dba3cdd0267423f6d4261d17c25ad74d75af
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