[dpdk-users] Set mtu value

Victor Detoni victordetoni at gmail.com
Sun Aug 21 23:27:05 CEST 2016


I'm trying to use rte_eth_dev_set_mtu function to change mtu value. When I
use the code below the function returns -ENOTSUP. Someone knows what's
happening? I can change mtu value with "ifconfig".

uint16_t mtu;
ret = rte_eth_dev_set_mtu(ported,mtu);

if (ret == 0)
  printf("Port %d: MTU set to %d\n",portid, ,mtu);
else if (ret == -ENOTSUP)
  printf("Port %d: Operation not supported\n",portid);
  printf("Port %d: Error setting MTU\n",portid);

More information about the users mailing list