Under IBoE, the 3 MSBits of the TOS map to the SL, hence letting
the user to specify them in hex makes the interface friendlier.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
break;
case 't':
set_tos = 1;
- tos = (uint8_t) atoi(optarg);
+ tos = (uint8_t) strtoul(optarg, NULL, 0);
break;
case 'p':
port = atoi(optarg);
break;
case 't':
set_tos = 1;
- tos = (uint8_t) atoi(optarg);
+ tos = (uint8_t) strtoul(optarg, NULL, 0);
break;
case 'p':
port_space = strtol(optarg, NULL, 0);