]> git.dujemihanovic.xyz Git - linux.git/commit
gve: Make gve_turn(up|down) ignore stopped queues
authorShailend Chand <shailend@google.com>
Wed, 1 May 2024 23:25:43 +0000 (23:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2024 13:35:34 +0000 (14:35 +0100)
commit5abc37bdcbc5a32f7c5cb21f5c0334cbf0e81752
treea1a9e27c66a9945c803e8c12f7242b755d8052d0
parent242f30fe692e5f6407a27a3e9b64f23c9c9b5c83
gve: Make gve_turn(up|down) ignore stopped queues

Currently the queues are either all live or all dead, toggling from one
state to the other via the ndo open and stop hooks. The future addition
of single-queue ndo hooks changes this, and thus gve_turnup and
gve_turndown should evolve to account for a state where some queues are
live and some aren't.

Tested-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Signed-off-by: Shailend Chand <shailend@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_main.c