|
@@ -86,9 +86,8 @@ static void mlx5e_timestamp_overflow(struct work_struct *work)
|
|
schedule_delayed_work(&tstamp->overflow_work, tstamp->overflow_period);
|
|
schedule_delayed_work(&tstamp->overflow_work, tstamp->overflow_period);
|
|
}
|
|
}
|
|
|
|
|
|
-int mlx5e_hwstamp_set(struct net_device *dev, struct ifreq *ifr)
|
|
|
|
|
|
+int mlx5e_hwstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr)
|
|
{
|
|
{
|
|
- struct mlx5e_priv *priv = netdev_priv(dev);
|
|
|
|
struct hwtstamp_config config;
|
|
struct hwtstamp_config config;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
@@ -130,10 +129,10 @@ int mlx5e_hwstamp_set(struct net_device *dev, struct ifreq *ifr)
|
|
case HWTSTAMP_FILTER_PTP_V2_DELAY_REQ:
|
|
case HWTSTAMP_FILTER_PTP_V2_DELAY_REQ:
|
|
case HWTSTAMP_FILTER_NTP_ALL:
|
|
case HWTSTAMP_FILTER_NTP_ALL:
|
|
/* Disable CQE compression */
|
|
/* Disable CQE compression */
|
|
- netdev_warn(dev, "Disabling cqe compression");
|
|
|
|
|
|
+ netdev_warn(priv->netdev, "Disabling cqe compression");
|
|
err = mlx5e_modify_rx_cqe_compression_locked(priv, false);
|
|
err = mlx5e_modify_rx_cqe_compression_locked(priv, false);
|
|
if (err) {
|
|
if (err) {
|
|
- netdev_err(dev, "Failed disabling cqe compression err=%d\n", err);
|
|
|
|
|
|
+ netdev_err(priv->netdev, "Failed disabling cqe compression err=%d\n", err);
|
|
mutex_unlock(&priv->state_lock);
|
|
mutex_unlock(&priv->state_lock);
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
@@ -151,9 +150,8 @@ int mlx5e_hwstamp_set(struct net_device *dev, struct ifreq *ifr)
|
|
sizeof(config)) ? -EFAULT : 0;
|
|
sizeof(config)) ? -EFAULT : 0;
|
|
}
|
|
}
|
|
|
|
|
|
-int mlx5e_hwstamp_get(struct net_device *dev, struct ifreq *ifr)
|
|
|
|
|
|
+int mlx5e_hwstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr)
|
|
{
|
|
{
|
|
- struct mlx5e_priv *priv = netdev_priv(dev);
|
|
|
|
struct hwtstamp_config *cfg = &priv->tstamp.hwtstamp_config;
|
|
struct hwtstamp_config *cfg = &priv->tstamp.hwtstamp_config;
|
|
|
|
|
|
if (!MLX5_CAP_GEN(priv->mdev, device_frequency_khz))
|
|
if (!MLX5_CAP_GEN(priv->mdev, device_frequency_khz))
|