Displaying 20 results from an estimated 27 matches for "guest_offloads_capable".
2020 Sep 29
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...dev_features_t features)
> > > > > {
> > > > > struct virtnet_info *vi = netdev_priv(dev);
> > > > > - u64 offloads;
> > > > > + u64 offloads = vi->guest_offloads &
> > > > > + vi->guest_offloads_capable;
> > > > > int err;
> > > > >
> > > > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > > > - if (vi->xdp_queue_pairs)
> > > > > - return -EBUSY;
> > > >...
2020 Sep 29
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...dev_features_t features)
> > > > > {
> > > > > struct virtnet_info *vi = netdev_priv(dev);
> > > > > - u64 offloads;
> > > > > + u64 offloads = vi->guest_offloads &
> > > > > + vi->guest_offloads_capable;
> > > > > int err;
> > > > >
> > > > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > > > - if (vi->xdp_queue_pairs)
> > > > > - return -EBUSY;
> > > >...
2020 Sep 28
7
[PATCH 1/2] virtio-net: don't disable guest csum when disable LRO
...1ULL << VIRTIO_NET_F_GUEST_ECN) | \
+ (1ULL << VIRTIO_NET_F_GUEST_UFO))
+
struct virtnet_stat_desc {
char desc[ETH_GSTRING_LEN];
size_t offset;
@@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
if (features & NETIF_F_LRO)
offloads = vi->guest_offloads_capable;
else
- offloads = 0;
+ offloads = vi->guest_offloads_capable &
+ ~GUEST_OFFLOAD_LRO_MASK;
err = virtnet_set_guest_offloads(vi, offloads);
if (err)
--
2.23.0
2020 Sep 28
7
[PATCH 1/2] virtio-net: don't disable guest csum when disable LRO
...1ULL << VIRTIO_NET_F_GUEST_ECN) | \
+ (1ULL << VIRTIO_NET_F_GUEST_UFO))
+
struct virtnet_stat_desc {
char desc[ETH_GSTRING_LEN];
size_t offset;
@@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
if (features & NETIF_F_LRO)
offloads = vi->guest_offloads_capable;
else
- offloads = 0;
+ offloads = vi->guest_offloads_capable &
+ ~GUEST_OFFLOAD_LRO_MASK;
err = virtnet_set_guest_offloads(vi, offloads);
if (err)
--
2.23.0
2020 Sep 28
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...];
> size_t offset;
> @@ -2526,25 +2528,37 @@ static int virtnet_set_features(struct net_device *dev,
> netdev_features_t features)
> {
> struct virtnet_info *vi = netdev_priv(dev);
> - u64 offloads;
> + u64 offloads = vi->guest_offloads &
> + vi->guest_offloads_capable;
> int err;
>
> - if ((dev->features ^ features) & NETIF_F_LRO) {
> - if (vi->xdp_queue_pairs)
> - return -EBUSY;
> + /* Don't allow configuration while XDP is active. */
> + if (vi->xdp_queue_pairs)
> + return -EBUSY;
>
> + if ((dev->feat...
2020 Sep 28
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...];
> size_t offset;
> @@ -2526,25 +2528,37 @@ static int virtnet_set_features(struct net_device *dev,
> netdev_features_t features)
> {
> struct virtnet_info *vi = netdev_priv(dev);
> - u64 offloads;
> + u64 offloads = vi->guest_offloads &
> + vi->guest_offloads_capable;
> int err;
>
> - if ((dev->features ^ features) & NETIF_F_LRO) {
> - if (vi->xdp_queue_pairs)
> - return -EBUSY;
> + /* Don't allow configuration while XDP is active. */
> + if (vi->xdp_queue_pairs)
> + return -EBUSY;
>
> + if ((dev->feat...
2020 Sep 29
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...,
> > > netdev_features_t features)
> > > {
> > > struct virtnet_info *vi = netdev_priv(dev);
> > > - u64 offloads;
> > > + u64 offloads = vi->guest_offloads &
> > > + vi->guest_offloads_capable;
> > > int err;
> > >
> > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > - if (vi->xdp_queue_pairs)
> > > - return -EBUSY;
> > > + /* Don't allow configuration while XDP is a...
2020 Sep 29
2
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...,
> > > netdev_features_t features)
> > > {
> > > struct virtnet_info *vi = netdev_priv(dev);
> > > - u64 offloads;
> > > + u64 offloads = vi->guest_offloads &
> > > + vi->guest_offloads_capable;
> > > int err;
> > >
> > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > - if (vi->xdp_queue_pairs)
> > > - return -EBUSY;
> > > + /* Don't allow configuration while XDP is a...
2020 Sep 29
0
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...> > > > > > {
> > > > > > struct virtnet_info *vi = netdev_priv(dev);
> > > > > > - u64 offloads;
> > > > > > + u64 offloads = vi->guest_offloads &
> > > > > > + vi->guest_offloads_capable;
> > > > > > int err;
> > > > > >
> > > > > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > > > > - if (vi->xdp_queue_pairs)
> > > > > > - return -...
2020 Sep 29
5
[PATCH net v2] virtio-net: don't disable guest csum when disable LRO
...1ULL << VIRTIO_NET_F_GUEST_ECN) | \
+ (1ULL << VIRTIO_NET_F_GUEST_UFO))
+
struct virtnet_stat_desc {
char desc[ETH_GSTRING_LEN];
size_t offset;
@@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
if (features & NETIF_F_LRO)
offloads = vi->guest_offloads_capable;
else
- offloads = 0;
+ offloads = vi->guest_offloads_capable &
+ ~GUEST_OFFLOAD_LRO_MASK;
err = virtnet_set_guest_offloads(vi, offloads);
if (err)
--
2.23.0
2020 Sep 29
5
[PATCH net v2] virtio-net: don't disable guest csum when disable LRO
...1ULL << VIRTIO_NET_F_GUEST_ECN) | \
+ (1ULL << VIRTIO_NET_F_GUEST_UFO))
+
struct virtnet_stat_desc {
char desc[ETH_GSTRING_LEN];
size_t offset;
@@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
if (features & NETIF_F_LRO)
offloads = vi->guest_offloads_capable;
else
- offloads = 0;
+ offloads = vi->guest_offloads_capable &
+ ~GUEST_OFFLOAD_LRO_MASK;
err = virtnet_set_guest_offloads(vi, offloads);
if (err)
--
2.23.0
2020 Sep 28
1
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...ic int virtnet_set_features(struct net_device *dev,
> netdev_features_t features)
> {
> struct virtnet_info *vi = netdev_priv(dev);
> - u64 offloads;
> + u64 offloads = vi->guest_offloads &
> + vi->guest_offloads_capable;
> int err;
>
> - if ((dev->features ^ features) & NETIF_F_LRO) {
> - if (vi->xdp_queue_pairs)
> - return -EBUSY;
> + /* Don't allow configuration while XDP is active. */
> + if (vi->xdp_queue_pairs)...
2020 Sep 29
2
[PATCH 1/2] virtio-net: don't disable guest csum when disable LRO
...t; struct virtnet_stat_desc {
> > char desc[ETH_GSTRING_LEN];
> > size_t offset;
> > @@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
> > if (features & NETIF_F_LRO)
> > offloads = vi->guest_offloads_capable;
> > else
> > - offloads = 0;
> > + offloads = vi->guest_offloads_capable &
> > + ~GUEST_OFFLOAD_LRO_MASK;
> >
> > err = virtnet_set_guest_offloads(vi, offlo...
2020 Sep 29
2
[PATCH 1/2] virtio-net: don't disable guest csum when disable LRO
...t; struct virtnet_stat_desc {
> > char desc[ETH_GSTRING_LEN];
> > size_t offset;
> > @@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
> > if (features & NETIF_F_LRO)
> > offloads = vi->guest_offloads_capable;
> > else
> > - offloads = 0;
> > + offloads = vi->guest_offloads_capable &
> > + ~GUEST_OFFLOAD_LRO_MASK;
> >
> > err = virtnet_set_guest_offloads(vi, offlo...
2020 Sep 28
0
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
..._stat_desc {
char desc[ETH_GSTRING_LEN];
size_t offset;
@@ -2526,25 +2528,37 @@ static int virtnet_set_features(struct net_device *dev,
netdev_features_t features)
{
struct virtnet_info *vi = netdev_priv(dev);
- u64 offloads;
+ u64 offloads = vi->guest_offloads &
+ vi->guest_offloads_capable;
int err;
- if ((dev->features ^ features) & NETIF_F_LRO) {
- if (vi->xdp_queue_pairs)
- return -EBUSY;
+ /* Don't allow configuration while XDP is active. */
+ if (vi->xdp_queue_pairs)
+ return -EBUSY;
+ if ((dev->features ^ features) & NETIF_F_LRO) {
if (featu...
2020 Sep 29
0
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...eatures(struct net_device *dev,
> > netdev_features_t features)
> > {
> > struct virtnet_info *vi = netdev_priv(dev);
> > - u64 offloads;
> > + u64 offloads = vi->guest_offloads &
> > + vi->guest_offloads_capable;
> > int err;
> >
> > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > - if (vi->xdp_queue_pairs)
> > - return -EBUSY;
> > + /* Don't allow configuration while XDP is active. */
> > + if (...
2020 Sep 29
0
[PATCH 2/2] virtio-net: ethtool configurable RXCSUM
...netdev_features_t features)
> > > > {
> > > > struct virtnet_info *vi = netdev_priv(dev);
> > > > - u64 offloads;
> > > > + u64 offloads = vi->guest_offloads &
> > > > + vi->guest_offloads_capable;
> > > > int err;
> > > >
> > > > - if ((dev->features ^ features) & NETIF_F_LRO) {
> > > > - if (vi->xdp_queue_pairs)
> > > > - return -EBUSY;
> > > > + /* Don't allo...
2020 Sep 29
2
[PATCH net v2] virtio-net: don't disable guest csum when disable LRO
...t; struct virtnet_stat_desc {
> > char desc[ETH_GSTRING_LEN];
> > size_t offset;
> > @@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
> > if (features & NETIF_F_LRO)
> > offloads = vi->guest_offloads_capable;
> > else
> > - offloads = 0;
> > + offloads = vi->guest_offloads_capable &
> > + ~GUEST_OFFLOAD_LRO_MASK;
> >
> > err = virtnet_set_guest_offloads(vi, offlo...
2020 Sep 29
2
[PATCH net v2] virtio-net: don't disable guest csum when disable LRO
...t; struct virtnet_stat_desc {
> > char desc[ETH_GSTRING_LEN];
> > size_t offset;
> > @@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
> > if (features & NETIF_F_LRO)
> > offloads = vi->guest_offloads_capable;
> > else
> > - offloads = 0;
> > + offloads = vi->guest_offloads_capable &
> > + ~GUEST_OFFLOAD_LRO_MASK;
> >
> > err = virtnet_set_guest_offloads(vi, offlo...
2020 Sep 28
0
[PATCH 1/2] virtio-net: don't disable guest csum when disable LRO
...T_UFO))
> +
> struct virtnet_stat_desc {
> char desc[ETH_GSTRING_LEN];
> size_t offset;
> @@ -2531,7 +2536,8 @@ static int virtnet_set_features(struct net_device *dev,
> if (features & NETIF_F_LRO)
> offloads = vi->guest_offloads_capable;
> else
> - offloads = 0;
> + offloads = vi->guest_offloads_capable &
> + ~GUEST_OFFLOAD_LRO_MASK;
>
> err = virtnet_set_guest_offloads(vi, offloads);
>...