diff options
author | Damjan Marion <damarion@cisco.com> | 2017-11-27 19:55:14 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-11-27 22:30:46 +0000 |
commit | b3eeb6a5dd17627f56f5a9f299950c96f952e7a1 (patch) | |
tree | d2c0720ebaadec1a35d1b0f929a2744426b4870b /src/plugins/dpdk/device/common.c | |
parent | 50e8bdb4e6f792b85a93da4292d285ecdb2914e6 (diff) |
dpdk: fix issue when tx offload stops working after MTU change
Change-Id: I3713b4c460a3cd414b560e16aac054aee2e1181b
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/common.c')
-rw-r--r-- | src/plugins/dpdk/device/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/common.c b/src/plugins/dpdk/device/common.c index d488d69e553..e8f33cf22e0 100644 --- a/src/plugins/dpdk/device/common.c +++ b/src/plugins/dpdk/device/common.c @@ -41,6 +41,7 @@ dpdk_device_setup (dpdk_device_t * xd) dpdk_main_t *dm = &dpdk_main; vnet_main_t *vnm = vnet_get_main (); vnet_sw_interface_t *sw = vnet_get_sw_interface (vnm, xd->vlib_sw_if_index); + vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, xd->hw_if_index); int rv; int j; @@ -108,6 +109,8 @@ dpdk_device_setup (dpdk_device_t * xd) if (vec_len (xd->errors)) goto error; + rte_eth_dev_set_mtu (xd->device_index, hi->max_packet_bytes); + if (xd->flags & DPDK_DEVICE_FLAG_ADMIN_UP) dpdk_device_start (xd); |