net: ena: optimise calculations for CQ doorbell
authorSameeh Jubran <sameehj@amazon.com>
Mon, 3 Jun 2019 14:43:27 +0000 (17:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 20:30:38 +0000 (13:30 -0700)
commitd91860989dd4bce582ed6c3647a0d41d6fd895b3
tree972fb43e34ca4d5b5864d0467768bfa9fb78c832
parentcdf449eccc5946d5dd4145b38347874a7423c50d
net: ena: optimise calculations for CQ doorbell

This patch initially checks if CQ doorbell
is needed before proceeding with the calculations.

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