Commit 97cbf3d
bnxt_en: only set dev->queue_mgmt_ops if supported by FW
The queue API calls bnxt_hwrm_vnic_update() to stop/start the flow of
packets, which can only properly flush the pipeline if FW indicates
support.
Add a macro BNXT_SUPPORTS_QUEUE_API that checks for the required flags
and only set queue_mgmt_ops if true.
Signed-off-by: David Wei <dw@davidwei.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent b9d2956 commit 97cbf3d
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15718 | 15718 | | |
15719 | 15719 | | |
15720 | 15720 | | |
15721 | | - | |
15722 | 15721 | | |
15723 | 15722 | | |
15724 | 15723 | | |
| |||
15899 | 15898 | | |
15900 | 15899 | | |
15901 | 15900 | | |
| 15901 | + | |
| 15902 | + | |
15902 | 15903 | | |
15903 | 15904 | | |
15904 | 15905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
2454 | 2457 | | |
2455 | 2458 | | |
2456 | 2459 | | |
| |||
0 commit comments