diff options
author | Ido Shamay <idos@mellanox.com> | 2015-02-03 10:57:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 19:17:45 -0500 |
commit | b110d2ce490f990af6985fbae619fde5ae4cc46f (patch) | |
tree | a4cc4c1c4e78ef740289ad943fbef88b2bd0a424 /drivers/net/ethernet | |
parent | 1c755cc5be5023c9523d558de0c507316efa6c62 (diff) |
net/mlx4_en: Print page allocator information
After Initialization of page_alloc, print actual allocated page
size and number of frags it contains. prints is done only when drv
message level is set on the interface.
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_rx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index 2ba5d368edce..30a2203a7cd1 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c | |||
@@ -162,6 +162,10 @@ static int mlx4_en_init_allocator(struct mlx4_en_priv *priv, | |||
162 | if (mlx4_alloc_pages(priv, &ring->page_alloc[i], | 162 | if (mlx4_alloc_pages(priv, &ring->page_alloc[i], |
163 | frag_info, GFP_KERNEL | __GFP_COLD)) | 163 | frag_info, GFP_KERNEL | __GFP_COLD)) |
164 | goto out; | 164 | goto out; |
165 | |||
166 | en_dbg(DRV, priv, " frag %d allocator: - size:%d frags:%d\n", | ||
167 | i, ring->page_alloc[i].page_size, | ||
168 | atomic_read(&ring->page_alloc[i].page->_count)); | ||
165 | } | 169 | } |
166 | return 0; | 170 | return 0; |
167 | 171 | ||