]> 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)
commit9804e53852cbce23508def0078c49fdd67f1b1e2
tree66d309bc87ccf091d265fa207a64b9592f4f321c
parent82a34336b384747f2b7c80bae7133d4f1fb88cfd
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