From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: Scott Feldman <sfeldma@gmail.com>
Cc: netdev <netdev@vger.kernel.org>, David <davem@davemloft.net>,
Guenter Roeck <linux@roeck-us.net>, Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Jiri Pirko <jiri@resnulli.us>,
linux-kernel <linux-kernel@vger.kernel.org>,
kernel <kernel@savoirfairelinux.com>
Subject: Re: [PATCH net-next 3/4] net: dsa: add support for switchdev FDB objects
Date: Tue, 4 Aug 2015 11:43:02 -0400 (EDT) [thread overview]
Message-ID: <715366305.202451.1438702982910.JavaMail.zimbra@savoirfairelinux.com> (raw)
In-Reply-To: <CAE4R7bAmOzFUOoC1gQQMEuuM1v7U5WeF42d0+YFY1VcTZvrsFA@mail.gmail.com>
Hi Scott,
On Aug 4, 2015, at 8:18 AM, Scott Feldman sfeldma@gmail.com wrote:
> On Mon, Aug 3, 2015 at 11:30 PM, Vivien Didelot
> <vivien.didelot@savoirfairelinux.com> wrote:
>> Remove the fdb_{add,del,getnext} function pointer in favor of new
>> port_fdb_{add,del,getnext}.
>>
>> Implement the switchdev_port_obj_{add,del,dump} functions in DSA to
>> support the SWITCHDEV_OBJ_PORT_FDB objects.
>>
>> These functions are called from switchdev_port_bridge_{get,set,del}link.
>>
>> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
>> ---
>> drivers/net/dsa/mv88e6171.c | 3 -
>> drivers/net/dsa/mv88e6352.c | 3 -
>> include/net/dsa.h | 16 ++--
>> net/dsa/slave.c | 221 ++++++++++++++++++++++++--------------------
>> 4 files changed, 129 insertions(+), 114 deletions(-)
>>
>
> [cut]
>
>> static int dsa_slave_bridge_port_join(struct net_device *dev,
>> struct net_device *br)
>> {
>> @@ -765,9 +776,9 @@ static const struct net_device_ops dsa_slave_netdev_ops = {
>> .ndo_change_rx_flags = dsa_slave_change_rx_flags,
>> .ndo_set_rx_mode = dsa_slave_set_rx_mode,
>> .ndo_set_mac_address = dsa_slave_set_mac_address,
>> - .ndo_fdb_add = dsa_slave_fdb_add,
>> - .ndo_fdb_del = dsa_slave_fdb_del,
>> - .ndo_fdb_dump = dsa_slave_fdb_dump,
>> + .ndo_fdb_add = switchdev_port_fdb_add,
>> + .ndo_fdb_del = switchdev_port_fdb_del,
>> + .ndo_fdb_dump = switchdev_port_fdb_dump,
>> .ndo_do_ioctl = dsa_slave_ioctl,
>> .ndo_get_iflink = dsa_slave_get_iflink,
>> #ifdef CONFIG_NET_POLL_CONTROLLER
>> @@ -775,11 +786,17 @@ static const struct net_device_ops dsa_slave_netdev_ops =
>> {
>> .ndo_netpoll_cleanup = dsa_slave_netpoll_cleanup,
>> .ndo_poll_controller = dsa_slave_poll_controller,
>> #endif
>> + .ndo_bridge_getlink = switchdev_port_bridge_getlink,
>> + .ndo_bridge_setlink = switchdev_port_bridge_setlink,
>> + .ndo_bridge_dellink = switchdev_port_bridge_dellink,
>> };
>
> These ndo_bridge_xxx changes aren't relevant to the patch, are they?
> You'll need those for VLANs but not for FDBs.
You're right, that is part of my next HW VLAN patchset. I removed them.
I also use ether_addr_copy instead of memcpy, as suggested by
checkpatch.pl.
A v2 is ready, I'll wait a bit for eventual other reviews though.
Thanks,
-v
prev parent reply other threads:[~2015-08-04 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 6:30 [PATCH net-next 0/4] net: dsa: support " Vivien Didelot
2015-08-04 6:30 ` [PATCH net-next 1/4] net: switchdev: change fdb addr for a byte array Vivien Didelot
2015-08-04 6:30 ` [PATCH net-next 2/4] net: switchdev: support static FDB addresses Vivien Didelot
2015-08-04 6:30 ` [PATCH net-next 3/4] net: dsa: add support for switchdev FDB objects Vivien Didelot
2015-08-04 12:18 ` Scott Feldman
2015-08-04 15:43 ` Vivien Didelot [this message]
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=715366305.202451.1438702982910.JavaMail.zimbra@savoirfairelinux.com \
--to=vivien.didelot@savoirfairelinux.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jiri@resnulli.us \
--cc=kernel@savoirfairelinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--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
Powered by JetHome