diff options
author | jiangxiaoming <jiangxiaoming@outlook.com> | 2020-08-28 09:28:09 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-09-01 12:01:56 +0000 |
commit | 1d104c5ecdce37301fdfea0e62a533a2e5342ee0 (patch) | |
tree | f4ea4f9ae517f042de54127816cd635240711a77 /src/plugins/dpdk | |
parent | faec38f3e1574fb22b1ccd6d475e2ec9b10b2e01 (diff) |
dpdk: fix mac address length was wrong
Type: fix
Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I87c6f423ea8fdd9fb764693055eb1509f994d6f1
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r-- | src/plugins/dpdk/device/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index eb2dbbcf5df..09a1c2f2fdf 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -81,7 +81,7 @@ dpdk_set_mac_address (vnet_hw_interface_t * hi, else { vec_reset_length (xd->default_mac_address); - vec_add (xd->default_mac_address, address, sizeof (address)); + vec_add (xd->default_mac_address, address, sizeof (mac_address_t)); return NULL; } } |