[ofa-general] bug in ibv_rc_pingpong.c and ibv_uc_pingpong.c in ofed_1_4/libibverbs.git

Robert Pearson rpearson at systemfabricworks.com
Mon Sep 14 09:49:15 PDT 2009


The following fragment occurs in both programs:

551                 case 's':
552                         size = strtol(optarg, NULL, 0);
553                         break;
554 
555                 case 'm':
556                         mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0));
557                         if (mtu < 0) {
558                                 usage(argv[0]);
559                                 return 1;
560                         }
561 
562                 case 'r':
563                         rx_depth = strtol(optarg, NULL, 0);
564                         break;
565 

Case m is missing a handy break statement. Setting mtu also sets rx_depth.
Can workaround by following -m by -r which resets rx_depth.


More information about the general mailing list