intel-wired-lan.osuosl.org archive mirror
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v2 0/1] i40e: additional safety check
@ 2025-11-13  8:04 gregory.herrero
  2025-11-13  8:04 ` [Intel-wired-lan] [PATCH v2 1/1] i40e: validate ring_len parameter against hardware-specific values gregory.herrero
  0 siblings, 1 reply; 4+ messages in thread
From: gregory.herrero @ 2025-11-13  8:04 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().

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          | 17 +++++++++++++++++
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c  | 12 ------------
 .../net/ethernet/intel/i40e/i40e_virtchnl_pf.c  |  4 ++--
 3 files changed, 19 insertions(+), 14 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-11-13  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-13  8:04 [Intel-wired-lan] [PATCH v2 0/1] i40e: additional safety check gregory.herrero
2025-11-13  8:04 ` [Intel-wired-lan] [PATCH v2 1/1] i40e: validate ring_len parameter against hardware-specific values gregory.herrero
2025-11-13  8:18   ` Loktionov, Aleksandr
2025-11-13  8:36     ` Gregory Herrero

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).