Skip to content

Commit

Permalink
linux/ixgbevf: don't assume that _RXBUFFER_2048 is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppelettieri committed Mar 20, 2018
1 parent 478379f commit 030089b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LINUX/ixgbe_netmap_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 030089b

Please sign in to comment.