From: Victor Detoni <victordetoni@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Set mtu value
Date: Sun, 21 Aug 2016 18:27:05 -0300 [thread overview]
Message-ID: <CANpwN=sXS201s2WrDLRQAz2-NuRbHctdOjJ6O+2p=3HOLeVR1A@mail.gmail.com> (raw)
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);
next reply other threads:[~2016-08-21 21:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-21 21:27 Victor Detoni [this message]
2016-08-22 5:27 ` Stephen Hemminger
2016-08-22 13:12 ` Victor Detoni
2016-08-30 1:55 ` Victor Detoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANpwN=sXS201s2WrDLRQAz2-NuRbHctdOjJ6O+2p=3HOLeVR1A@mail.gmail.com' \
--to=victordetoni@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).