vdpa/mlx5: Remove mtu field from vdpa net device
authorEli Cohen <elic@nvidia.com>
Thu, 9 Sep 2021 12:36:33 +0000 (15:36 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:47 +0000 (05:26 -0400)
commit246fd1caf0f4424a79fd7cb0a5fe69103ea7995b
tree992bd7d087617a08afbe463d306c635f24e2b57e
parente85087beedcae97e81e5d361d7d9337aa0db6f4c
vdpa/mlx5: Remove mtu field from vdpa net device

No need to save the mtu int the net device struct. We can save it in the
config struct which cannot be modified.

Moreover, move the initialization to. mlx5_vdpa_set_features() callback
is not the right place to put it.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210909123635.30884-2-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c