Skip to contentSkip to conversation

vdpa/mlx5: Add the support of set mac address

PATCH Ratheesh Kannoth 2 participants 2 messages Jul 9, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Review

Quoted 10 lines · Cindy Lu
(quoted diff) +10 -0
+static int mlx5_vdpa_set_attr_mac(struct vdpa_mgmt_dev *v_mdev,
+				  struct vdpa_device *dev,
+				  const struct vdpa_dev_set_config *add_config)
+{
+	struct mlx5_vdpa_dev *mvdev = to_mvdev(dev);
+	struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev);
+	struct mlx5_core_dev *mdev = mvdev->mdev;
+	struct virtio_net_config *config = &ndev->config;
+	int err;
+	struct mlx5_core_dev *pfmdev;

nit: reverse xmas tree; may be, split assigment and definition.

Quoted 1 line
#1 lore raw
Quoted 14 lines · Ratheesh Kannoth

Review

Quoted 10 lines · Cindy Lu
(quoted diff) +10 -0
+static int mlx5_vdpa_set_attr_mac(struct vdpa_mgmt_dev *v_mdev,
+                               struct vdpa_device *dev,
+                               const struct vdpa_dev_set_config *add_config)
+{
+     struct mlx5_vdpa_dev *mvdev = to_mvdev(dev);
+     struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev);
+     struct mlx5_core_dev *mdev = mvdev->mdev;
+     struct virtio_net_config *config = &ndev->config;
+     int err;
+     struct mlx5_core_dev *pfmdev;

nit: reverse xmas tree; may be, split assigment and definition.

Thanks, Will change this
Thanks
cindy

Quoted 2 lines
Quoted 1 line