From: Jacob Keller <jacob.e.keller@intel.com>
To: Sai Krishna <saikrishnag@marvell.com>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<sgoutham@marvell.com>, <gakula@marvell.com>,
<richardcochran@gmail.com>, <lcherian@marvell.com>,
<jerinj@marvell.com>, <hkelam@marvell.com>, <sbhatta@marvell.com>
Subject: Re: [net PATCH] octeontx2-af: Enable hardware timestamping for VFs
Date: Fri, 29 Sep 2023 10:54:11 -0700 [thread overview]
Message-ID: <278de035-67a7-19dc-c97e-ec2e0b80d3b4@intel.com> (raw)
In-Reply-To: <20230929071621.853570-1-saikrishnag@marvell.com>
On 9/29/2023 12:16 AM, Sai Krishna wrote:
> Currently for VFs, mailbox returns error when hardware timestamping enable
> is requested. This patch fixes this issue.
>
The subject title implies that this is implementing a new feature (and
thus not really a good candidate for net), but the content implies this
is a fix for an existing feature thats not working properly.
It could use a slightly improved commit message.
> Fixes: 421572175ba5 ("octeontx2-af: Support to enable/disable HW timestamping")
> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
> Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Typically the author signed-off-by should go first, and then other
signed-off-by are for people in the chain of patch delivery. If the
other two co-authored the patch they should have Co-developed-by tag or
something. Otherwise I would expect that Subbaraya Sundeepd would be the
patch author since that signed-off-by is first.
> ---
> drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
The fix itself seems straight forward, though the comment is confusing
to me. You also changed the return from -ENODEV to -EPERM which makes
sense enough I suppose, but thats not called out in the change.
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
> index f2b1edf1bb43..aba0c530160c 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
> @@ -756,12 +756,11 @@ static int rvu_cgx_ptp_rx_cfg(struct rvu *rvu, u16 pcifunc, bool enable)
> if (!is_mac_feature_supported(rvu, pf, RVU_LMAC_FEAT_PTP))
> return 0;
>
> - /* This msg is expected only from PFs that are mapped to CGX LMACs,
> + /* This msg is expected only from PFs that are mapped to CGX/RPM LMACs,
> * if received from other PF/VF simply ACK, nothing to do.
> */
This comment implies to me that we wouldn't expect this message from a VF?
> - if ((pcifunc & RVU_PFVF_FUNC_MASK) ||
> - !is_pf_cgxmapped(rvu, pf))
> - return -ENODEV;
> + if (!is_pf_cgxmapped(rvu, rvu_get_pf(pcifunc)))
> + return -EPERM;
>
> rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id);
> cgxd = rvu_cgx_pdata(cgx_id, rvu);
next prev parent reply other threads:[~2023-09-29 19:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-29 7:16 [net PATCH] octeontx2-af: Enable hardware timestamping for VFs Sai Krishna
2023-09-29 17:54 ` Jacob Keller [this message]
2023-10-03 7:21 ` Sai Krishna Gajula
2023-10-04 21:12 ` Jakub Kicinski
2023-10-11 5:43 ` Sai Krishna Gajula
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=278de035-67a7-19dc-c97e-ec2e0b80d3b4@intel.com \
--to=jacob.e.keller@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=jerinj@marvell.com \
--cc=kuba@kernel.org \
--cc=lcherian@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=saikrishnag@marvell.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.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).