> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of
> Andrii Staikov
> Sent: Wednesday, November 29, 2023 3:24 PM
> To: intel-wired-...@lists.osuosl.org
> Cc: Loktionov, Aleksandr <aleksandr.loktio...@intel.com>; Kitszel,
> Przemyslaw <przemyslaw.kits...@intel.com>; Sokolowski, Jan
> <jan.sokolow...@intel.com>; Drewek, Wojciech
> <wojciech.dre...@intel.com>; Staikov, Andrii <andrii.stai...@intel.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v1] i40e: Fix VF disable behavior 
> to
> block all traffic
> 
> Currently, if a VF is disabled using the 'ip link set dev $ETHX vf $VF_NUM 
> state
> disable' command, the VF is still able to receive traffic.
> 
> Fix the behavior of the 'ip link set dev $ETHX vf $VF_NUM state disable'
> to completely shutdown the VF's queues making it entirely disabled and not
> able to receive or send any traffic.
> 
> Modify the behavior of the 'ip link set $ETHX vf $VF_NUM state enable'
> command to make a VF do reinitialization bringing the queues back up.
> 
> Co-developed-by: Aleksandr Loktionov <aleksandr.loktio...@intel.com>
> Signed-off-by: Aleksandr Loktionov <aleksandr.loktio...@intel.com>
> Reviewed-by: Jan Sokolowski <jan.sokolow...@intel.com>
> Reviewed-by: Wojciech Drewek <wojciech.dre...@intel.com>
> Reviewed-by: Przemek Kitszel <przemyslaw.kits...@intel.com>
> Signed-off-by: Andrii Staikov <andrii.stai...@intel.com>
> ---
>  .../ethernet/intel/i40e/i40e_virtchnl_pf.c    | 32 +++++++++++++++++++
>  .../ethernet/intel/i40e/i40e_virtchnl_pf.h    |  1 +
>  2 files changed, 33 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> index 37cca484abb8..ced9f5170ce5 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
Tested-by: Rafal Romanowski <rafal.romanow...@intel.com>


_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Reply via email to