]> 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)
commit36cf8166ba0e83c86e49aa8bd8f67b78e483c66d
tree8f26cbb5145f16a4f6bcd209c2ee1f064bade600
parent48c170f8fd62940cab2e14c8d2d32f9cfbba1e2a
bnx2x: Add missing afex code

Commit 65a3096d55fa62cef098bb1bfb0b73889c683f45 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