]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70d147f22eb4f67541df5230cef2b280c1842a27
tree66d309bc87ccf091d265fa207a64b9592f4f321c
parent3c6e6b9e23bae50f90bd331f1b25ee65a8de87e3
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