From: Larysa Zaremba <larysa.zaremba@intel.com>
To: Shinas Rasheed <srasheed@marvell.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<hgani@marvell.com>, <sedara@marvell.com>, <vimleshk@marvell.com>,
<thaller@redhat.com>, <wizhao@redhat.com>, <kheib@redhat.com>,
<konguyen@redhat.com>, <horms@kernel.org>,
<einstein.xue@synaxg.com>,
Veerasenareddy Burru <vburru@marvell.com>,
Satananda Burla <sburla@marvell.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net v8 3/4] octeon_ep_vf: remove firmware stats fetch in ndo_get_stats64
Date: Thu, 16 Jan 2025 16:42:37 +0100 [thread overview]
Message-ID: <Z4ko7cYyMbMzGkAC@lzaremba-mobl.ger.corp.intel.com> (raw)
In-Reply-To: <20250116083825.2581885-4-srasheed@marvell.com>
On Thu, Jan 16, 2025 at 12:38:24AM -0800, Shinas Rasheed wrote:
> The per queue stats are available already and are retrieved
> from register reads during ndo_get_stats64.
Please update this after changing the patch order.
> The firmware stats
> fetch call that happens in ndo_get_stats64() is currently not
> required
>
> The warn log is given below:
>
This is not a call trace for VF functions, you should probably mention that in
the commit message.
Other than that, I think the series is on the right track, though patches 2/4
and 4/4 may need more attention.
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
> [ 123.316837] ------------[ cut here ]------------
> [ 123.316840] Voluntary context switch within RCU read-side critical section!
> [ 123.316917] pc : rcu_note_context_switch+0x2e4/0x300
> [ 123.316919] lr : rcu_note_context_switch+0x2e4/0x300
> [ 123.316947] Call trace:
> [ 123.316949] rcu_note_context_switch+0x2e4/0x300
> [ 123.316952] __schedule+0x84/0x584
> [ 123.316955] schedule+0x38/0x90
> [ 123.316956] schedule_timeout+0xa0/0x1d4
> [ 123.316959] octep_send_mbox_req+0x190/0x230 [octeon_ep]
> [ 123.316966] octep_ctrl_net_get_if_stats+0x78/0x100 [octeon_ep]
> [ 123.316970] octep_get_stats64+0xd4/0xf0 [octeon_ep]
> [ 123.316975] dev_get_stats+0x4c/0x114
> [ 123.316977] dev_seq_printf_stats+0x3c/0x11c
> [ 123.316980] dev_seq_show+0x1c/0x40
> [ 123.316982] seq_read_iter+0x3cc/0x4e0
> [ 123.316985] seq_read+0xc8/0x110
> [ 123.316987] proc_reg_read+0x9c/0xec
> [ 123.316990] vfs_read+0xc8/0x2ec
> [ 123.316993] ksys_read+0x70/0x100
> [ 123.316995] __arm64_sys_read+0x20/0x30
> [ 123.316997] invoke_syscall.constprop.0+0x7c/0xd0
> [ 123.317000] do_el0_svc+0xb4/0xd0
> [ 123.317002] el0_svc+0xe8/0x1f4
> [ 123.317005] el0t_64_sync_handler+0x134/0x150
> [ 123.317006] el0t_64_sync+0x17c/0x180
> [ 123.317008] ---[ end trace 63399811432ab69b ]---
>
> Fixes: c3fad23cdc06 ("octeon_ep_vf: add support for ndo ops")
> Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
> ---
> V8:
> - Reordered patch
>
> V7: https://lore.kernel.org/all/20250114125124.2570660-5-srasheed@marvell.com/
> - No changes
>
> V6: https://lore.kernel.org/all/20250110122730.2551863-5-srasheed@marvell.com/
> - No changes
>
> V5: https://lore.kernel.org/all/20250109103221.2544467-5-srasheed@marvell.com/
> - No changes
>
> V4: https://lore.kernel.org/all/20250102112246.2494230-5-srasheed@marvell.com/
> - No changes
>
> V3: https://lore.kernel.org/all/20241218115111.2407958-5-srasheed@marvell.com/
> - Added warn log that happened due to rcu_read_lock in commit message
>
> V2: https://lore.kernel.org/all/20241216075842.2394606-5-srasheed@marvell.com/
> - No changes
>
> V1: https://lore.kernel.org/all/20241203072130.2316913-5-srasheed@marvell.com/
>
> drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
> index 7e6771c9cdbb..4c699514fd57 100644
> --- a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
> +++ b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
> @@ -799,14 +799,6 @@ static void octep_vf_get_stats64(struct net_device *netdev,
> stats->tx_bytes = tx_bytes;
> stats->rx_packets = rx_packets;
> stats->rx_bytes = rx_bytes;
> - if (!octep_vf_get_if_stats(oct)) {
> - stats->multicast = oct->iface_rx_stats.mcast_pkts;
> - stats->rx_errors = oct->iface_rx_stats.err_pkts;
> - stats->rx_dropped = oct->iface_rx_stats.dropped_pkts_fifo_full +
> - oct->iface_rx_stats.err_pkts;
> - stats->rx_missed_errors = oct->iface_rx_stats.dropped_pkts_fifo_full;
> - stats->tx_dropped = oct->iface_tx_stats.dropped;
> - }
> }
>
> /**
> --
> 2.25.1
>
>
next prev parent reply other threads:[~2025-01-16 15:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 8:38 [PATCH net v8 0/4] Fix race conditions " Shinas Rasheed
2025-01-16 8:38 ` [PATCH net v8 1/4] octeon_ep: remove firmware stats fetch " Shinas Rasheed
2025-01-16 15:44 ` Larysa Zaremba
2025-01-16 8:38 ` [PATCH net v8 2/4] octeon_ep: update tx/rx stats locally for persistence Shinas Rasheed
2025-01-16 15:26 ` Larysa Zaremba
2025-01-17 0:27 ` Jakub Kicinski
2025-01-17 4:11 ` [EXTERNAL] " Shinas Rasheed
2025-01-17 5:49 ` Shinas Rasheed
2025-01-16 8:38 ` [PATCH net v8 3/4] octeon_ep_vf: remove firmware stats fetch in ndo_get_stats64 Shinas Rasheed
2025-01-16 15:42 ` Larysa Zaremba [this message]
2025-01-16 8:38 ` [PATCH net v8 4/4] octeon_ep_vf: update tx/rx stats locally for persistence Shinas Rasheed
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=Z4ko7cYyMbMzGkAC@lzaremba-mobl.ger.corp.intel.com \
--to=larysa.zaremba@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=einstein.xue@synaxg.com \
--cc=hgani@marvell.com \
--cc=horms@kernel.org \
--cc=kheib@redhat.com \
--cc=konguyen@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sburla@marvell.com \
--cc=sedara@marvell.com \
--cc=srasheed@marvell.com \
--cc=thaller@redhat.com \
--cc=vburru@marvell.com \
--cc=vimleshk@marvell.com \
--cc=wizhao@redhat.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®