Displaying 10 results from an estimated 10 matches for "virtio_net_f_guest_uso4".
Did you mean:
virtio_net_f_guest_tso4
2023 Feb 17
1
[patch net-next] net: virtio_net: implement exact header length guest feature
...letions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index fb5e68ed3ec2..e85b03988733 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
VIRTIO_NET_F_GUEST_UFO,
VIRTIO_NET_F_GUEST_CSUM,
VIRTIO_NET_F_GUEST_USO4,
- VIRTIO_NET_F_GUEST_USO6
+ VIRTIO_NET_F_GUEST_USO6,
+ VIRTIO_NET_F_GUEST_HDRLEN
};
#define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL << VIRTIO_NET_F_GUEST_TSO4) | \
@@ -4213,7 +4214,8 @@ static struct virtio_device_id id_table[] = {
VIRTIO_NET_F_CTRL_MAC_ADDR, \
VIRTIO_NET_F_MTU, VIRTIO_NET_...
2023 Apr 30
1
[RFC PATCH net 2/3] virtio-net: allow usage of vrings smaller than MAX_SKB_FRAGS + 2
...+ cnt++;
+ }
+ if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_ECN)) {
+ virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_ECN);
+ cnt++;
+ }
+ if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_UFO)) {
+ virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_UFO);
+ cnt++;
+ }
+ if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_USO4)) {
+ virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_USO4);
+ cnt++;
+ }
+ if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_USO6)) {
+ virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_USO6);
+ cnt++;
+ }
+
+ return cnt;
+}
+
+static int virtnet_fixup_svring(struct virtnet_info *vi)
+{
+ int i;
+ /*...
2023 Feb 21
4
[patch net-next v2] net: virtio_net: implement exact header length guest feature
...letions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index fb5e68ed3ec2..e85b03988733 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
VIRTIO_NET_F_GUEST_UFO,
VIRTIO_NET_F_GUEST_CSUM,
VIRTIO_NET_F_GUEST_USO4,
- VIRTIO_NET_F_GUEST_USO6
+ VIRTIO_NET_F_GUEST_USO6,
+ VIRTIO_NET_F_GUEST_HDRLEN
};
#define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL << VIRTIO_NET_F_GUEST_TSO4) | \
@@ -4213,7 +4214,8 @@ static struct virtio_device_id id_table[] = {
VIRTIO_NET_F_CTRL_MAC_ADDR, \
VIRTIO_NET_F_MTU, VIRTIO_NET_...
2023 Feb 17
1
[patch net-next] net: virtio_net: implement exact header length guest feature
...b5e68ed3ec2..e85b03988733 100644
> >> --- a/drivers/net/virtio_net.c
> >> +++ b/drivers/net/virtio_net.c
> >> @@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
> >> VIRTIO_NET_F_GUEST_UFO,
> >> VIRTIO_NET_F_GUEST_CSUM,
> >> VIRTIO_NET_F_GUEST_USO4,
> >> - VIRTIO_NET_F_GUEST_USO6
> >> + VIRTIO_NET_F_GUEST_USO6,
> >> + VIRTIO_NET_F_GUEST_HDRLEN
> >> };
> >>
> >> #define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL << VIRTIO_NET_F_GUEST_TSO4) | \
> >> @@ -4213,7 +4214,8 @@ static stru...
2023 Feb 20
3
[patch net-next] net: virtio_net: implement exact header length guest feature
...; --- a/drivers/net/virtio_net.c
> >> >> +++ b/drivers/net/virtio_net.c
> >> >> @@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
> >> >> VIRTIO_NET_F_GUEST_UFO,
> >> >> VIRTIO_NET_F_GUEST_CSUM,
> >> >> VIRTIO_NET_F_GUEST_USO4,
> >> >> - VIRTIO_NET_F_GUEST_USO6
> >> >> + VIRTIO_NET_F_GUEST_USO6,
> >> >> + VIRTIO_NET_F_GUEST_HDRLEN
> >> >> };
> >> >>
> >> >> #define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL << VIRTIO_NET_F_GUEST_TSO...
2023 Feb 20
2
[patch net-next] net: virtio_net: implement exact header length guest feature
...virtio_net.c
>> >> >> +++ b/drivers/net/virtio_net.c
>> >> >> @@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
>> >> >> VIRTIO_NET_F_GUEST_UFO,
>> >> >> VIRTIO_NET_F_GUEST_CSUM,
>> >> >> VIRTIO_NET_F_GUEST_USO4,
>> >> >> - VIRTIO_NET_F_GUEST_USO6
>> >> >> + VIRTIO_NET_F_GUEST_USO6,
>> >> >> + VIRTIO_NET_F_GUEST_HDRLEN
>> >> >> };
>> >> >>
>> >> >> #define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL <<...
2023 Feb 22
1
[patch net-next v3] net: virtio_net: implement exact header length guest feature
...letions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index fb5e68ed3ec2..e85b03988733 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
VIRTIO_NET_F_GUEST_UFO,
VIRTIO_NET_F_GUEST_CSUM,
VIRTIO_NET_F_GUEST_USO4,
- VIRTIO_NET_F_GUEST_USO6
+ VIRTIO_NET_F_GUEST_USO6,
+ VIRTIO_NET_F_GUEST_HDRLEN
};
#define GUEST_OFFLOAD_GRO_HW_MASK ((1ULL << VIRTIO_NET_F_GUEST_TSO4) | \
@@ -4213,7 +4214,8 @@ static struct virtio_device_id id_table[] = {
VIRTIO_NET_F_CTRL_MAC_ADDR, \
VIRTIO_NET_F_MTU, VIRTIO_NET_...
2023 Feb 21
1
[patch net-next] net: virtio_net: implement exact header length guest feature
...>>>>>>> +++ b/drivers/net/virtio_net.c
>>>>>>> @@ -62,7 +62,8 @@ static const unsigned long guest_offloads[] = {
>>>>>>> VIRTIO_NET_F_GUEST_UFO,
>>>>>>> VIRTIO_NET_F_GUEST_CSUM,
>>>>>>> VIRTIO_NET_F_GUEST_USO4,
>>>>>>> - VIRTIO_NET_F_GUEST_USO6
>>>>>>> + VIRTIO_NET_F_GUEST_USO6,
>>>>>>> + VIRTIO_NET_F_GUEST_HDRLEN
>>>>>>> };
>>>>>>>
>>>>>>> #define GUEST_OFFLOAD_GRO_HW_MASK...
2023 Apr 30
1
[RFC PATCH net 2/3] virtio-net: allow usage of vrings smaller than MAX_SKB_FRAGS + 2
...vdev, VIRTIO_NET_F_GUEST_ECN)) {
> + virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_ECN);
> + cnt++;
> + }
> + if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_UFO)) {
> + virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_UFO);
> + cnt++;
> + }
> + if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_USO4)) {
> + virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_USO4);
> + cnt++;
> + }
> + if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_USO6)) {
> + virtio_block_feature(vdev, VIRTIO_NET_F_GUEST_USO6);
> + cnt++;
> + }
> +
> + return cnt;
> +}
> +
> +static int vir...
2023 Apr 30
5
[RFC PATCH net 0/3] virtio-net: allow usage of small vrings
At the moment, if a virtio network device uses vrings with less than
MAX_SKB_FRAGS + 2 entries, the device won't be functional.
The following condition vq->num_free >= 2 + MAX_SKB_FRAGS will always
evaluate to false, leading to TX timeouts.
This patchset attempts this fix this bug, and to allow small rings down
to 4 entries.
The first patch introduces a new mechanism in virtio core -