From: Andrew Lunn <andrew@lunn.ch>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: "claudiu.manoil@nxp.com" <claudiu.manoil@nxp.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] gianfar: Add gfar_change_carrier()
Date: Fri, 7 Dec 2018 15:15:27 +0100 [thread overview]
Message-ID: <20181207141527.GP14223@lunn.ch> (raw)
In-Reply-To: <623d112ab5fc2b8d6edc25b43998960703990716.camel@infinera.com>
> Been a bit busy today but now I have played with dormant using ip link and got some odd results:
> # > ifconfig eth0
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 172.20.0.246 netmask 255.255.0.0 broadcast 172.20.255.255
> inet6 fe80::ad9c:b230:1da8:1821 prefixlen 64 scopeid 0x20<link>
> ether 8c:16:45:89:cf:c6 txqueuelen 1000 (Ethernet)
> RX packets 1848903 bytes 736764445 (702.6 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 627462 bytes 222453345 (212.1 MiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
> device interrupt 16 memory 0xdc200000-dc220000
> # > ip link set mode dormant dev eth0
> ping sunet.se
> PING sunet.se (192.36.171.231) 56(84) bytes of data.
> 64 bytes from webc.sunet.se (192.36.171.231): icmp_seq=1 ttl=54 time=2.22 ms
> 64 bytes from webc.sunet.se (192.36.171.231): icmp_seq=2 ttl=54 time=2.17 ms
>
> # > ifconfig eth0
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 172.20.0.246 netmask 255.255.0.0 broadcast 172.20.255.255
> inet6 fe80::ad9c:b230:1da8:1821 prefixlen 64 scopeid 0x20<link>
> ether 8c:16:45:89:cf:c6 txqueuelen 1000 (Ethernet)
> RX packets 1905479 bytes 753549572 (718.6 MiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 648266 bytes 224421617 (214.0 MiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
> device interrupt 16 memory 0xdc200000-dc220000
> still RUNNING ..
>
> #> ip link show eth0
> 5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DORMANT group default qlen
>
> state is still UP ?
>
> # > ip link set state dormant dev eth0
> # > ip link show eth0
> 5: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT mode DORMANT group default qlen 1000
> # > ifconfig eth0
> eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
> ...
>
> Now both state and not RUNNING :)
> but ...
> # ping sunet.se
> PING sunet.se (192.36.171.231) 56(84) bytes of data.
> 64 bytes from webc.sunet.se (192.36.171.231): icmp_seq=1 ttl=54 time=2.43 ms
> 64 bytes from webc.sunet.se (192.36.171.231): icmp_seq=2 ttl=54 time=2.31 ms
>
> I can still ping though. Is this how it is supposed to work ? No sure how state and mode relate to each other either.
I don't actually know. I know some things are supposed to work while
dormant. You should be able to perform 802.1x negotiation, etc.
You might find the people on the wireless list know more. I think it
is used by wpa_supplicant and hostapd during device authentication.
Andrew
next prev parent reply other threads:[~2018-12-07 14:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-06 15:31 [PATCH] gianfar: Add gfar_change_carrier() Joakim Tjernlund
2018-12-06 15:47 ` Andrew Lunn
2018-12-06 16:02 ` Joakim Tjernlund
2018-12-06 16:21 ` Andrew Lunn
2018-12-06 16:31 ` Joakim Tjernlund
2018-12-06 16:54 ` Andrew Lunn
2018-12-06 18:46 ` Joakim Tjernlund
2018-12-06 19:43 ` Andrew Lunn
2018-12-07 14:07 ` Joakim Tjernlund
2018-12-07 14:15 ` Andrew Lunn [this message]
2018-12-07 17:01 ` Joakim Tjernlund
2018-12-07 17:26 ` Andrew Lunn
2018-12-07 20:40 ` Florian Fainelli
2018-12-10 15:37 ` Joakim Tjernlund
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=20181207141527.GP14223@lunn.ch \
--to=andrew@lunn.ch \
--cc=Joakim.Tjernlund@infinera.com \
--cc=claudiu.manoil@nxp.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.