Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 791a1cb

Browse files
elic307imstsirkin
authored andcommitted
vdpa/mlx5: Make VIRTIO_NET_F_MRG_RXBUF off by default
Following patch adds driver support for VIRTIO_NET_F_MRG_RXBUF. Current firmware versions show degradation in packet rate when using MRG_RXBUF. Users who favor memory saving over packet rate could enable this feature but we want to keep it off by default. One can still enable it when creating the vdpa device using vdpa tool by providing features that include it. For example: $ vdpa dev add name vdpa0 mgmtdev pci/0000:86:00.2 device_features 0x300cb982b Acked-by: Jason Wang <[email protected]> Signed-off-by: Eli Cohen <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Si-Wei Liu <[email protected]>
1 parent a084983 commit 791a1cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,6 +3158,8 @@ static int mlx5_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name,
31583158
return -EINVAL;
31593159
}
31603160
device_features &= add_config->device_features;
3161+
} else {
3162+
device_features &= ~BIT_ULL(VIRTIO_NET_F_MRG_RXBUF);
31613163
}
31623164
if (!(device_features & BIT_ULL(VIRTIO_F_VERSION_1) &&
31633165
device_features & BIT_ULL(VIRTIO_F_ACCESS_PLATFORM))) {

0 commit comments

Comments
 (0)