Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mark Zhang and committed by
Jakub Kicinski
e0e3265a a9874d96

+3 -9
+3 -9
drivers/net/ethernet/mellanox/mlx4/main.c
··· 49 49 #include <linux/mlx4/device.h> 50 50 #include <linux/mlx4/doorbell.h> 51 51 52 + #include <rdma/ib_verbs.h> 53 + 52 54 #include "mlx4.h" 53 55 #include "fw.h" 54 56 #include "icm.h" ··· 1248 1246 return err ? err : count; 1249 1247 } 1250 1248 1251 - enum ibta_mtu { 1252 - IB_MTU_256 = 1, 1253 - IB_MTU_512 = 2, 1254 - IB_MTU_1024 = 3, 1255 - IB_MTU_2048 = 4, 1256 - IB_MTU_4096 = 5 1257 - }; 1258 - 1259 1249 static inline int int_to_ibta_mtu(int mtu) 1260 1250 { 1261 1251 switch (mtu) { ··· 1260 1266 } 1261 1267 } 1262 1268 1263 - static inline int ibta_mtu_to_int(enum ibta_mtu mtu) 1269 + static inline int ibta_mtu_to_int(enum ib_mtu mtu) 1264 1270 { 1265 1271 switch (mtu) { 1266 1272 case IB_MTU_256: return 256;