> -----Original Message-----
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org]
> On Behalf Of Or Gerlitz
> Sent: Wednesday, October 03, 2018 10:23 AM
> To: Kirsher, Jeffrey T <jeffrey.t.kirs...@intel.com>
> Cc: David Miller <da...@davemloft.net>; Venkataramanan, Anirudh
> <anirudh.venkatarama...@intel.com>; Linux Netdev List
> <netdev@vger.kernel.org>; nhor...@redhat.com; sassm...@redhat.com
> Subject: Re: [net-next 08/15] ice: Notify VF of link status change
> 
> On Wed, Oct 3, 2018 at 6:46 PM Jeff Kirsher <jeffrey.t.kirs...@intel.com>
> wrote:
> > From: Anirudh Venkataramanan <anirudh.venkatarama...@intel.com>
> >
> > When PF gets a link status change event, notify the VFs of the same.
> 
> so you always want to block east/west traffic when the uplink is down? why?
> 
> The correct approach is to have vf/vport e-switch representor on the host, 
> and if
> the host admin puts down the administrative link of the rep -- the vf 
> operational
> link (carrier) goes down.

This code, notifying VFs of PF link event does not include scenario for 
e-switch VF port representor - the function will be expanded in the separate 
patches for switchdev supports...
That being said, this is design to notify VF when PF link changes, may be due 
to reset, administrative link down, forced link speed... and yes, this will 
stop east/west traffic, but admin can force VFs (associated with that PF) link 
up on the host with "ip" command, and east/west traffic will resume.
In the future patch for VF port representor -  if the host admin puts down the 
administrative link of the rep -- the vf operational link (carrier) goes 
down... just as you said.

Please let us know if you have additional question.

Thanks,
~Akeem

Reply via email to