]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Add missing afex code
authorYuval Mintz <yuvalmin@broadcom.com>
Tue, 11 Sep 2012 04:34:14 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2012 20:37:52 +0000 (16:37 -0400)
commita2672b4e869e7a684c21918c46116f39ac72cc2a
tree8f26cbb5145f16a4f6bcd209c2ee1f064bade600
parent00ec9e5454406063d30f2ad5d04778f34681bf7d
bnx2x: Add missing afex code

Commit eabf239172cb8dc199ad275e06e41d99b970f45c added afex support but lacked
several logical changes. This lack can cause afex to crash, and also
have a slight effect on other flows (i.e., driver always assumes the Tx ring
has less available buffers than what it actually has).

This patch adds the missing segments, fixing said issues.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Barak Witkowski <barak@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c