sfxge(4): use MCDIv2 for requests with too long response
Use MCDIv2 for requests with a response size too long for MCDIv1. Required for MC_CMD_MAC_STATS to reports the stats without using DMA. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18103
This commit is contained in:
parent
63cbe8d1d9
commit
641c3370f4
@ -295,7 +295,8 @@ efx_mcdi_request_start(
|
||||
*/
|
||||
if ((max_version >= 2) &&
|
||||
((emrp->emr_cmd > MC_CMD_CMD_SPACE_ESCAPE_7) ||
|
||||
(emrp->emr_in_length > MCDI_CTL_SDU_LEN_MAX_V1))) {
|
||||
(emrp->emr_in_length > MCDI_CTL_SDU_LEN_MAX_V1) ||
|
||||
(emrp->emr_out_length > MCDI_CTL_SDU_LEN_MAX_V1))) {
|
||||
/* Construct MCDI v2 header */
|
||||
hdr_len = sizeof (hdr);
|
||||
EFX_POPULATE_DWORD_8(hdr[0],
|
||||
|
Loading…
Reference in New Issue
Block a user