]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igc: Allow hot-swapping XDP program
authorSong Yoong Siang <yoong.siang.song@intel.com>
Mon, 6 Jan 2025 22:19:15 +0000 (14:19 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 02:14:09 +0000 (18:14 -0800)
commit484d3675f2aa7710a4092411a203b719486e8666
treeb8c67caad28c7249a8855aeffa674f52c9aa6fdd
parentf8e284a02afc9797d5f626fc7dfb6f7d381d4e77
igc: Allow hot-swapping XDP program

Currently, the driver would always close and reopen the network interface
when setting/removing the XDP program, regardless of the presence of XDP
resources. This could cause unnecessary disruptions.

To avoid this, introduces a check to determine if there is a need to
close and reopen the interface, allowing for seamless hot-swapping of
XDP programs.

Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250106221929.956999-8-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/igc/igc_xdp.c