[Users] ibdump and mtu size

Amir Shehata amir.shehata.whamcloud at gmail.com
Fri Apr 10 10:26:21 PDT 2015


Hi Rupert,

that worked.  Thanks

so just in case someone out there is running into the same issue and wants
to change mtu... here is the command
ibportstate -vvv -C mlx4_0 2 1 mtu 4

ib_verbs.h:     IB_MTU_256  = 1,
ib_verbs.h:     IB_MTU_512  = 2,
ib_verbs.h:     IB_MTU_1024 = 3,
ib_verbs.h:     IB_MTU_2048 = 4,
ib_verbs.h:     IB_MTU_4096 = 5
ib_verbs.h:     case IB_MTU_256:  return  256;
ib_verbs.h:     case IB_MTU_512:  return  512;
ib_verbs.h:     case IB_MTU_1024: return 1024;
ib_verbs.h:     case IB_MTU_2048: return 2048;
ib_verbs.h:     case IB_MTU_4096: return 4096;

http://www.mellanox.com/related-docs/prod_software/Mellanox_OFED_Linux_user_manual_1_5_1.pdf
this has a good description of the tool (better than the man page).

ibportstate tool wasn't readily available on my system so I had to grab it
from here:
http://rpmfind.net/linux/rpm2html/search.php?query=infiniband-diags

thanks
amir

On 9 April 2015 at 18:17, Rupert Dance <rsdance at soft-forge.com> wrote:

> Hello Amir,
>
>
>
> Why don’t you try the command ibportstate:
>
>
>
> Usage
>
> ibportstate                   [options] <dest dr_path|lid|guid> <portnum>
> [<op>]
>
>
>
> Supported Operations
>
> enable, disable, reset, speed, width, query, down, arm, active, vls, *mtu*,
> lid, smlid, lmc
>
>
>
> Thanks
>
>
>
> Rupert
>
>
>
> *From:* users-bounces at lists.openfabrics.org [mailto:
> users-bounces at lists.openfabrics.org] *On Behalf Of *Amir Shehata
> *Sent:* Thursday, April 09, 2015 9:01 PM
> *To:* users at lists.openfabrics.org
> *Subject:* [Users] ibdump and mtu size
>
>
>
> Hello,
>
>
>
> I'm trying to use ibdump to capture ib traffic.  However it complains that
> it needs MTU size set to 2K.
>
>
>
> using ibv_devinfo I get
>
> [root at eagle-41 ~]# ibv_devinfo
>
> hca_id: mlx4_0
>
>         transport:                      InfiniBand (0)
>
>         fw_ver:                         2.7.000
>
>         node_guid:                      0025:90ff:ff1b:9e9c
>
>         sys_image_guid:                 0025:90ff:ff1b:9e9f
>
>         vendor_id:                      0x02c9
>
>         vendor_part_id:                 26428
>
>         hw_ver:                         0xB0
>
>         board_id:                       SM_2122000001000
>
>         phys_port_cnt:                  1
>
>                 port:   1
>
>                         state:                  PORT_ACTIVE (4)
>
>                         max_mtu:                4096 (5)
>
>                         active_mtu:             4096 (5)
>
>                         sm_lid:                 35
>
>                         port_lid:               22
>
>                         port_lmc:               0x00
>
>                         link_layer:             InfiniBand
>
>
>
> max and active mtu is 4096.
>
>
>
> The ifconfig shows mtu to be 2044.  However, I believe the ibdump is
> looking at the port mtu.
>
>
>
> How can I change the port mtu to 2044 so I can get ibdump to work?
>
>
>
> Is there a way to get ibdump to accept more than 2044 (IE 4096)?  I
> couldn't find a way to do it.
>
>
>
> any ideas would be much appreciated.
>
>
>
> thanks
>
> amir
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/users/attachments/20150410/493276a3/attachment.html>


More information about the Users mailing list