Netdev List
 help / color / mirror / Atom feed
* [PATCH v4 0/1] i40e: additional safety check
@ 2025-11-17  8:33 gregory.herrero
  2025-11-17  8:33 ` [PATCH v4 1/1] i40e: validate ring_len parameter against hardware-specific values gregory.herrero
  0 siblings, 1 reply; 8+ messages in thread
From: gregory.herrero @ 2025-11-17  8:33 UTC (permalink / raw)
  To: aleksandr.loktionov, anthony.l.nguyen, przemyslaw.kitszel,
	andrew+netdev, davem, edumazet, kuba, pabeni
  Cc: intel-wired-lan, netdev, linux-kernel, Gregory Herrero

From: Gregory Herrero <gregory.herrero@oracle.com>

On code inspection, I realized we may want to check ring_len parameter
against hardware specific values in i40e_config_vsi_tx_queue() and
i40e_config_vsi_rx_queue().

v4:
- remove u32 cast in i40e_config_vsi_tx_queue() too and don't mention it
  anymore in commit description.
- wrap i40e_get_max_num_descriptors() description
v3:
- drop trailing period from the subject
- reword commit description
- remove u32 cast in i40e_config_vsi_rx_queue()
v2:
- make i40e_get_max_num_descriptors() 'pf' argument const.
- reword i40e_get_max_num_descriptors() description.
- modify commit description to explain potential behavior change.

Gregory Herrero (1):
  i40e: validate ring_len parameter against hardware-specific values

 drivers/net/ethernet/intel/i40e/i40e.h         | 18 ++++++++++++++++++
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 12 ------------
 .../net/ethernet/intel/i40e/i40e_virtchnl_pf.c |  4 ++--
 3 files changed, 20 insertions(+), 14 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-12 20:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17  8:33 [PATCH v4 0/1] i40e: additional safety check gregory.herrero
2025-11-17  8:33 ` [PATCH v4 1/1] i40e: validate ring_len parameter against hardware-specific values gregory.herrero
2025-11-17 11:58   ` Loktionov, Aleksandr
2025-12-11  8:38     ` Romanowski, Rafal
2025-12-12 20:20     ` Gregory Herrero
2025-12-12 17:37   ` Creeley, Brett
2025-12-12 20:22     ` Gregory Herrero
2025-12-12 20:45       ` Creeley, Brett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox