> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Andrii Staikov > Sent: Wednesday, November 29, 2023 3:24 PM > To: [email protected] > Cc: Loktionov, Aleksandr <[email protected]>; Kitszel, > Przemyslaw <[email protected]>; Sokolowski, Jan > <[email protected]>; Drewek, Wojciech > <[email protected]>; Staikov, Andrii <[email protected]> > 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 <[email protected]> > Signed-off-by: Aleksandr Loktionov <[email protected]> > Reviewed-by: Jan Sokolowski <[email protected]> > Reviewed-by: Wojciech Drewek <[email protected]> > Reviewed-by: Przemek Kitszel <[email protected]> > Signed-off-by: Andrii Staikov <[email protected]> > --- > .../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 <[email protected]> _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
