net: ena: Add first_interrupt field to napi struct
authorSameeh Jubran <sameehj@amazon.com>
Tue, 10 Dec 2019 13:12:14 +0000 (15:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Dec 2019 01:14:01 +0000 (17:14 -0800)
commit913b0bfd6c859aaf1735e1c8c69731e1d5359d31
treeb79569d682e7e8c7c549193a2013ccec8adc16cf
parent548c4940b9f1f527f81509468dd60b61418880b6
net: ena: Add first_interrupt field to napi struct

The first_interrupt field is accessed in ena_intr_msix_io() upon
receiving an interrupt.The rx_ring and tx_ring fields of napi can
be NULL when receiving interrupt for xdp queues. This patch fixes
the issue by moving the field to the ena_napi struct.

Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h