Commit cfcab3b
bnxt_en: Fix occasional ethtool -t loopback test failures
In the current code, we setup the port to PHY or MAC loopback mode
and then transmit a test broadcast packet for the loopback test. This
scheme fails sometime if the port is shared with management firmware
that can also send packets. The driver may receive the management
firmware's packet and the test will fail when the contents don't
match the test packet.
Change the test packet to use it's own MAC address as the destination
and setup the port to only receive it's own MAC address. This should
filter out other packets sent by management firmware.
Fixes: 91725d8 ("bnxt_en: Add PHY loopback to ethtool self-test.")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 6758f93 commit cfcab3b
File tree
3 files changed
+9
-1
lines changed- drivers/net/ethernet/broadcom/bnxt
3 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8639 | 8639 | | |
8640 | 8640 | | |
8641 | 8641 | | |
| 8642 | + | |
| 8643 | + | |
| 8644 | + | |
8642 | 8645 | | |
8643 | 8646 | | |
8644 | 8647 | | |
| |||
8659 | 8662 | | |
8660 | 8663 | | |
8661 | 8664 | | |
| 8665 | + | |
8662 | 8666 | | |
8663 | 8667 | | |
8664 | 8668 | | |
| |||
10335 | 10339 | | |
10336 | 10340 | | |
10337 | 10341 | | |
| 10342 | + | |
10338 | 10343 | | |
10339 | 10344 | | |
| 10345 | + | |
10340 | 10346 | | |
10341 | 10347 | | |
10342 | 10348 | | |
| |||
10357 | 10363 | | |
10358 | 10364 | | |
10359 | 10365 | | |
| 10366 | + | |
10360 | 10367 | | |
10361 | 10368 | | |
10362 | 10369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
| 1924 | + | |
1924 | 1925 | | |
1925 | 1926 | | |
1926 | 1927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3458 | 3458 | | |
3459 | 3459 | | |
3460 | 3460 | | |
3461 | | - | |
| 3461 | + | |
3462 | 3462 | | |
3463 | 3463 | | |
3464 | 3464 | | |
| |||
0 commit comments