From: "Milan Kočvara" <milankocvara@gmail.com>
To: netdev@vger.kernel.org
Subject: bonding l2tpeth interfaces
Date: Fri, 27 Jan 2017 15:02:25 +0100 [thread overview]
Message-ID: <b6ba20c1-8f5c-a0b6-f618-bb72160850ef@gmail.com> (raw)
Hello.
I would like ask you about bonding l2tpeth interfaces. I found an older
patch to allow it (interfaces were created over l2tpv3tun package) but
after switching this functionality into ip route package starting kernel
4.4 this patch does not work.
ifenslave says
ifenslave: bond0: can't set hw address
ifenslave: can't enslave l2tpeth1 to bond0: Resource busy
and doing over echo l2tpeth1 > /sys/class/net/bond0/bonding/
it says [ 100.892608] bond0: interface 2tpeth1 does not exist!
patch was
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 76125c5..1e73b35 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -120,12 +120,13 @@ static struct rtnl_link_stats64
*l2tp_eth_get_stats64(struct net_device *dev,
return stats;
}
-
static struct net_device_ops l2tp_eth_netdev_ops = {
.ndo_init = l2tp_eth_dev_init,
.ndo_uninit = l2tp_eth_dev_uninit,
.ndo_start_xmit = l2tp_eth_dev_xmit,
.ndo_get_stats64 = l2tp_eth_get_stats64,
+ .ndo_validate_addr = eth_validate_addr,
+ .ndo_set_mac_address = eth_mac_addr,
};
static void l2tp_eth_dev_setup(struct net_device *dev)
--
1.7.9.5
this row > .ndo_set_mac_address = eth_mac_addr, is part of current
source.
What should be wrong yet, please?
My router is
Linux lede 4.4.42 #0 Wed Jan 25 15:25:48 2017 mips GNU/Linux
reply other threads:[~2017-01-27 14:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b6ba20c1-8f5c-a0b6-f618-bb72160850ef@gmail.com \
--to=milankocvara@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox