[Intel-wired-lan] [PATCH v4 5/5] ice: add switch rule management for DCF
Lu, Nannan
nannan.lu at intel.com
Wed Jun 24 07:47:23 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Haiyue Wang
> Sent: Wednesday, June 24, 2020 3:30 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Zhang, Xiao <xiao.zhang at intel.com>; Xing, Beilei <beilei.xing at intel.com>
> Subject: [Intel-wired-lan] [PATCH v4 5/5] ice: add switch rule management for
> DCF
>
> The PF shall track all the outstanding switch filters (filter IDs to be
> precise) added by the DCF.
>
> Upon a VF reset event, the PF shall clear all outstanding switch filters for the
> given VF. Upon completion of either VF or PF reset, the PF shall skip replay of
> filters that were added by the DCF. The PF shall however continue to replay the
> filters that were not added by DCF for the VF(s).
>
> If the trust mode of the DCF is taken away without the DCF gracefully
> relinquishing the DCF functionality (by way appropriate virtchnl message
> exchanges), then the PF shall remove all switch filters that were added by the
> DCF. The PF shall transition back from DCF mode to regular mode, the VF shall
> be treated as any other untrusted VF, and the PF will reset the VF.
>
> If a designated DCF requests AVF functionality from the same VF (VF-ID) without
> the DCF gracefully relinquishing the DCF functionality first (by way appropriate
> virtchnl message exchanges), the PF shall remove all the switch filters that were
> added by the DCF.
>
> Signed-off-by: Xiao Zhang <xiao.zhang at intel.com>
> Signed-off-by: Beilei Xing <beilei.xing at intel.com>
> Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_dcf.c | 713 ++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_dcf.h | 41 +
> drivers/net/ethernet/intel/ice/ice_switch.c | 27 +-
> drivers/net/ethernet/intel/ice/ice_switch.h | 37 +-
> drivers/net/ethernet/intel/ice/ice_type.h | 9 +
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c | 40 +
> 6 files changed, 834 insertions(+), 33 deletions(-)
>
Tested-by: Nannan Lu <nannan.lu at intel.com>
> --
> 2.27.0
>
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan at osuosl.org
> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
More information about the Intel-wired-lan
mailing list