From: Maor Gottlieb <maorg@mellanox.com>
To: j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net,
jiri@mellanox.com, davem@davemloft.net
Cc: Maor Gottlieb <maorg@mellanox.com>,
netdev@vger.kernel.org, saeedm@mellanox.com, jgg@mellanox.com,
leonro@mellanox.com, alexr@mellanox.com, markz@mellanox.com,
parav@mellanox.com, eranbe@mellanox.com,
linux-rdma@vger.kernel.org
Subject: [RFC PATCH 0/4] Introduce master_xmit_slave_get
Date: Sun, 26 Jan 2020 15:21:22 +0200 [thread overview]
Message-ID: <20200126132126.9981-1-maorg@mellanox.com> (raw)
Hi,
This patch series add support to get the LAG master xmit slave by
introducing new .ndo - ndo_xmit_slave_get. Every LAG module can
implement it. In this RFC, we added the support to the bond module.
The main motivation for doing this is for drivers that offload part
of the LAG functionality [1]. For example, Mellanox Connect-X hardware
implements RoCE LAG which selects the TX affinity when the resources
are created and port is remapped when it goes down [2].
Because of that and the fact that the RDMA frames are bypass the bonding
driver completely, we need a function to get the xmit slave assume
all the slaves are active.
The idea is that the same UDP header will get the same hash result so
they will be transmitted from the same port.
Thanks
[1] https://www.spinics.net/lists/netdev/msg624832.html
[2] https://www.spinics.net/lists/netdev/msg626758.html
Maor Gottlieb (4):
net/core: Introduce master_xmit_slave_get
bonding: Rename slave_arr to active_slaves
bonding: Add helpers to get xmit slave
bonding: Implement ndo_xmit_slave_get
drivers/net/bonding/bond_alb.c | 41 ++++--
drivers/net/bonding/bond_main.c | 231 ++++++++++++++++++++++----------
include/linux/netdevice.h | 3 +
include/net/bond_alb.h | 4 +
include/net/bonding.h | 3 +-
include/net/lag.h | 19 +++
6 files changed, 215 insertions(+), 86 deletions(-)
--
2.17.2
next reply other threads:[~2020-01-26 13:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-26 13:21 Maor Gottlieb [this message]
2020-01-26 13:21 ` [RFC PATCH 1/4] net/core: Introduce master_xmit_slave_get Maor Gottlieb
2020-01-29 9:57 ` Gal Pressman
2020-01-30 15:40 ` Maor Gottlieb
2020-02-12 20:33 ` Saeed Mahameed
2020-01-26 13:21 ` [RFC PATCH 2/4] bonding: Rename slave_arr to active_slaves Maor Gottlieb
2020-01-26 13:21 ` [RFC PATCH 3/4] bonding: Add helpers to get xmit slave Maor Gottlieb
2020-01-26 13:21 ` [RFC PATCH 4/4] bonding: Implement ndo_xmit_slave_get Maor Gottlieb
2020-01-29 2:08 ` Jay Vosburgh
2020-01-30 15:44 ` Maor Gottlieb
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=20200126132126.9981-1-maorg@mellanox.com \
--to=maorg@mellanox.com \
--cc=alexr@mellanox.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=eranbe@mellanox.com \
--cc=j.vosburgh@gmail.com \
--cc=jgg@mellanox.com \
--cc=jiri@mellanox.com \
--cc=leonro@mellanox.com \
--cc=linux-rdma@vger.kernel.org \
--cc=markz@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=parav@mellanox.com \
--cc=saeedm@mellanox.com \
--cc=vfalico@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;
as well as URLs for NNTP newsgroup(s).