mlx4: dma_dir is a mlx4_en_priv attribute
authorEric Dumazet <edumazet@google.com>
Wed, 8 Mar 2017 16:17:06 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 17:54:46 +0000 (09:54 -0800)
commit69ba943151b2e40e201700cf5b3a94e433c6fd83
tree4b33088842a174f4454c57770a0cc6d6b9388f92
parent3c66d1c7ed4131bbaea128803cfa247defa2c376
mlx4: dma_dir is a mlx4_en_priv attribute

No need to duplicate it for all queues and frags.

num_frags & log_rx_info become u8 to save space.
u8 accesses are a bit faster than u16 anyway.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h