]> 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)
commit1f3e7432bf564a2289e0207876cc580e8c00f767
tree2cbd663292236c313d04adfd2c1de0edec558b6c
parent572272b429d227e9e31afe137264e54ba5e277f2
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: 96905689bb8e ("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