net/mlx5e: Union RQ RX info per RQ type
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Sep 2016 09:19:43 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 06:51:40 +0000 (02:51 -0400)
commit21c59685dd176dd6b2c4fc5e18dc65730cfd546a
tree66d309bc87ccf091d265fa207a64b9592f4f321c
parent1bfecfca565c0505d04dbf5fdd3d2fbb951827c0
net/mlx5e: Union RQ RX info per RQ type

We have two types of RX RQs, and they use two separate sets of
info arrays and structures in RX data path function.  Today those
structures are mutually exclusive per RQ type, hence one kind is
allocated on RQ creation according to the RQ type.

For better cache locality and to minimalize the
sizeof(struct mlx5e_rq), in this patch we define them as a union.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c