virtio-net: Expose MAC_TABLE_ENTRIES
vhost-vdpa control virtqueue needs to know the maximum entries supported by the virtio-net device, so we know if it is possible to apply the filter. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
009c2549bb
commit
6758c01f05
@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
#define VIRTIO_NET_VM_VERSION 11
|
#define VIRTIO_NET_VM_VERSION 11
|
||||||
|
|
||||||
#define MAC_TABLE_ENTRIES 64
|
|
||||||
#define MAX_VLAN (1 << 12) /* Per 802.1Q definition */
|
#define MAX_VLAN (1 << 12) /* Per 802.1Q definition */
|
||||||
|
|
||||||
/* previously fixed value */
|
/* previously fixed value */
|
||||||
|
@ -35,6 +35,9 @@ OBJECT_DECLARE_SIMPLE_TYPE(VirtIONet, VIRTIO_NET)
|
|||||||
* and latency. */
|
* and latency. */
|
||||||
#define TX_BURST 256
|
#define TX_BURST 256
|
||||||
|
|
||||||
|
/* Maximum VIRTIO_NET_CTRL_MAC_TABLE_SET unicast + multicast entries. */
|
||||||
|
#define MAC_TABLE_ENTRIES 64
|
||||||
|
|
||||||
typedef struct virtio_net_conf
|
typedef struct virtio_net_conf
|
||||||
{
|
{
|
||||||
uint32_t txtimer;
|
uint32_t txtimer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user