DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Set mtu value
@ 2016-08-21 21:27 Victor Detoni
  2016-08-22  5:27 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Victor Detoni @ 2016-08-21 21:27 UTC (permalink / raw)
  To: users

Hello,

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);
else
  printf("Port %d: Error setting MTU\n",portid);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-30  1:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-21 21:27 [dpdk-users] Set mtu value Victor Detoni
2016-08-22  5:27 ` Stephen Hemminger
2016-08-22 13:12   ` Victor Detoni
2016-08-30  1:55     ` Victor Detoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).