* Missing iproute2 support for 802.1ad @ 2013-06-20 21:17 Michael Leun [not found] ` <CAKoUArm0w70TZvaZSMa1C9vAj+UXsMkza7XTBX0Vq-7B3xrFLA@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Michael Leun @ 2013-06-20 21:17 UTC (permalink / raw) To: kaber, shemminger; +Cc: netdev, linux-kernel 2013-04-19 12:04:31 GMT kaber@trash.net wrote: > Add support for 802.1ad VLAN devices. This mainly consists of checking > for > ETH_P_8021AD in addition to ETH_P_8021Q in a couple of places and check > offloading capabilities based on the used protocol. > Configuration is done using "ip link": > # ip link add link eth0 eth0.1000 \ > type vlan proto 802.1ad id 1000 > # ip link add link eth0.1000 eth0.1000.1000 \ > type vlan proto 802.1q id 1000 I fear, that does not work: lara:/home/ml # ip link add link eth0 eth0.1000 type vlan proto 802.1ad id 1000 vlan: what is "proto"? Usage: ... vlan id VLANID [ FLAG-LIST ] [ ingress-qos-map QOS-MAP ] [ egress-qos-map QOS-MAP ] [...] ip does not seem to know about proto. This does not have changed in git either. I've seen there was an patch to add this around somewhen in 2011, but it does not seem to have made it. Or did I miss something? -- MfG, Michael Leun ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAKoUArm0w70TZvaZSMa1C9vAj+UXsMkza7XTBX0Vq-7B3xrFLA@mail.gmail.com>]
* Re: Missing iproute2 support for 802.1ad [not found] ` <CAKoUArm0w70TZvaZSMa1C9vAj+UXsMkza7XTBX0Vq-7B3xrFLA@mail.gmail.com> @ 2013-06-21 13:52 ` Rami Rosen 2013-06-21 15:37 ` Michael Leun 0 siblings, 1 reply; 4+ messages in thread From: Rami Rosen @ 2013-06-21 13:52 UTC (permalink / raw) To: Michael Leun Cc: Patrick McHardy, shemminger, Netdev, linux-kernel@vger.kernel.org Hello,Michael, You are right. It is probably a matter of synchronization between iproute2 git version and kernel version. This patch by Patrick McHardy, titled: "add 802.1ad support", seems to do the job: http://www.spinics.net/lists/netdev/msg233587.html But it was not integrated to iproute2 git tree. But don't be wrong: if you look into this patch, you will see that the first addition of it was integrated but as a part of a different patch: commit 79e9a1db11db494eade7bd6917a34f383c0774e3 Author: Stephen Hemminger <stephen@networkplumber.org> titled "Update headers to 3.10". But you should look at the rest of the patch of Patrick McHardy ("add 802.1ad support"), it does not appear in the latest git tree of iproute2. Please look for example in ip/iplink_vlan.c b/ip/iplink_vlan.c in the explain() method and compare to the above mentioned patch. Regards, Rami Rosen http://ramirose.wix.com/ramirosen On Fri, Jun 21, 2013 at 4:49 PM, Rami Rosen <roszenrami@gmail.com> wrote: > Hello,Michael, > > You are right. > > It is probably a matter of synchronization between iproute2 git version > and kernel version. > > This patch by Patrick McHardy, titled: > "add 802.1ad support", seems to do the job: > http://www.spinics.net/lists/netdev/msg233587.html > > But it was not integrated to iproute2 git tree. > > But don't be wrong: if you look into this patch, you will see that the first > addition of it was integrated but as a part of a different patch: > commit 79e9a1db11db494eade7bd6917a34f383c0774e3 > Author: Stephen Hemminger <stephen@networkplumber.org> > titled "Update headers to 3.10". > > But you should look at the rest of the patch of Patrick McHardy ("add > 802.1ad support"), it does not appear in the latest git tree of iproute2. > > Please look for example in ip/iplink_vlan.c b/ip/iplink_vlan.c > in the explain() method and compare to the above mentioned patch. > > > Regards, > Rami Rosen > http://ramirose.wix.com/ramirosen > > > > On Fri, Jun 21, 2013 at 12:17 AM, Michael Leun > <lkml20130126@newton.leun.net> wrote: >> >> >> >> 2013-04-19 12:04:31 GMT kaber@trash.net wrote: >> >> > Add support for 802.1ad VLAN devices. This mainly consists of checking >> > for >> > ETH_P_8021AD in addition to ETH_P_8021Q in a couple of places and check >> > offloading capabilities based on the used protocol. >> >> > Configuration is done using "ip link": >> >> > # ip link add link eth0 eth0.1000 \ >> > type vlan proto 802.1ad id 1000 >> > # ip link add link eth0.1000 eth0.1000.1000 \ >> > type vlan proto 802.1q id 1000 >> >> I fear, that does not work: >> >> lara:/home/ml # ip link add link eth0 eth0.1000 type vlan proto 802.1ad id >> 1000 >> vlan: what is "proto"? >> Usage: ... vlan id VLANID [ FLAG-LIST ] >> [ ingress-qos-map QOS-MAP ] [ egress-qos-map >> QOS-MAP ] >> [...] >> >> ip does not seem to know about proto. This does not have changed in >> git either. >> >> I've seen there was an patch to add this around somewhen in 2011, but >> it does not seem to have made it. >> >> Or did I miss something? >> >> -- >> MfG, >> >> Michael Leun >> >> -- >> To unsubscribe from this list: send the line "unsubscribe netdev" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Missing iproute2 support for 802.1ad 2013-06-21 13:52 ` Rami Rosen @ 2013-06-21 15:37 ` Michael Leun 2013-06-21 19:57 ` Michael Leun 0 siblings, 1 reply; 4+ messages in thread From: Michael Leun @ 2013-06-21 15:37 UTC (permalink / raw) To: Rami Rosen, Patrick McHardy Cc: shemminger, Netdev, linux-kernel@vger.kernel.org Hello Rami, On Fri, 21 Jun 2013 16:52:41 +0300 Rami Rosen <roszenrami@gmail.com> wrote: > This patch by Patrick McHardy, titled: > "add 802.1ad support", seems to do the job: > http://www.spinics.net/lists/netdev/msg233587.html thank you very much for that link - I'm not subscribed to netdev and that searches on web archives sometimes do not seem to work very well. I only found that patches from 2011. OK, when applying that patch to iproute2 git the if_link.h hunk expectedly fails, but the rest applies. But, unfortunately the result is not what I would expect: ./ip link add link veth0 veth0.1000 type vlan proto 802.1ad id 1000 ./ip link add link veth0.1000 veth0.1000.1000 type vlan proto 802.1q id 1000 ifconfig veth0.1000.1000 192.168.123.1/24 ping 192.168.123.2 tcpdump -i veth0 -n 17:27:41.067431 4e:06:ea:bc:87:38 > 8e:42:eb:bd:cc:f2, ethertype 802.1Q (0x8100), length 106: vlan 1000, p 0, ethertype 802.1Q, vlan 1000, p 0, ethertype IPv4, 192.168.123.1 > 192.168.123.2: ICMP echo request, id 15754, seq 1, length 64 17:27:41.067453 8e:42:eb:bd:cc:f2 > 4e:06:ea:bc:87:38, ethertype 802.1Q (0x8100), length 106: vlan 1000, p 0, ethertype 802.1Q, vlan 1000, p 0, ethertype IPv4, 192.168.123.2 > 192.168.123.1: ICMP echo reply, id 15754, seq 1, length 64 Both have ether type 0x8100, the first one should have 0x88a8, or did I get something wrong? (Note: veth1 is in a different network namespace and set up like veth0 above) I didn't have much time yet to look into if I can find an explanation myself... Best Regards, Michael > Hello,Michael, > > You are right. > > It is probably a matter of synchronization between iproute2 git > version and kernel version. > > This patch by Patrick McHardy, titled: > "add 802.1ad support", seems to do the job: > http://www.spinics.net/lists/netdev/msg233587.html > > But it was not integrated to iproute2 git tree. > > But don't be wrong: if you look into this patch, you will see that the > first addition of it was integrated but as a part of a different > patch: > commit 79e9a1db11db494eade7bd6917a34f383c0774e3 > Author: Stephen Hemminger <stephen@networkplumber.org> > titled "Update headers to 3.10". > > But you should look at the rest of the patch of Patrick McHardy ("add > 802.1ad support"), it does not appear in the latest git tree of > iproute2. > > Please look for example in ip/iplink_vlan.c b/ip/iplink_vlan.c > in the explain() method and compare to the above mentioned patch. > > > Regards, > Rami Rosen > http://ramirose.wix.com/ramirosen > > On Fri, Jun 21, 2013 at 4:49 PM, Rami Rosen <roszenrami@gmail.com> > wrote: > > Hello,Michael, > > > > You are right. > > > > It is probably a matter of synchronization between iproute2 git > > version and kernel version. > > > > This patch by Patrick McHardy, titled: > > "add 802.1ad support", seems to do the job: > > http://www.spinics.net/lists/netdev/msg233587.html > > > > But it was not integrated to iproute2 git tree. > > > > But don't be wrong: if you look into this patch, you will see that > > the first addition of it was integrated but as a part of a > > different patch: commit 79e9a1db11db494eade7bd6917a34f383c0774e3 > > Author: Stephen Hemminger <stephen@networkplumber.org> > > titled "Update headers to 3.10". > > > > But you should look at the rest of the patch of Patrick McHardy > > ("add 802.1ad support"), it does not appear in the latest git tree > > of iproute2. > > > > Please look for example in ip/iplink_vlan.c b/ip/iplink_vlan.c > > in the explain() method and compare to the above mentioned patch. > > > > > > Regards, > > Rami Rosen > > http://ramirose.wix.com/ramirosen > > > > > > > > On Fri, Jun 21, 2013 at 12:17 AM, Michael Leun > > <lkml20130126@newton.leun.net> wrote: > >> > >> > >> > >> 2013-04-19 12:04:31 GMT kaber@trash.net wrote: > >> > >> > Add support for 802.1ad VLAN devices. This mainly consists of > >> > checking for > >> > ETH_P_8021AD in addition to ETH_P_8021Q in a couple of places > >> > and check offloading capabilities based on the used protocol. > >> > >> > Configuration is done using "ip link": > >> > >> > # ip link add link eth0 eth0.1000 \ > >> > type vlan proto 802.1ad id 1000 > >> > # ip link add link eth0.1000 eth0.1000.1000 \ > >> > type vlan proto 802.1q id 1000 > >> > >> I fear, that does not work: > >> > >> lara:/home/ml # ip link add link eth0 eth0.1000 type vlan proto > >> 802.1ad id 1000 > >> vlan: what is "proto"? > >> Usage: ... vlan id VLANID [ FLAG-LIST ] > >> [ ingress-qos-map QOS-MAP ] > >> [ egress-qos-map QOS-MAP ] > >> [...] > >> > >> ip does not seem to know about proto. This does not have changed > >> in git either. > >> > >> I've seen there was an patch to add this around somewhen in 2011, > >> but it does not seem to have made it. > >> > >> Or did I miss something? > >> > >> -- > >> MfG, > >> > >> Michael Leun > >> > >> -- > >> To unsubscribe from this list: send the line "unsubscribe netdev" > >> in the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Missing iproute2 support for 802.1ad 2013-06-21 15:37 ` Michael Leun @ 2013-06-21 19:57 ` Michael Leun 0 siblings, 0 replies; 4+ messages in thread From: Michael Leun @ 2013-06-21 19:57 UTC (permalink / raw) To: Netdev Cc: Rami Rosen, Patrick McHardy, shemminger, linux-kernel@vger.kernel.org On Fri, 21 Jun 2013 17:37:44 +0200 Michael Leun <lkml20130126@newton.leun.net> wrote: > On Fri, 21 Jun 2013 16:52:41 +0300 > Rami Rosen <roszenrami@gmail.com> wrote: > > > This patch by Patrick McHardy, titled: > > "add 802.1ad support", seems to do the job: > > http://www.spinics.net/lists/netdev/msg233587.html > OK, when applying that patch to iproute2 git the if_link.h hunk > expectedly fails, but the rest applies. Meanwhile Stephen has grabbed that patch and committed it to iproute2 git - thank you very much. > But, unfortunately the result is not what I would expect: [...] > Both have ether type 0x8100, the first one should have 0x88a8, or did > I get something wrong? This either was an problem with veth or with namespace or with both of them. With real ethernet I get the same result Patrick has shown in his 802.1aq commit message. -- MfG, Michael Leun ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-21 19:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-20 21:17 Missing iproute2 support for 802.1ad Michael Leun [not found] ` <CAKoUArm0w70TZvaZSMa1C9vAj+UXsMkza7XTBX0Vq-7B3xrFLA@mail.gmail.com> 2013-06-21 13:52 ` Rami Rosen 2013-06-21 15:37 ` Michael Leun 2013-06-21 19:57 ` Michael Leun
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).