Commit 8e6cc90
bnxt_en: Fix ethtool selftest output in one of the failure cases
When RDMA driver is loaded, running offline self test is not
supported and driver returns failure early. But it is not clearing
the input buffer and hence the application prints some junk
characters for individual test results.
Fix it by clearing the buffer before returning.
Fixes: 895621f ("bnxt_en: Don't support offline self test when RoCE driver is loaded")
Reviewed-by: Somnath Kotur <[email protected]>
Signed-off-by: Kalesh AP <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 9ab7a70 commit 8e6cc90
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4991 | 4991 | | |
4992 | 4992 | | |
4993 | 4993 | | |
| 4994 | + | |
4994 | 4995 | | |
4995 | 4996 | | |
4996 | 4997 | | |
4997 | 4998 | | |
4998 | 4999 | | |
4999 | 5000 | | |
5000 | 5001 | | |
5001 | | - | |
5002 | 5002 | | |
5003 | 5003 | | |
5004 | 5004 | | |
| |||
0 commit comments