[Intel-wired-lan] [net-next, v7 5/5] ice: add switch rule management for DCF
Bowers, AndrewX
andrewx.bowers at intel.com
Wed Jul 1 16:48:28 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Haiyue Wang
> Sent: Tuesday, June 30, 2020 6:26 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] [net-next, v7 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 | 16 +-
> drivers/net/ethernet/intel/ice/ice_switch.h | 27 +-
> drivers/net/ethernet/intel/ice/ice_type.h | 9 +
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c | 40 +
> 6 files changed, 821 insertions(+), 25 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list