From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f182.google.com (mail-io0-f182.google.com [209.85.223.182]) by dpdk.org (Postfix) with ESMTP id A7E69374D for ; Sun, 21 Aug 2016 23:27:06 +0200 (CEST) Received: by mail-io0-f182.google.com with SMTP id b62so93521156iod.3 for ; Sun, 21 Aug 2016 14:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ZhwAd1fN3l/Ex3f75lTQPQ2NgyGUETqR7lqNpFdLLAo=; b=J5+lG7MGh3JVFLyUZFyYu66iioQ3NMMbv8Id8fKhfBvOEA2l54no1bFYuwJid95+iF 9mJJJ6YlXjFkYYeTIvSWtjsqGgxYRK8eyTTQRjYdGbPanSeTd38TozszI1H+CvsvV9bx tqQPQP/A4L8Ib8Fj9MopjhyY4q2ysTkQy0XfD0Eb6+BUoCg9KBl76u2RvyzzAOm9Dbn+ 3XlWOk/+85Dl331UBI1BJ4TZKM4eCpPBmBi5Pi3YDlBlmLh+nXnn7h3H49YZkeM0C8XQ T56aFGNnoD24F+mwvpXaZyU4cnpXi/LUg4Tt5SD422K0Rdu3LFkPZYKuzclb871HPyyt 49jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZhwAd1fN3l/Ex3f75lTQPQ2NgyGUETqR7lqNpFdLLAo=; b=CT1tx/GkSXI1fImr9qIeMp/pQEFqqIL0+8aMw9iaFSBgwABqyP5ulRZcM5+dY3D+Ir rLbj5heu4RSA2+LsccOsmRUUYaeYuwx8cOKCwn1svW7T6Qdzz/y5HsgYminOGkaj3yzv a2iPHllzSSzoVp09dDYvzOpELUJcBrshAoPSEojp9kDU6BgToSgmr7D40SYsQXfRwQSG y62rIA0Qy819AdFUnq+jVmRfQKwzC2PEeo81F0S8ETi91p4Ti7ZhugV3iCo/5mr2G83U Bn+DrSUkkubRDqMmkkP6f5NZD3QRlSV9zqvEpZrIaJD03ob3f5GMLRuzkwUkNIqgcy0z EeNA== X-Gm-Message-State: AEkoousLK9mkFbvvfhK2Dd+lEd6SoBGjXn8zuruhV9AdTM7cE4p4YuQ0rxxnvzN86QQj5H4vsPJufwcyZs51WA== X-Received: by 10.107.14.74 with SMTP id 71mr20041875ioo.93.1471814826067; Sun, 21 Aug 2016 14:27:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.239.197 with HTTP; Sun, 21 Aug 2016 14:27:05 -0700 (PDT) From: Victor Detoni Date: Sun, 21 Aug 2016 18:27:05 -0300 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Set mtu value X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2016 21:27:06 -0000 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);