virtio: fix size of MAC address array
authorIvan Boule <ivan.boule@6wind.com>
Thu, 29 Oct 2015 08:46:15 +0000 (09:46 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Nov 2015 10:40:58 +0000 (11:40 +0100)
commitb5b0467ca8697e14ae533011d2696603202c04c3
treea0222ec67108853e11c99ae6a5b04ea06b1f82fa
parent6b39b947a944c51132c7d60b9ced2a18f3dd7507
virtio: fix size of MAC address array

Make the virtio PMD allocate the array of unicast MAC addresses with
the maximum of entries (VIRTIO_MAX_MAC_ADDRS) that it exports.

Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c