From: roopa@cumulusnetworks.com
To: sfeldma@gmail.com, jiri@resnulli.us
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: [PATCH net-next v2 2/3] bond: add support for ndo_switch_port_stp_update when bond is a bridge port
Date: Thu, 12 Mar 2015 17:29:57 -0700 [thread overview]
Message-ID: <1426206598-29410-3-git-send-email-roopa@cumulusnetworks.com> (raw)
From: Roopa Prabhu <roopa@cumulusnetworks.com>
This patch adds support for stp state offload netdev op to support the case
where bond is a bridge port and bond slaves are switch ports.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
---
drivers/net/bonding/bond_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index c026ce9..8ea97a2 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4038,6 +4038,9 @@ static const struct net_device_ops bond_netdev_ops = {
.ndo_fix_features = bond_fix_features,
.ndo_bridge_setlink = ndo_dflt_netdev_switch_port_bridge_setlink,
.ndo_bridge_dellink = ndo_dflt_netdev_switch_port_bridge_dellink,
+#ifdef CONFIG_NET_SWITCHDEV
+ .ndo_switch_port_stp_update = ndo_dflt_netdev_switch_port_stp_update,
+#endif
};
static const struct device_type bond_type = {
--
1.7.10.4
next reply other threads:[~2015-03-13 0:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 0:29 roopa [this message]
2015-03-15 16:58 ` [PATCH net-next v2 2/3] bond: add support for ndo_switch_port_stp_update when bond is a bridge port Jiri Pirko
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=1426206598-29410-3-git-send-email-roopa@cumulusnetworks.com \
--to=roopa@cumulusnetworks.com \
--cc=davem@davemloft.net \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=sfeldma@gmail.com \
/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