netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Dimitris Michailidis <d.michailidis@fungible.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
	davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v4 3/8] net/funeth: probing and netdev ops
Date: Wed, 5 Jan 2022 17:12:05 +0100	[thread overview]
Message-ID: <YdXDVakWSkQyvlqe@lunn.ch> (raw)
In-Reply-To: <CAOkoqZmxHZ6KTZQPe+w23E_UPYWLNRiU8gVX32EFsNXgyzkucg@mail.gmail.com>

> > > +     if ((notif->link_state | notif->missed_events) & FUN_PORT_FLAG_MAC_DOWN)
> > > +             netif_carrier_off(netdev);
> > > +     if (notif->link_state & FUN_PORT_FLAG_NH_DOWN)
> > > +             netif_dormant_on(netdev);
> > > +     if (notif->link_state & FUN_PORT_FLAG_NH_UP)
> > > +             netif_dormant_off(netdev);
> >
> > What does this do?
> 
> FW may get exclusive access to the ports in some cases and during those times
> host traffic isn't serviced. Changing a port to dormant is its way of
> telling the host
> the port is unavailable though it has link up.

Quoting RFC2863

3.1.12.  New states for IfOperStatus

   Three new states have been added to ifOperStatus: 'dormant',
   'notPresent', and 'lowerLayerDown'.

   The dormant state indicates that the relevant interface is not
   actually in a condition to pass packets (i.e., it is not 'up') but is
   in a "pending" state, waiting for some external event.  For "on-
   demand" interfaces, this new state identifies the situation where the
   interface is waiting for events to place it in the up state.
   Examples of such events might be:

   (1)   having packets to transmit before establishing a connection to
         a remote system;

   (2)   having a remote system establish a connection to the interface
         (e.g. dialing up to a slip-server).

I can see this being valid if your FW is doing 802.1X. But i'm not
sure it is valid for other use cases. What exactly is your firmware
doing which stops it from handling frames?

	Andrew

  reply	other threads:[~2022-01-05 16:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04  6:46 [PATCH net-next v4 0/8] new Fungible Ethernet driver Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 1/8] PCI: add Fungible vendor ID to pci_ids.h Dimitris Michailidis
2022-01-05  2:09   ` Jakub Kicinski
2022-01-04  6:46 ` [PATCH net-next v4 2/8] net/fungible: Add service module for Fungible drivers Dimitris Michailidis
2022-01-05  1:47   ` Jakub Kicinski
2022-01-05  4:28     ` Dimitris Michailidis
2022-01-05  2:09   ` Jakub Kicinski
2022-01-05  4:49     ` Dimitris Michailidis
2022-01-05  6:12       ` Dimitris Michailidis
2022-01-05 17:32         ` Jakub Kicinski
2022-01-06  0:57           ` Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 3/8] net/funeth: probing and netdev ops Dimitris Michailidis
2022-01-05  2:07   ` Jakub Kicinski
2022-01-05 15:52     ` Dimitris Michailidis
2022-01-05 16:12       ` Andrew Lunn [this message]
2022-01-07  0:53         ` Dimitris Michailidis
2022-01-07 13:40           ` Andrew Lunn
2022-01-05 17:46       ` Jakub Kicinski
2022-01-06  8:47         ` Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 4/8] net/funeth: ethtool operations Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 5/8] net/funeth: devlink support Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 6/8] net/funeth: add the data path Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 7/8] net/funeth: add kTLS TX control part Dimitris Michailidis
2022-01-04  6:46 ` [PATCH net-next v4 8/8] net/fungible: Kconfig, Makefiles, and MAINTAINERS Dimitris Michailidis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YdXDVakWSkQyvlqe@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=d.michailidis@fungible.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).