net/iavf: enable Rx timestamp on flex descriptor
[dpdk.git] / drivers / net / sfc / sfc_mcdi.c
index 644dd9c..65e5e38 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
- * Copyright(c) 2019-2020 Xilinx, Inc.
+ * Copyright(c) 2019-2021 Xilinx, Inc.
  * Copyright(c) 2016-2019 Solarflare Communications Inc.
  *
  * This software was jointly developed between OKTET Labs (under contract
@@ -19,9 +19,10 @@ static int
 sfc_mcdi_dma_alloc(void *cookie, const char *name, size_t len,
                   efsys_mem_t *esmp)
 {
-       const struct sfc_adapter *sa = cookie;
+       struct sfc_adapter *sa = cookie;
 
-       return sfc_dma_alloc(sa, name, 0, len, sa->socket_id, esmp);
+       return sfc_dma_alloc(sa, name, 0, EFX_NIC_DMA_ADDR_MCDI_BUF, len,
+                            sa->socket_id, esmp);
 }
 
 static sfc_efx_mcdi_dma_free_cb sfc_mcdi_dma_free;