From 030089b70bf51fe86af1020a51882c49ac0525b3 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Tue, 20 Mar 2018 11:40:55 +0100 Subject: [PATCH] linux/ixgbevf: don't assume that _RXBUFFER_2048 is defined --- LINUX/ixgbe_netmap_linux.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LINUX/ixgbe_netmap_linux.h b/LINUX/ixgbe_netmap_linux.h index db16c9f7d..4dfa5d5f4 100644 --- a/LINUX/ixgbe_netmap_linux.h +++ b/LINUX/ixgbe_netmap_linux.h @@ -693,7 +693,11 @@ static unsigned nm_ixgbe_rx_buf_maxsize(struct NM_IXGBE_ADAPTER *adapter) { #if defined(NM_IXGBEVF) +#ifdef IXGBEVF_RXBUFFER_2048 return IXGBEVF_RXBUFFER_2048; +#else + return 2048; +#endif /* IXGBEVF_RXBUFFER_2048 */ #elif defined(NETMAP_LINUX_HAVE_IXGBE_RX_BUFSZ) return ixgbe_rx_bufsz(NM_IXGBE_RX_RING(adapter, 0)); #else /* !NETMAP_LINUX_HAVE_IXGBE_RX_BUFSZ */