Re: [Intel-wired-lan] [PATCH iwl-next 1/1] igc: Allow hot-swapping XDP program

From: Avigail Dahan
Date: Wed Nov 27 2024 - 03:34:35 EST




On 18/11/2024 6:15, Song Yoong Siang wrote:
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@xxxxxxxxx>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
---
drivers/net/ethernet/intel/igc/igc_xdp.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Tested-by: Avigail Dahan <avigailx.dahan@xxxxxxxxx>