]> git.baikalelectronics.ru Git - kernel.git/commit
gve: Correct available tx qpl check
authorCatherine Sullivan <csully@google.com>
Wed, 6 Oct 2021 02:42:19 +0000 (19:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2021 14:04:26 +0000 (15:04 +0100)
commitd03477ee10f4bc35d3573cf1823814378ef2dca2
treebad860642092e942bd11cef85e443126a719ec98
parent9997080df0350ac69988ff92c5a6a0bd0b6bf9bc
gve: Correct available tx qpl check

The qpl_map_size is rounded up to a multiple of sizeof(long), but the
number of qpls doesn't have to be.

Fixes: f5cedc84a30d2 ("gve: Add transmit and receive support")
Signed-off-by: Catherine Sullivan <csully@google.com>
Signed-off-by: Jeroen de Borst <jeroendb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve.h