]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: contiguous memory for notifyq
authorShannon Nelson <snelson@pensando.io>
Thu, 1 Oct 2020 16:22:39 +0000 (09:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 23:30:01 +0000 (16:30 -0700)
commit69febeb6a8235684f193cffcd0380b638cd7c297
tree2cbd663292236c313d04adfd2c1de0edec558b6c
parent92fdadf31ed81e1c901eb200be4186ab9a75f82b
ionic: contiguous memory for notifyq

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: aacce98cacbd ("ionic: reduce contiguous memory allocation requirement")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c