[PATCH v3] net/ice: add source prune configuration API

Bruce Richardson bruce.richardson at intel.com
Wed Nov 5 10:13:42 CET 2025


On Sun, Nov 02, 2025 at 01:19:19AM +0000, Anurag Mandal wrote:
> Source prune is disabled by default to support
> VRRP advertisement packets in a vsi of ice PF.
> There is no way to enable source prune itself.
> 
> This patch adds a PMD specific API to enable/disable
> source prune for all PF ports or for an individual PF port.
> 
> Tested the following with VRRP advertisement packets in a
> vsi of ice PF:
> 1. Source prune default mode.
> 2. Enable source prune for an individual PF port.
> 3. Disable source prune for an individual PF port.
> 4. Enable source prune for all PF ports.
> 5. Disable source prune for all PF ports.
> 
> Fixes: 6f866eb93e79 ("net/ice: fix dropped packets when using VRRP")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
>  drivers/net/intel/ice/ice_ethdev.c  | 72 +++++++++++++++++++++++
>  drivers/net/intel/ice/ice_ethdev.h  | 16 ++++++
>  drivers/net/intel/ice/ice_testpmd.c | 88 +++++++++++++++++++++++++++++
>  3 files changed, 176 insertions(+)
>
Rather than having a new private API for this, would a device arg (devarg)
passed on the commandline be a better choice? Private APIs are not really
nice in DPDK, and for this feature I can't see it being something that
needs enabling/disabling at runtime by apps. Just having it as a device
setting, set at init should probably work.

/Bruce 


More information about the dev mailing list