Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bnx2x: fix in 57710 self-test

Bug fix: Use the last unicast entry in CAM in bnx2x_test_int(). Relevant for 57710 only.

Author: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Vladislav Zolotarov and committed by
David S. Miller
0c43f43f d43a7e67

+2 -1
+2 -1
drivers/net/bnx2x_main.c
··· 10433 10433 10434 10434 config->hdr.length = 0; 10435 10435 if (CHIP_IS_E1(bp)) 10436 - config->hdr.offset = (BP_PORT(bp) ? 32 : 0); 10436 + /* use last unicast entries */ 10437 + config->hdr.offset = (BP_PORT(bp) ? 63 : 31); 10437 10438 else 10438 10439 config->hdr.offset = BP_FUNC(bp); 10439 10440 config->hdr.client_id = bp->fp->cl_id;