• Shannon Nelson's avatar
    ionic: contiguous memory for notifyq · 9576a36c
    Shannon Nelson authored
    The event notification queue is set up a little differently in the
    NIC and so the notifyq q and cq descriptor structures need to be
    contiguous, which got missed in an earlier patch that separated
    out the q and cq descriptor allocations.  That patch was aimed at
    making the big tx and rx descriptor queue allocations easier to
    manage - the notifyq is much smaller and doesn't need to be split.
    This patch simply adds an if/else and slightly different code for
    the notifyq descriptor allocation.
    
    Fixes: ea5a8b09 ("ionic: reduce contiguous memory allocation requirement")
    Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9576a36c
ionic_lif.c 83.5 KB