Skip to content

Commit

Permalink
Remove some unused fields.
Browse files Browse the repository at this point in the history
Sponsored by:	Mellanox Technologies
MFC after:	1 week
  • Loading branch information
hselasky committed Apr 14, 2016
1 parent 801743f commit 9a0fd08
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions sys/ofed/drivers/net/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,10 +1243,6 @@ int mlx4_en_start_port(struct net_device *dev)
/* Calculate Rx buf size */
dev->if_mtu = min(dev->if_mtu, priv->max_mtu);
mlx4_en_calc_rx_buf(dev);
priv->rx_alloc_size = max_t(int, 2 * roundup_pow_of_two(priv->rx_mb_size),
PAGE_SIZE);
priv->rx_alloc_order = get_order(priv->rx_alloc_size);
priv->rx_buf_size = roundup_pow_of_two(priv->rx_mb_size);
en_dbg(DRV, priv, "Rx buf size:%d\n", priv->rx_mb_size);

/* Configure rx cq's and rings */
Expand Down
3 changes: 0 additions & 3 deletions sys/ofed/drivers/net/mlx4/en_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ int mlx4_en_activate_rx_rings(struct mlx4_en_priv *priv)
ring->cons = 0;
ring->actual_size = 0;
ring->cqn = priv->rx_cq[ring_ind]->mcq.cqn;
ring->rx_alloc_order = priv->rx_alloc_order;
ring->rx_alloc_size = priv->rx_alloc_size;
ring->rx_buf_size = priv->rx_buf_size;
ring->rx_mb_size = priv->rx_mb_size;

ring->stride = stride;
Expand Down
6 changes: 0 additions & 6 deletions sys/ofed/drivers/net/mlx4/mlx4_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ struct mlx4_en_rx_ring {
u32 cons;
u32 buf_size;
u8 fcs_del;
u16 rx_alloc_order;
u32 rx_alloc_size;
u32 rx_buf_size;
u32 rx_mb_size;
int qpn;
u8 *buf;
Expand Down Expand Up @@ -557,9 +554,6 @@ struct mlx4_en_priv {
u32 tx_ring_num;
u32 rx_ring_num;
u32 rx_mb_size;
u16 rx_alloc_order;
u32 rx_alloc_size;
u32 rx_buf_size;

struct mlx4_en_tx_ring **tx_ring;
struct mlx4_en_rx_ring *rx_ring[MAX_RX_RINGS];
Expand Down

0 comments on commit 9a0fd08

Please sign in to comment.