]> 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)
commitb3d2feae3237425326a797046e19bc56cec9845e
tree992bd7d087617a08afbe463d306c635f24e2b57e
parent940e37adecb5de167b4ea640470567db65f21a63
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