git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus/pci: use SPDX tags in 6WIND copyrighted files
[dpdk.git]
/
examples
/
kni
/
main.c
diff --git
a/examples/kni/main.c
b/examples/kni/main.c
index
bd3b329
..
0d9980e
100644
(file)
--- a/
examples/kni/main.c
+++ b/
examples/kni/main.c
@@
-846,6
+846,8
@@
kni_alloc(uint16_t port_id)
rte_eth_macaddr_get(port_id,
(struct ether_addr *)&conf.mac_addr);
+ rte_eth_dev_get_mtu(port_id, &conf.mtu);
+
memset(&ops, 0, sizeof(ops));
ops.port_id = port_id;
ops.change_mtu = kni_change_mtu;