mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gur Stavi <gur.stavi@huawei.com>
To: <sumang@marvell.com>
Cc: <andrew+netdev@lunn.ch>, <cai.huoqing@linux.dev>,
	<corbet@lwn.net>, <davem@davemloft.net>, <edumazet@google.com>,
	<gongfan1@huawei.com>, <guoxin09@huawei.com>,
	<gur.stavi@huawei.com>, <helgaas@kernel.org>, <horms@kernel.org>,
	<kuba@kernel.org>, <linux-doc@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <meny.yossefi@huawei.com>,
	<netdev@vger.kernel.org>, <pabeni@redhat.com>,
	<shenchenyang1@hisilicon.com>, <shijing34@huawei.com>,
	<wulike1@huawei.com>, <zhoushuai28@huawei.com>
Subject: RE: [EXTERNAL] [PATCH net-next v03 1/1] hinic3: module initialization and tx/rx logic
Date: Tue, 7 Jan 2025 12:37:49 +0200	[thread overview]
Message-ID: <20250107103749.3552291-1-gur.stavi@huawei.com> (raw)
In-Reply-To: <SJ0PR18MB5216BED17023369322EE4A6ADB152@SJ0PR18MB5216.namprd18.prod.outlook.com>

> >+enum hinic3_service_type {
> >+	SERVICE_T_NIC =3D 0,
> >+	SERVICE_T_MAX =3D 1,
> >+	/* Only used for interruption resource management, mark the request
> >module */
> >+	SERVICE_T_INTF =3D (1 << 15),

> [Suman] any reason to define a type after _MAX? Does _MAX has some other co=
> nnotation? Also, one generic comment would be to use symmetrical naming con=
> vention like HINIC3_SERVICE_T_NIC or something like that.

The HW supports multiple services. E.g. RoCE. We plan to add support
for some of them them later. The specific service values are used by
HW (e.g. when reporting events) and therefore need to be defined
explicitly. MAX is a SW only value that is used to define array that is
accessed by service index.

We will add a comment for that.

> >+};
>
> ...
>
> >+static bool hinic3_adev_svc_supported(struct hinic3_hwdev *hwdev,
> >+				      enum hinic3_service_type svc_type)
> >+{
> >+	switch (svc_type) {
> >+	case SERVICE_T_NIC:

> [Suman] Are there other SERVICE type which will be introduced later?

Yes. As explained above.

> >+		return hinic3_support_nic(hwdev);
> >+	default:
> >+		break;
> >+	}
> >+
> >+	return false;
> >+}


  parent reply	other threads:[~2025-01-07 10:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-01 13:04 [PATCH net-next v03 0/1] net: hinic3: Add a driver for Huawei 3rd gen NIC Gur Stavi
2025-01-01 13:04 ` [PATCH net-next v03 1/1] hinic3: module initialization and tx/rx logic Gur Stavi
2025-01-03  8:47   ` [EXTERNAL] " Suman Ghosh
2025-01-07 10:23     ` Gur Stavi
2025-01-07 10:37     ` Gur Stavi [this message]
2025-01-07 14:03     ` Gur Stavi
2025-01-08  5:51     ` Gur Stavi
2025-01-02 16:53 ` [PATCH net-next v03 0/1] net: hinic3: Add a driver for Huawei 3rd gen NIC Jakub Kicinski
2025-01-05  7:30   ` Gur Stavi
2025-01-05 16:32     ` Andrew Lunn

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=20250107103749.3552291-1-gur.stavi@huawei.com \
    --to=gur.stavi@huawei.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=cai.huoqing@linux.dev \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gongfan1@huawei.com \
    --cc=guoxin09@huawei.com \
    --cc=helgaas@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=meny.yossefi@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shenchenyang1@hisilicon.com \
    --cc=shijing34@huawei.com \
    --cc=sumang@marvell.com \
    --cc=wulike1@huawei.com \
    --cc=zhoushuai28@huawei.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

all inboxes | Powered by JetHome®