From: Matan Barak <matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: "Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Christoph Lameter <cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Majd Dibbiny <majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Bodong Wang <bodong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH V1 for-next 1/2] IB/core: Report LSO capabilities when querying device
Date: Thu, 28 Apr 2016 11:02:53 +0300 [thread overview]
Message-ID: <5721C3AD.8050407@mellanox.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373AB046AB1-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
On 28/04/2016 00:54, Hefty, Sean wrote:
>>> +struct ib_lso_caps {
>>> + u32 max_lso;
>>> + u32 supported_qpts; /* Use enum ib_qp_type */
>>
>> So this is a bitmap of the qps supported? And thus we have a limit now of
>> 32 QP types. That needs to be documented and you need a BUILD_BUG_ON
>> somewhere in case IB_QPT_MAX becomes larger than 32. Also needs to be
>> better commented so we know this is a bitmap.
>
> I think it would make more sense to indicate what protocol, or specific aspect of a protocol, are being offloaded. Some qp types support LSO as a matter of practice.
>
For a lot of applications, we want to hide the lower level protocol. For
example, we try hard to hide whether IB/RoCE is used by an application.
Thus, is it wise to expose this thing in API?
A user creates a UD QP, he doesn't know or care whether the lower layer
is Ethernet (RoCE v1/V2) or IB.
I agree that the max_lso could be different for various QP types and
maybe probing a QP type would be favorable that getting this information
in a generic query_device.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-04-28 8:02 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-27 14:04 [PATCH V1 for-next 0/2] Add support for reporting LSO capabilities Matan Barak
[not found] ` <1461765892-1285-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-27 14:04 ` [PATCH V1 for-next 1/2] IB/core: Report LSO capabilities when querying device Matan Barak
[not found] ` <1461765892-1285-2-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-27 15:46 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1604271043540.20042-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-04-27 21:54 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB046AB1-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-04-28 8:02 ` Matan Barak [this message]
[not found] ` <5721C3AD.8050407-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-04-28 16:35 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB046FD8-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-01 8:31 ` Matan Barak
[not found] ` <d8f8d6bf-9fad-fcc9-5a15-2b2423349c26-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-05-02 17:20 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB0480DB-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-02 17:50 ` Jason Gunthorpe
[not found] ` <20160502175011.GB32096-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-02 18:13 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB04816A-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-02 19:06 ` Jason Gunthorpe
[not found] ` <20160502190619.GB32613-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-04 16:49 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB048E47-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-04 18:11 ` Jason Gunthorpe
[not found] ` <20160504181135.GA15355-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-05 8:21 ` Matan Barak
[not found] ` <21d9307f-766e-9aaa-54d3-207a4a4d5d8c-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-05-05 18:14 ` Jason Gunthorpe
[not found] ` <20160505181423.GB5957-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-06 2:20 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1605052116570.1091-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-05-06 22:55 ` Jason Gunthorpe
[not found] ` <20160506225523.GA21309-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-09 14:27 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1605090926440.6128-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-05-09 16:35 ` Jason Gunthorpe
[not found] ` <20160509163537.GA15479-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-09 19:11 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB04A390-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-09 20:05 ` Jason Gunthorpe
[not found] ` <20160509200507.GA23911-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-09 20:35 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A82373AB04A40A-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-05-10 15:03 ` Steve Wise
2016-05-10 16:46 ` Jason Gunthorpe
[not found] ` <20160510164608.GA29825-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-10 16:59 ` Steve Wise
2016-05-10 17:12 ` Hefty, Sean
2016-05-10 4:58 ` Leon Romanovsky
[not found] ` <20160510045801.GV29160-2ukJVAZIZ/Y@public.gmane.org>
2016-05-10 17:18 ` Jason Gunthorpe
[not found] ` <20160510171819.GB2879-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-10 17:52 ` Leon Romanovsky
[not found] ` <20160510175200.GB900-2ukJVAZIZ/Y@public.gmane.org>
2016-05-10 18:18 ` Jason Gunthorpe
[not found] ` <20160510181847.GA3754-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-10 19:26 ` Leon Romanovsky
[not found] ` <20160510192655.GC900-2ukJVAZIZ/Y@public.gmane.org>
2016-05-10 19:38 ` Leon Romanovsky
2016-05-09 19:16 ` Leon Romanovsky
[not found] ` <20160509191613.GS29160-2ukJVAZIZ/Y@public.gmane.org>
2016-05-09 19:57 ` Jason Gunthorpe
[not found] ` <20160509195734.GA22669-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-10 4:41 ` Leon Romanovsky
[not found] ` <20160510044107.GU29160-2ukJVAZIZ/Y@public.gmane.org>
2016-05-10 17:07 ` Jason Gunthorpe
[not found] ` <20160510170739.GA2879-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-10 17:48 ` Leon Romanovsky
2016-05-11 0:29 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1605101928280.2103-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-05-11 2:04 ` Jason Gunthorpe
2016-05-11 3:47 ` Bodong Wang
[not found] ` <HE1PR05MB164274F171401FC5B21B2474AA720-eBadYZ65MZ/fuMsuuuQLTtqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-05-11 19:20 ` Jason Gunthorpe
[not found] ` <20160511020429.GA32766-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-11 4:31 ` Leon Romanovsky
[not found] ` <20160511043134.GE900-2ukJVAZIZ/Y@public.gmane.org>
2016-05-11 17:36 ` Jason Gunthorpe
[not found] ` <20160511173608.GB18517-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-11 18:37 ` Leon Romanovsky
2016-05-11 14:23 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1605110920490.8588-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-05-11 17:27 ` Jason Gunthorpe
[not found] ` <20160511172745.GA18517-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-05-12 13:34 ` Christoph Lameter
[not found] ` <alpine.DEB.2.20.1605120832480.26014-wcBtFHqTun5QOdAKl3ChDw@public.gmane.org>
2016-05-12 16:54 ` Jason Gunthorpe
2016-04-27 14:04 ` [PATCH V1 for-next 2/2] IB/mlx5: Report mlx5 " Matan Barak
2016-04-27 16:42 ` [PATCH V1 for-next 0/2] Add support for reporting LSO capabilities Jason Gunthorpe
[not found] ` <20160427164230.GB11617-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-04-27 16:50 ` Christoph Lameter
2016-04-27 17:09 ` Leon Romanovsky
[not found] ` <20160427170903.GA11554-2ukJVAZIZ/Y@public.gmane.org>
2016-04-27 17:14 ` Jason Gunthorpe
[not found] ` <20160427171451.GA17172-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-04-27 17:35 ` Leon Romanovsky
2016-04-28 7:57 ` Matan Barak
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=5721C3AD.8050407@mellanox.com \
--to=matanb-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=bodong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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;
as well as URLs for NNTP newsgroup(s).