]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
eth: gve: use appropriate helper to set xdp_features
authorJakub Kicinski <kuba@kernel.org>
Mon, 6 Jan 2025 18:02:10 +0000 (10:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 02:07:14 +0000 (18:07 -0800)
commitdb78475ba0d3c66d430f7ded2388cc041078a542
tree306204d4d29218ca526890f58a0864866d41d568
parentcb358ff94154774d031159b018adf45e17673941
eth: gve: use appropriate helper to set xdp_features

Commit f85949f98206 ("xdp: add xdp_set_features_flag utility routine")
added routines to inform the core about XDP flag changes.
GVE support was added around the same time and missed using them.

GVE only changes the flags on error recover or resume.
Presumably the flags may change during resume if VM migrated.
User would not get the notification and upper devices would
not get a chance to recalculate their flags.

Fixes: 75eaae158b1b ("gve: Add XDP DROP and TX support for GQI-QPL format")
Reviewed-By: Jeroen de Borst <jeroendb@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250106180210.1861784-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_main.c