summaryrefslogtreecommitdiff
path: root/lib/librte_kni/rte_kni.c
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2018-01-18 11:43:00 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-02-01 01:03:26 +0100
commitabdf63d11b0917bde76fa5a73c16363bc497085b (patch)
treed477364196d7494265cc7919bf9e06e3b67a595d /lib/librte_kni/rte_kni.c
parent528057df4c4fb5b5b45bd8060267cb4105eda212 (diff)
downloaddpdk-abdf63d11b0917bde76fa5a73c16363bc497085b.zip
dpdk-abdf63d11b0917bde76fa5a73c16363bc497085b.tar.gz
dpdk-abdf63d11b0917bde76fa5a73c16363bc497085b.tar.xz
kni: set initial value for MTU
Configure initial application provided mtu on the KNI interface. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'lib/librte_kni/rte_kni.c')
-rw-r--r--lib/librte_kni/rte_kni.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c
index c089a49..2867411 100644
--- a/lib/librte_kni/rte_kni.c
+++ b/lib/librte_kni/rte_kni.c
@@ -340,6 +340,7 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,
dev_info.force_bind = conf->force_bind;
dev_info.group_id = conf->group_id;
dev_info.mbuf_size = conf->mbuf_size;
+ dev_info.mtu = conf->mtu;
memcpy(dev_info.mac_addr, conf->mac_addr, ETHER_ADDR_LEN);