]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Fix partial rings feature
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Sun, 24 May 2009 03:17:11 +0000 (03:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2009 07:35:53 +0000 (00:35 -0700)
commitf19e8ef83daf3f173c91017f7d679ff67f271dbb
treeac27575621410056b4ec970db6b233a50600d15b
parent9acf151996835e1257c3ca2276d7647070404a21
mlx4_en: Fix partial rings feature

In case of allocation failure, the actual ring size is rounded down to
nearest power of 2. The remaining descriptors are freed.
The CQ and SRQ are allocated with the actual size and the mask is updated.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_cq.c
drivers/net/mlx4/en_netdev.c
drivers/net/mlx4/en_rx.c