From: Scott Feldman <sfeldma@cumulusnetworks.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Veaceslav Falico <vfalico@redhat.com>,
Jay Vosburgh <fubar@us.ibm.com>,
Andy Gospodarek <andy@greyhouse.net>,
Netdev <netdev@vger.kernel.org>,
Roopa Prabhu <roopa@cumulusnetworks.com>,
Shrijeet Mukherjee <shm@cumulusnetworks.com>,
Ding Tianhong <dingtianhong@huawei.com>
Subject: Re: [PATCH net-next v2 2/2] bonding: add netlink attributes to slave link dev
Date: Tue, 21 Jan 2014 13:36:58 -0800 [thread overview]
Message-ID: <0A99CC69-DBFF-46DF-9300-D2C6DF10A965@cumulusnetworks.com> (raw)
In-Reply-To: <20140121133426.GC3015@minipsycho.orion>
On Jan 21, 2014, at 5:34 AM, Jiri Pirko <jiri@resnulli.us> wrote:
>> + if (rtnl_bond_slave_fill(skb, dev))
>> + goto nla_put_failure;
>> +
>
> I must say I do not like this at all. This should be done in a generic
> way. By a callback registered by bonding and possibly other master-slave
> device types.
The bond was registered with the ndo_get_slave op. ndo_get_slave could be used for other master-slave device types. I’ll agree that rtnl_bond_slave_fill() could have been written more generically. Is that the objection?
> I have something in mind, will try to prepare patch soon.
next prev parent reply other threads:[~2014-01-21 21:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 6:57 [PATCH net-next v2 2/2] bonding: add netlink attributes to slave link dev Scott Feldman
2014-01-21 13:34 ` Jiri Pirko
2014-01-21 21:36 ` Scott Feldman [this message]
2014-01-21 22:00 ` Jiri Pirko
2014-01-21 22:42 ` Scott Feldman
2014-01-22 8:22 ` 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=0A99CC69-DBFF-46DF-9300-D2C6DF10A965@cumulusnetworks.com \
--to=sfeldma@cumulusnetworks.com \
--cc=andy@greyhouse.net \
--cc=dingtianhong@huawei.com \
--cc=fubar@us.ibm.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=roopa@cumulusnetworks.com \
--cc=shm@cumulusnetworks.com \
--cc=vfalico@redhat.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;
as well as URLs for NNTP newsgroup(s).