gve: Fix case where desc_cnt and data_cnt can get out of sync
authorCatherine Sullivan <csully@google.com>
Thu, 1 Aug 2019 23:07:31 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Aug 2019 20:18:53 +0000 (13:18 -0700)
commit438b43bdb95d3189e0098919f321c014ed71f410
tree078c6c0e2af1aab70dbe603dac2815355917a3cb
parentcff6a327d78b05c98e0d1c4be77225ea2c0bfe8e
gve: Fix case where desc_cnt and data_cnt can get out of sync

desc_cnt and data_cnt should always be equal. In the case of a dropped
packet desc_cnt was still getting updated (correctly), data_cnt
was not. To eliminate this bug and prevent it from recurring this
patch combines them into one ring level cnt.

Signed-off-by: Catherine Sullivan <csully@google.com>
Reviewed-by: Sagi Shahar <sagis@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_ethtool.c
drivers/net/ethernet/google/gve/gve_rx.c