mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Remove mkey_be from channel structure in mlx5en(4).
Use value from priv structure instead. This saves some space in the channel structure. MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
3e40712eb0
commit
a2d65bfd8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352987
@ -863,7 +863,6 @@ struct mlx5e_channel {
|
||||
struct mlx5e_rq rq;
|
||||
struct mlx5e_snd_tag tag;
|
||||
struct mlx5e_sq sq[MLX5E_MAX_TX_NUM_TC];
|
||||
u32 mkey_be;
|
||||
u8 num_tc;
|
||||
|
||||
/* control */
|
||||
|
@ -1273,7 +1273,7 @@ mlx5e_create_rq(struct mlx5e_channel *c,
|
||||
|
||||
/* set value for constant fields */
|
||||
for (j = 0; j < rq->nsegs; j++)
|
||||
wqe->data[j].lkey = c->mkey_be;
|
||||
wqe->data[j].lkey = cpu_to_be32(priv->mr.key);
|
||||
}
|
||||
|
||||
INIT_WORK(&rq->dim.work, mlx5e_dim_work);
|
||||
@ -1629,7 +1629,7 @@ mlx5e_create_sq(struct mlx5e_channel *c,
|
||||
if (err)
|
||||
goto err_sq_wq_destroy;
|
||||
|
||||
sq->mkey_be = c->mkey_be;
|
||||
sq->mkey_be = cpu_to_be32(priv->mr.key);
|
||||
sq->ifp = priv->ifp;
|
||||
sq->priv = priv;
|
||||
sq->tc = tc;
|
||||
@ -2158,7 +2158,6 @@ mlx5e_open_channel(struct mlx5e_priv *priv, int ix,
|
||||
c->ix = ix;
|
||||
/* setup send tag */
|
||||
c->tag.type = IF_SND_TAG_TYPE_UNLIMITED;
|
||||
c->mkey_be = cpu_to_be32(priv->mr.key);
|
||||
c->num_tc = priv->num_tc;
|
||||
|
||||
/* init mutexes */
|
||||
|
Loading…
Reference in New Issue
Block a user