diff --git a/include/ivc_core.h b/include/ivc_core.h index 0ddb5aa..069345e 100644 --- a/include/ivc_core.h +++ b/include/ivc_core.h @@ -28,7 +28,7 @@ /** * @brief Ethernet Maximum IVC BUF */ -#define ETHER_MAX_IVC_BUF 2048 +#define ETHER_MAX_IVC_BUF 2048U /** * @brief IVC maximum arguments diff --git a/include/osi_dma.h b/include/osi_dma.h index 1b141c9..5941c66 100644 --- a/include/osi_dma.h +++ b/include/osi_dma.h @@ -488,11 +488,12 @@ struct osd_dma_ops { /** DMA transmit complete callback */ void (*transmit_complete)(void *priv, void *buffer, nveu64_t dmaaddr, nveu32_t len, - struct osi_txdone_pkt_cx *txdone_pkt_cx); + const struct osi_txdone_pkt_cx + *txdone_pkt_cx); /** DMA receive packet callback */ void (*receive_packet)(void *priv, struct osi_rx_ring *rx_ring, nveu32_t chan, nveu32_t dma_buf_len, - struct osi_rx_pkt_cx *rx_pkt_cx, + const struct osi_rx_pkt_cx *rx_pkt_cx, struct osi_rx_swcx *rx_swcx); /** RX buffer reallocation callback */ void (*realloc_buf)(void *priv, struct osi_rx_ring *rx_ring,