svn commit: r306242 - stable/11/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Sep 23 08:26:04 UTC 2016
Author: hselasky
Date: Fri Sep 23 08:26:02 2016
New Revision: 306242
URL: https://svnweb.freebsd.org/changeset/base/306242
Log:
MFC r305876:
mlx5en: Remove unused pdev pointer.
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/mlx5_en/en.h
stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/mlx5_en/en.h
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/en.h Fri Sep 23 08:25:23 2016 (r306241)
+++ stable/11/sys/dev/mlx5/mlx5_en/en.h Fri Sep 23 08:26:02 2016 (r306242)
@@ -467,7 +467,6 @@ struct mlx5e_rq {
bus_dma_tag_t dma_tag;
u32 wqe_sz;
struct mlx5e_rq_mbuf *mbuf;
- struct device *pdev;
struct ifnet *ifp;
struct mlx5e_rq_stats stats;
struct mlx5e_cq cq;
@@ -532,7 +531,6 @@ struct mlx5e_sq {
struct ifnet *ifp;
u32 sqn;
u32 bf_buf_size;
- struct device *pdev;
u32 mkey_be;
/* control path */
@@ -553,7 +551,6 @@ struct mlx5e_channel {
/* data path */
struct mlx5e_rq rq;
struct mlx5e_sq sq[MLX5E_MAX_TX_NUM_TC];
- struct device *pdev;
struct ifnet *ifp;
u32 mkey_be;
u8 num_tc;
Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Fri Sep 23 08:25:23 2016 (r306241)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Fri Sep 23 08:26:02 2016 (r306242)
@@ -674,7 +674,6 @@ mlx5e_create_rq(struct mlx5e_channel *c,
wqe->data.byte_count = cpu_to_be32(byte_count | MLX5_HW_START_PADDING);
}
- rq->pdev = c->pdev;
rq->ifp = c->ifp;
rq->channel = c;
rq->ix = c->ix;
@@ -962,7 +961,6 @@ mlx5e_create_sq(struct mlx5e_channel *c,
if (err)
goto err_sq_wq_destroy;
- sq->pdev = c->pdev;
sq->mkey_be = c->mkey_be;
sq->ifp = priv->ifp;
sq->priv = priv;
@@ -1486,7 +1484,6 @@ mlx5e_open_channel(struct mlx5e_priv *pr
c->priv = priv;
c->ix = ix;
c->cpu = 0;
- c->pdev = &priv->mdev->pdev->dev;
c->ifp = priv->ifp;
c->mkey_be = cpu_to_be32(priv->mr.key);
c->num_tc = priv->num_tc;
More information about the svn-src-stable-11
mailing list