diff options
author | 2024-08-01 13:56:19 -0700 | |
---|---|---|
committer | 2024-08-02 16:50:27 -0700 | |
commit | fba917b169bea5f8f2ee300e19d5f7a6341a5251 (patch) | |
tree | b943c03fdd522f1ce4cdaf6ebe3863364ea1b58b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net: pse-pd: tps23881: Fix the device ID check (diff) | |
download | wireguard-linux-fba917b169bea5f8f2ee300e19d5f7a6341a5251.tar.xz wireguard-linux-fba917b169bea5f8f2ee300e19d5f7a6341a5251.zip |
gve: Fix use of netif_carrier_ok()
GVE driver wrongly relies on netif_carrier_ok() to check the
interface administrative state when resources are being
allocated/deallocated for queue(s). netif_carrier_ok() needs
to be replaced with netif_running() for all such cases.
Administrative state is the result of "ip link set dev <dev>
up/down". It reflects whether the administrator wants to use
the device for traffic and the corresponding resources have
been allocated.
Fixes: 5f08cd3d6423 ("gve: Alloc before freeing when adjusting queues")
Signed-off-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Shailend Chand <shailend@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240801205619.987396-1-pkaligineedi@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions