]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e4a4cbbac3ed2c4279e0d64c5a9dc34e0422b0a
tree992bd7d087617a08afbe463d306c635f24e2b57e
parent58796d0048c966c31da9d1a7f5758ff945a23f67
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