Skip to content

Correctly perform offloads when VNET_HDR is disabled

Vlad Yasevich netdev 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesApplied
  2. v32 patches 16 repliesSuperseded

Changes in v4 from the cover letter

- The main change here is that instead of mucking around with checksum bits, we instead treat macvtap as macvlan+tap each with separate feature sets. tap_features identify the features of only the 'tap' part and we only use them when forwarding, essentially making the 'tap' part a pseudo-device. To properly handle GSO, we always set NETIF_F_SG | NETIF_F_GSO on the 'tap' part.

- The rest of the set is mostly the same in that we allow user to change tap offload features whether VNET_HDR is set or cleared.
- When VNET_HDR is disabled, we ignore user specified tap offloads. This is now a separate patch so that if there are disagreements, it can be easily dropped.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3macvtap: simplify usage of tap_featuresdrivers/net/macvtap.c+6 -41 reply
2/3macvtap: Correctly set tap features when IFF_VNET_HDR is disabled.drivers/net/macvtap.c+0 -41 reply
3/3macvtap: Ignore tap features when VNET_HDR is offdrivers/net/macvtap.c+4 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] Correctly perform offloads when VNET_HDR is disabled

Changes since v3:
- The main change here is that instead of mucking around with checksum bits, we instead treat macvtap as macvlan+tap each with separate feature sets. tap_features identify the features of only the 'tap' part and we only use them when forwarding, essentially making the 'tap' part a pseudo-device. To properly handle GSO, we always set NETIF_F_SG | NETIF_F_GSO on the 'tap' part.

- The rest of the set is mostly the same in that we allow user to change tap offload features whether VNET_HDR is set or cleared.
- When VNET_HDR is disabled, we ignore user specified tap offloads. This is now a separate patch so that if there are disagreements, it can be easily dropped.

Vlad Yasevich (3):
macvtap: simplify usage of tap_features
macvtap: Correctly set tap features when IFF_VNET_HDR is disabled.
macvtap: Ignore tap features when VNET_HDR is off

 drivers/net/macvtap.c | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.1.4