mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
net/mlx4e: Don't redefine IB_MTU_XXX enum
Rely on existing IB_MTU_XXX definitions which exist in ib_verbs.h. Reviewed-by: Patrisious Haddad <phaddad@nvidia.com> Signed-off-by: Mark Zhang <markzhang@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/382c91ee506e7f1f3c1801957df6b28963484b7d.1750147222.git.leon@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a9874d961e
commit
e0e3265acf
|
|
@ -49,6 +49,8 @@
|
|||
#include <linux/mlx4/device.h>
|
||||
#include <linux/mlx4/doorbell.h>
|
||||
|
||||
#include <rdma/ib_verbs.h>
|
||||
|
||||
#include "mlx4.h"
|
||||
#include "fw.h"
|
||||
#include "icm.h"
|
||||
|
|
@ -1246,14 +1248,6 @@ static ssize_t set_port_type(struct device *dev,
|
|||
return err ? err : count;
|
||||
}
|
||||
|
||||
enum ibta_mtu {
|
||||
IB_MTU_256 = 1,
|
||||
IB_MTU_512 = 2,
|
||||
IB_MTU_1024 = 3,
|
||||
IB_MTU_2048 = 4,
|
||||
IB_MTU_4096 = 5
|
||||
};
|
||||
|
||||
static inline int int_to_ibta_mtu(int mtu)
|
||||
{
|
||||
switch (mtu) {
|
||||
|
|
@ -1266,7 +1260,7 @@ static inline int int_to_ibta_mtu(int mtu)
|
|||
}
|
||||
}
|
||||
|
||||
static inline int ibta_mtu_to_int(enum ibta_mtu mtu)
|
||||
static inline int ibta_mtu_to_int(enum ib_mtu mtu)
|
||||
{
|
||||
switch (mtu) {
|
||||
case IB_MTU_256: return 256;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user