Bug 419671
Summary: | ip tunnel can't be bound to another device | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marcela Mašláňová <mmaslano> | ||||
Component: | kernel | Assignee: | Michal Schmidt <mschmidt> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | cebbert, davej, kmcmartin, pdwyer, tjanouse | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-12-14 12:18:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 437410 | ||||||
Attachments: |
|
Description
Marcela Mašláňová
2007-12-11 12:48:58 UTC
Our short investigation showed that the SIOCCHGTUNNEL case in net/ipv6/sit.c:ipip6_tunnel_ioctl does not care about the p->link at all. And it's probably the same for ipip and gre. I took a look at net/ipv4/ipip.c (this one is relevant for the provided testcase). Tomas, you're right that the handler for SIOCCHGTUNNEL ioctl ignores p.link completely. I have a patch to allow re-binding the tunnel to another device. It also recalculates the MTU of the tunnel from the known MTU of the newly bound device. I believe it's the right thing to do in this case. I'll send the patch to netdev and if it's accepted, I'll make similar changes to gre and sit. (Assigning the bug to myself.) Created attachment 285761 [details]
allow rebinding of ipip tunnels
The patch was sent to netdev (http://www.spinics.net/lists/netdev/msg49844.html). It was accepted with a small modification. I submitted similar patches for GRE and SIT (http://www.spinics.net/lists/netdev/msg49983.html). Dave Miller applied all three patches to his git tree. They will be in Linux 2.6.25. Thanks, Michal. If I'm not mistaken, no further modification to iproute should be needed. Tomas, correct, no change is needed in iproute. |