Displaying 20 results from an estimated 100 matches for "virtio_net_ctrl_mq".
2020 Mar 01
2
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
...ble_length;
> + /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */
> + __le32 supported_hash_types;
> } __attribute__((packed));
>
> /*
> @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
>
> /*
> * Control Receive Flow Steering
> - *
> + */
> +#define VIRTIO_NET_CTRL_MQ 4
> +/*
> * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> * enables Receive Flow Steering, specifying the number of the transmit and
> * receive queues that will be used. After the command is consumed and acked by
> @@ -259,11 +279,29 @@ struct virtio_net_ctrl_mq {
> __v...
2020 Mar 01
2
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
...ble_length;
> + /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */
> + __le32 supported_hash_types;
> } __attribute__((packed));
>
> /*
> @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
>
> /*
> * Control Receive Flow Steering
> - *
> + */
> +#define VIRTIO_NET_CTRL_MQ 4
> +/*
> * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> * enables Receive Flow Steering, specifying the number of the transmit and
> * receive queues that will be used. After the command is consumed and acked by
> @@ -259,11 +279,29 @@ struct virtio_net_ctrl_mq {
> __v...
2020 Mar 02
2
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
..._hash_types;
> > > } __attribute__((packed));
> > >
> > > /*
> > > @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
> > >
> > > /*
> > > * Control Receive Flow Steering
> > > - *
> > > + */
> > > +#define VIRTIO_NET_CTRL_MQ 4
> > > +/*
> > > * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> > > * enables Receive Flow Steering, specifying the number of the transmit and
> > > * receive queues that will be used. After the command is consumed and acked by
> > > @@ -259,11...
2020 Mar 02
2
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
..._hash_types;
> > > } __attribute__((packed));
> > >
> > > /*
> > > @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
> > >
> > > /*
> > > * Control Receive Flow Steering
> > > - *
> > > + */
> > > +#define VIRTIO_NET_CTRL_MQ 4
> > > +/*
> > > * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> > > * enables Receive Flow Steering, specifying the number of the transmit and
> > > * receive queues that will be used. After the command is consumed and acked by
> > > @@ -259,11...
2012 Dec 07
3
[PATCHv6] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device.
Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new
configuration field max_virtqueue_pairs to detect supported number of
virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program
packet steering for unidirectional protocols.
---
Changes in v6:
- rename RFS -> multiqueue to avoid confusion with RFS in linux
mention automatic receive steering as Rusty suggested
Changes in v5:
- Address Rusty's comments.
Changes are only in the text, not the ideas.
- S...
2012 Dec 07
3
[PATCHv6] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device.
Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new
configuration field max_virtqueue_pairs to detect supported number of
virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program
packet steering for unidirectional protocols.
---
Changes in v6:
- rename RFS -> multiqueue to avoid confusion with RFS in linux
mention automatic receive steering as Rusty suggested
Changes in v5:
- Address Rusty's comments.
Changes are only in the text, not the ideas.
- S...
2020 Mar 01
0
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
...indirection table entries */
+ __le16 rss_max_indirection_table_length;
+ /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */
+ __le32 supported_hash_types;
} __attribute__((packed));
/*
@@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
/*
* Control Receive Flow Steering
- *
+ */
+#define VIRTIO_NET_CTRL_MQ 4
+/*
* The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
* enables Receive Flow Steering, specifying the number of the transmit and
* receive queues that will be used. After the command is consumed and acked by
@@ -259,11 +279,29 @@ struct virtio_net_ctrl_mq {
__virtio16 virtqueue_pairs;
};...
2020 Mar 02
0
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
...SS_HASH_ types */
> > + __le32 supported_hash_types;
> > } __attribute__((packed));
> >
> > /*
> > @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
> >
> > /*
> > * Control Receive Flow Steering
> > - *
> > + */
> > +#define VIRTIO_NET_CTRL_MQ 4
> > +/*
> > * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> > * enables Receive Flow Steering, specifying the number of the transmit and
> > * receive queues that will be used. After the command is consumed and acked by
> > @@ -259,11 +279,29 @@ struct virtio...
2020 Mar 01
0
[PATCH 2/3] virtio-net: Introduce RSS receive steering feature
...Thanks!
> + /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */
> + __u32 supported_hash_types;
> } __attribute__((packed));
>
> /*
> @@ -236,7 +254,9 @@ struct virtio_net_ctrl_mac {
>
> /*
> * Control Receive Flow Steering
> - *
> + */
> +#define VIRTIO_NET_CTRL_MQ 4
> +/*
> * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> * enables Receive Flow Steering, specifying the number of the transmit and
> * receive queues that will be used. After the command is consumed and acked by
> @@ -249,11 +269,29 @@ struct virtio_net_ctrl_mq {
> __v...
2018 Apr 19
1
[PATCH v2 net 1/3] virtio_net: split out ctrl buffer
...100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -147,6 +147,17 @@ struct receive_queue {
struct xdp_rxq_info xdp_rxq;
};
+/* Control VQ buffers: protected by the rtnl lock */
+struct control_buf {
+ struct virtio_net_ctrl_hdr hdr;
+ virtio_net_ctrl_ack status;
+ struct virtio_net_ctrl_mq mq;
+ u8 promisc;
+ u8 allmulti;
+ u16 vid;
+ u64 offloads;
+};
+
struct virtnet_info {
struct virtio_device *vdev;
struct virtqueue *cvq;
@@ -192,14 +203,7 @@ struct virtnet_info {
struct hlist_node node;
struct hlist_node node_dead;
- /* Control VQ buffers: protected by the rtnl lock *...
2020 Mar 01
7
[PATCH v3 0/3] virtio-net: introduce features defined in the spec
This series introduce virtio-net features VIRTIO_NET_F_RSC_EXT,
VIRTIO_NET_F_RSS and VIRTIO_NET_F_HASH_REPORT.
Changes from v2: reformatted structure in patch 1
Yuri Benditovich (3):
virtio-net: Introduce extended RSC feature
virtio-net: Introduce RSS receive steering feature
virtio-net: Introduce hash report feature
include/uapi/linux/virtio_net.h | 100 ++++++++++++++++++++++++++++++--
2020 Mar 01
7
[PATCH v3 0/3] virtio-net: introduce features defined in the spec
This series introduce virtio-net features VIRTIO_NET_F_RSC_EXT,
VIRTIO_NET_F_RSS and VIRTIO_NET_F_HASH_REPORT.
Changes from v2: reformatted structure in patch 1
Yuri Benditovich (3):
virtio-net: Introduce extended RSC feature
virtio-net: Introduce RSS receive steering feature
virtio-net: Introduce hash report feature
include/uapi/linux/virtio_net.h | 100 ++++++++++++++++++++++++++++++--
2020 Mar 02
0
[PATCH v3 2/3] virtio-net: Introduce RSS receive steering feature
...(packed));
> > > >
> > > > /*
> > > > @@ -246,7 +264,9 @@ struct virtio_net_ctrl_mac {
> > > >
> > > > /*
> > > > * Control Receive Flow Steering
> > > > - *
> > > > + */
> > > > +#define VIRTIO_NET_CTRL_MQ 4
> > > > +/*
> > > > * The command VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET
> > > > * enables Receive Flow Steering, specifying the number of the transmit and
> > > > * receive queues that will be used. After the command is consumed and acked by
>...
2018 Apr 19
3
[PATCH net] virtio_net: split out ctrl buffer
...100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -147,6 +147,17 @@ struct receive_queue {
struct xdp_rxq_info xdp_rxq;
};
+/* Control VQ buffers: protected by the rtnl lock */
+struct control_buf {
+ struct virtio_net_ctrl_hdr hdr;
+ virtio_net_ctrl_ack status;
+ struct virtio_net_ctrl_mq mq;
+ u8 promisc;
+ u8 allmulti;
+ u16 vid;
+ u64 offloads;
+};
+
struct virtnet_info {
struct virtio_device *vdev;
struct virtqueue *cvq;
@@ -192,14 +203,7 @@ struct virtnet_info {
struct hlist_node node;
struct hlist_node node_dead;
- /* Control VQ buffers: protected by the rtnl lock *...
2012 Dec 10
1
[PATCHv7] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device.
Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new
configuration field max_virtqueue_pairs to detect supported number of
virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program
packet steering for unidirectional protocols.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
Changes in v7:
- 8000h -> 0x8000 at Rusty's request
Changes in v6:
- rename RFS -> multiqueue to avoid confusion with RFS in linux
mention automatic receive steer...
2012 Dec 10
1
[PATCHv7] virtio-spec: virtio network device multiqueue support
Add multiqueue support to virtio network device.
Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new
configuration field max_virtqueue_pairs to detect supported number of
virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program
packet steering for unidirectional protocols.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
Changes in v7:
- 8000h -> 0x8000 at Rusty's request
Changes in v6:
- rename RFS -> multiqueue to avoid confusion with RFS in linux
mention automatic receive steer...
2014 Nov 24
0
[PATCH v3 11/41] virtio_net: v1.0 endianness
...0,7 @@ typedef __u8 virtio_net_ctrl_ack;
* VIRTIO_NET_F_CTRL_MAC_ADDR feature is available.
*/
struct virtio_net_ctrl_mac {
- __u32 entries;
+ __virtio32 entries;
__u8 macs[][ETH_ALEN];
} __attribute__((packed));
@@ -193,7 +194,7 @@ struct virtio_net_ctrl_mac {
* specified.
*/
struct virtio_net_ctrl_mq {
- __u16 virtqueue_pairs;
+ __virtio16 virtqueue_pairs;
};
#define VIRTIO_NET_CTRL_MQ 4
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b0bc8ea..c07e030 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -347,13 +347,14 @@ err:
}
static struct...
2014 Nov 25
0
[PATCH v4 12/42] virtio_net: v1.0 endianness
...0,7 @@ typedef __u8 virtio_net_ctrl_ack;
* VIRTIO_NET_F_CTRL_MAC_ADDR feature is available.
*/
struct virtio_net_ctrl_mac {
- __u32 entries;
+ __virtio32 entries;
__u8 macs[][ETH_ALEN];
} __attribute__((packed));
@@ -193,7 +194,7 @@ struct virtio_net_ctrl_mac {
* specified.
*/
struct virtio_net_ctrl_mq {
- __u16 virtqueue_pairs;
+ __virtio16 virtqueue_pairs;
};
#define VIRTIO_NET_CTRL_MQ 4
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b0bc8ea..c07e030 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -347,13 +347,14 @@ err:
}
static struct...
2014 Nov 27
0
[PATCH v5 14/45] virtio_net: v1.0 endianness
...0,7 @@ typedef __u8 virtio_net_ctrl_ack;
* VIRTIO_NET_F_CTRL_MAC_ADDR feature is available.
*/
struct virtio_net_ctrl_mac {
- __u32 entries;
+ __virtio32 entries;
__u8 macs[][ETH_ALEN];
} __attribute__((packed));
@@ -193,7 +194,7 @@ struct virtio_net_ctrl_mac {
* specified.
*/
struct virtio_net_ctrl_mq {
- __u16 virtqueue_pairs;
+ __virtio16 virtqueue_pairs;
};
#define VIRTIO_NET_CTRL_MQ 4
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b0bc8ea..c07e030 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -347,13 +347,14 @@ err:
}
static struct...
2014 Nov 27
0
[PATCH v6 15/46] virtio_net: v1.0 endianness
...0,7 @@ typedef __u8 virtio_net_ctrl_ack;
* VIRTIO_NET_F_CTRL_MAC_ADDR feature is available.
*/
struct virtio_net_ctrl_mac {
- __u32 entries;
+ __virtio32 entries;
__u8 macs[][ETH_ALEN];
} __attribute__((packed));
@@ -193,7 +194,7 @@ struct virtio_net_ctrl_mac {
* specified.
*/
struct virtio_net_ctrl_mq {
- __u16 virtqueue_pairs;
+ __virtio16 virtqueue_pairs;
};
#define VIRTIO_NET_CTRL_MQ 4
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b0bc8ea..c07e030 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -347,13 +347,14 @@ err:
}
static struct...