* [PATCH iwl-next] idpf: preserve coalescing settings across resets
@ 2025-06-20 17:15 Ahmed Zaki
2025-06-21 12:13 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Ahmed Zaki @ 2025-06-20 17:15 UTC (permalink / raw)
To: intel-wired-lan; +Cc: netdev, Ahmed Zaki, Madhu Chittim
The IRQ coalescing config currently reside only inside struct
idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
re-allocated during resets. This leads to user-set coalesce configuration
to be lost.
Add new fields to struct idpf_vport_user_config_data to save the user
settings and re-apply them after reset.
Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
---
drivers/net/ethernet/intel/idpf/idpf.h | 19 ++++++++++
.../net/ethernet/intel/idpf/idpf_ethtool.c | 36 ++++++++++++++-----
drivers/net/ethernet/intel/idpf/idpf_lib.c | 19 ++++++++--
drivers/net/ethernet/intel/idpf/idpf_main.c | 1 +
drivers/net/ethernet/intel/idpf/idpf_txrx.c | 13 ++++---
5 files changed, 74 insertions(+), 14 deletions(-)
diff --git a/drivers/net/ethernet/intel/idpf/idpf.h b/drivers/net/ethernet/intel/idpf/idpf.h
index aa2e97e2cd32..1f7127f3324c 100644
--- a/drivers/net/ethernet/intel/idpf/idpf.h
+++ b/drivers/net/ethernet/intel/idpf/idpf.h
@@ -396,10 +396,28 @@ struct idpf_rss_data {
u32 *cached_lut;
};
+/**
+ * struct idpf_q_coalesce - User defined coalescing configuration values for
+ * a single queue.
+ * @tx_intr_mode: Dynamic TX ITR or not
+ * @rx_intr_mode: Dynamic RX ITR or not
+ * @tx_coalesce_usecs: TX interrupt throttling rate
+ * @rx_coalesce_usecs: RX interrupt throttling rate
+ *
+ * Used to restore user coalescing configuration after a reset.
+ */
+struct idpf_q_coalesce {
+ u32 tx_intr_mode;
+ u32 rx_intr_mode;
+ u32 tx_coalesce_usecs;
+ u32 rx_coalesce_usecs;
+};
+
/**
* struct idpf_vport_user_config_data - User defined configuration values for
* each vport.
* @rss_data: See struct idpf_rss_data
+ * @q_coalesce: Array of per queue coalescing data
* @num_req_tx_qs: Number of user requested TX queues through ethtool
* @num_req_rx_qs: Number of user requested RX queues through ethtool
* @num_req_txq_desc: Number of user requested TX queue descriptors through
@@ -415,6 +433,7 @@ struct idpf_rss_data {
*/
struct idpf_vport_user_config_data {
struct idpf_rss_data rss_data;
+ struct idpf_q_coalesce *q_coalesce;
u16 num_req_tx_qs;
u16 num_req_rx_qs;
u32 num_req_txq_desc;
diff --git a/drivers/net/ethernet/intel/idpf/idpf_ethtool.c b/drivers/net/ethernet/intel/idpf/idpf_ethtool.c
index 62a08bddfd57..1de71dec9b7e 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_ethtool.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_ethtool.c
@@ -1384,12 +1384,14 @@ static int idpf_get_per_q_coalesce(struct net_device *netdev, u32 q_num,
/**
* __idpf_set_q_coalesce - set ITR values for specific queue
* @ec: ethtool structure from user to update ITR settings
+ * @q_coal: per queue coalesce settings
* @qv: queue vector for which itr values has to be set
* @is_rxq: is queue type rx
*
* Returns 0 on success, negative otherwise.
*/
static int __idpf_set_q_coalesce(const struct ethtool_coalesce *ec,
+ struct idpf_q_coalesce *q_coal,
struct idpf_q_vector *qv, bool is_rxq)
{
u32 use_adaptive_coalesce, coalesce_usecs;
@@ -1433,20 +1435,25 @@ static int __idpf_set_q_coalesce(const struct ethtool_coalesce *ec,
if (is_rxq) {
qv->rx_itr_value = coalesce_usecs;
+ q_coal->rx_coalesce_usecs = coalesce_usecs;
if (use_adaptive_coalesce) {
qv->rx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_coal->rx_intr_mode = IDPF_ITR_DYNAMIC;
} else {
qv->rx_intr_mode = !IDPF_ITR_DYNAMIC;
- idpf_vport_intr_write_itr(qv, qv->rx_itr_value,
- false);
+ q_coal->rx_intr_mode = !IDPF_ITR_DYNAMIC;
+ idpf_vport_intr_write_itr(qv, coalesce_usecs, false);
}
} else {
qv->tx_itr_value = coalesce_usecs;
+ q_coal->tx_coalesce_usecs = coalesce_usecs;
if (use_adaptive_coalesce) {
qv->tx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_coal->tx_intr_mode = IDPF_ITR_DYNAMIC;
} else {
qv->tx_intr_mode = !IDPF_ITR_DYNAMIC;
- idpf_vport_intr_write_itr(qv, qv->tx_itr_value, true);
+ q_coal->tx_intr_mode = !IDPF_ITR_DYNAMIC;
+ idpf_vport_intr_write_itr(qv, coalesce_usecs, true);
}
}
@@ -1459,6 +1466,7 @@ static int __idpf_set_q_coalesce(const struct ethtool_coalesce *ec,
/**
* idpf_set_q_coalesce - set ITR values for specific queue
* @vport: vport associated to the queue that need updating
+ * @q_coal: per queue coalesce settings
* @ec: coalesce settings to program the device with
* @q_num: update ITR/INTRL (coalesce) settings for this queue number/index
* @is_rxq: is queue type rx
@@ -1466,6 +1474,7 @@ static int __idpf_set_q_coalesce(const struct ethtool_coalesce *ec,
* Return 0 on success, and negative on failure
*/
static int idpf_set_q_coalesce(const struct idpf_vport *vport,
+ struct idpf_q_coalesce *q_coal,
const struct ethtool_coalesce *ec,
int q_num, bool is_rxq)
{
@@ -1474,7 +1483,7 @@ static int idpf_set_q_coalesce(const struct idpf_vport *vport,
qv = is_rxq ? idpf_find_rxq_vec(vport, q_num) :
idpf_find_txq_vec(vport, q_num);
- if (qv && __idpf_set_q_coalesce(ec, qv, is_rxq))
+ if (qv && __idpf_set_q_coalesce(ec, q_coal, qv, is_rxq))
return -EINVAL;
return 0;
@@ -1495,10 +1504,14 @@ static int idpf_set_coalesce(struct net_device *netdev,
struct netlink_ext_ack *extack)
{
struct idpf_netdev_priv *np = netdev_priv(netdev);
+ struct idpf_vport_user_config_data *user_config;
+ struct idpf_q_coalesce *q_coal;
struct idpf_q_vec_rsrc *rsrc;
struct idpf_vport *vport;
int err = 0;
+ user_config = &np->adapter->vport_config[np->vport_idx]->user_config;
+
idpf_vport_ctrl_lock(netdev);
vport = idpf_netdev_to_vport(netdev);
@@ -1507,13 +1520,15 @@ static int idpf_set_coalesce(struct net_device *netdev,
rsrc = &vport->dflt_qv_rsrc;
for (u16 i = 0; i < rsrc->num_txq; i++) {
- err = idpf_set_q_coalesce(vport, ec, i, false);
+ q_coal = &user_config->q_coalesce[i];
+ err = idpf_set_q_coalesce(vport, q_coal, ec, i, false);
if (err)
goto unlock_mutex;
}
for (u16 i = 0; i < rsrc->num_rxq; i++) {
- err = idpf_set_q_coalesce(vport, ec, i, true);
+ q_coal = &user_config->q_coalesce[i];
+ err = idpf_set_q_coalesce(vport, q_coal, ec, i, true);
if (err)
goto unlock_mutex;
}
@@ -1535,20 +1550,25 @@ static int idpf_set_coalesce(struct net_device *netdev,
static int idpf_set_per_q_coalesce(struct net_device *netdev, u32 q_num,
struct ethtool_coalesce *ec)
{
+ struct idpf_netdev_priv *np = netdev_priv(netdev);
+ struct idpf_vport_user_config_data *user_config;
+ struct idpf_q_coalesce *q_coal;
struct idpf_vport *vport;
int err;
idpf_vport_ctrl_lock(netdev);
vport = idpf_netdev_to_vport(netdev);
+ user_config = &np->adapter->vport_config[np->vport_idx]->user_config;
+ q_coal = &user_config->q_coalesce[q_num];
- err = idpf_set_q_coalesce(vport, ec, q_num, false);
+ err = idpf_set_q_coalesce(vport, q_coal, ec, q_num, false);
if (err) {
idpf_vport_ctrl_unlock(netdev);
return err;
}
- err = idpf_set_q_coalesce(vport, ec, q_num, true);
+ err = idpf_set_q_coalesce(vport, q_coal, ec, q_num, true);
idpf_vport_ctrl_unlock(netdev);
diff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c b/drivers/net/ethernet/intel/idpf/idpf_lib.c
index fab0775e65c3..d5db66922845 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_lib.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c
@@ -1085,8 +1085,10 @@ static struct idpf_vport *idpf_vport_alloc(struct idpf_adapter *adapter,
if (!vport)
return vport;
+ num_max_q = max(max_q->max_txq, max_q->max_rxq);
if (!adapter->vport_config[idx]) {
struct idpf_vport_config *vport_config;
+ struct idpf_q_coalesce *q_coal;
vport_config = kzalloc(sizeof(*vport_config), GFP_KERNEL);
if (!vport_config) {
@@ -1095,6 +1097,21 @@ static struct idpf_vport *idpf_vport_alloc(struct idpf_adapter *adapter,
return NULL;
}
+ q_coal = kcalloc(num_max_q, sizeof(*q_coal), GFP_KERNEL);
+ if (!q_coal) {
+ kfree(vport_config);
+ kfree(vport);
+
+ return NULL;
+ }
+ for (int i = 0; i < num_max_q; i++) {
+ q_coal[i].tx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_coal[i].tx_coalesce_usecs = IDPF_ITR_TX_DEF;
+ q_coal[i].rx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_coal[i].rx_coalesce_usecs = IDPF_ITR_RX_DEF;
+ }
+ vport_config->user_config.q_coalesce = q_coal;
+
adapter->vport_config[idx] = vport_config;
}
@@ -1104,8 +1121,6 @@ static struct idpf_vport *idpf_vport_alloc(struct idpf_adapter *adapter,
vport->default_vport = adapter->num_alloc_vports <
idpf_get_default_vports(adapter);
- num_max_q = max(max_q->max_txq, max_q->max_rxq);
-
rsrc = &vport->dflt_qv_rsrc;
rsrc->q_vector_idxs = kcalloc(num_max_q, sizeof(u16), GFP_KERNEL);
if (!rsrc->q_vector_idxs)
diff --git a/drivers/net/ethernet/intel/idpf/idpf_main.c b/drivers/net/ethernet/intel/idpf/idpf_main.c
index 0efd9c0c7a90..6e0757ab406e 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_main.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_main.c
@@ -62,6 +62,7 @@ static void idpf_remove(struct pci_dev *pdev)
destroy_workqueue(adapter->vc_event_wq);
for (i = 0; i < adapter->max_vports; i++) {
+ kfree(adapter->vport_config[i]->user_config.q_coalesce);
kfree(adapter->vport_config[i]);
adapter->vport_config[i] = NULL;
}
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
index f3a7ca4523b6..1991d06fe1ac 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
@@ -4373,9 +4373,13 @@ int idpf_vport_intr_alloc(struct idpf_vport *vport,
struct idpf_q_vec_rsrc *rsrc)
{
u16 txqs_per_vector, rxqs_per_vector, bufqs_per_vector;
+ struct idpf_vport_user_config_data *user_config;
struct idpf_q_vector *q_vector;
+ struct idpf_q_coalesce *q_coal;
u32 complqs_per_vector;
+ u16 idx = vport->idx;
+ user_config = &vport->adapter->vport_config[idx]->user_config;
rsrc->q_vectors = kcalloc(rsrc->num_q_vectors,
sizeof(struct idpf_q_vector), GFP_KERNEL);
if (!rsrc->q_vectors)
@@ -4393,14 +4397,15 @@ int idpf_vport_intr_alloc(struct idpf_vport *vport,
for (u16 v_idx = 0; v_idx < rsrc->num_q_vectors; v_idx++) {
q_vector = &rsrc->q_vectors[v_idx];
+ q_coal = &user_config->q_coalesce[v_idx];
q_vector->vport = vport;
- q_vector->tx_itr_value = IDPF_ITR_TX_DEF;
- q_vector->tx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_vector->tx_itr_value = q_coal->tx_coalesce_usecs;
+ q_vector->tx_intr_mode = q_coal->tx_intr_mode;
q_vector->tx_itr_idx = VIRTCHNL2_ITR_IDX_1;
- q_vector->rx_itr_value = IDPF_ITR_RX_DEF;
- q_vector->rx_intr_mode = IDPF_ITR_DYNAMIC;
+ q_vector->rx_itr_value = q_coal->rx_coalesce_usecs;
+ q_vector->rx_intr_mode = q_coal->rx_intr_mode;
q_vector->rx_itr_idx = VIRTCHNL2_ITR_IDX_0;
q_vector->tx = kcalloc(txqs_per_vector, sizeof(*q_vector->tx),
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-20 17:15 [PATCH iwl-next] idpf: preserve coalescing settings across resets Ahmed Zaki
@ 2025-06-21 12:13 ` Simon Horman
2025-06-23 15:48 ` Ahmed Zaki
2025-06-26 17:06 ` Willem de Bruijn
2025-07-07 22:16 ` [Intel-wired-lan] " Salin, Samuel
2 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2025-06-21 12:13 UTC (permalink / raw)
To: Ahmed Zaki; +Cc: intel-wired-lan, netdev, Madhu Chittim
On Fri, Jun 20, 2025 at 11:15:48AM -0600, Ahmed Zaki wrote:
> The IRQ coalescing config currently reside only inside struct
> idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
> re-allocated during resets. This leads to user-set coalesce configuration
> to be lost.
>
> Add new fields to struct idpf_vport_user_config_data to save the user
> settings and re-apply them after reset.
>
> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Hi Ahmed,
I am wondering if this patch also preserves coalescing settings in the case
where.
1. User sets coalescence for n queues
2. The number of queues is reduced, say to m (where m < n)
3. The user then increases the number of queues, say back to n
It seems to me that in this scenario it's reasonable to preserve
the settings for queues 0 to m, bit not queues m + 1 to n.
But perhaps this point is orthogonal to this change.
I am unsure.
...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-21 12:13 ` Simon Horman
@ 2025-06-23 15:48 ` Ahmed Zaki
2025-06-24 9:40 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Ahmed Zaki @ 2025-06-23 15:48 UTC (permalink / raw)
To: Simon Horman; +Cc: intel-wired-lan, netdev, Madhu Chittim
On 2025-06-21 6:13 a.m., Simon Horman wrote:
> On Fri, Jun 20, 2025 at 11:15:48AM -0600, Ahmed Zaki wrote:
>> The IRQ coalescing config currently reside only inside struct
>> idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
>> re-allocated during resets. This leads to user-set coalesce configuration
>> to be lost.
>>
>> Add new fields to struct idpf_vport_user_config_data to save the user
>> settings and re-apply them after reset.
>>
>> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
>> Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
>
> Hi Ahmed,
>
> I am wondering if this patch also preserves coalescing settings in the case
> where.
>
> 1. User sets coalescence for n queues
> 2. The number of queues is reduced, say to m (where m < n)
> 3. The user then increases the number of queues, say back to n
>
> It seems to me that in this scenario it's reasonable to preserve
> the settings for queues 0 to m, bit not queues m + 1 to n.
Hi Simon,
I just did a quick test and it seems new settings are preserved in the
above scenario: all n queues have the new coalescing settings.
>
> But perhaps this point is orthogonal to this change.
> I am unsure.
>
Agreed, but let me know if it is a showstopper.
Ahmed
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-23 15:48 ` Ahmed Zaki
@ 2025-06-24 9:40 ` Simon Horman
2025-06-24 16:13 ` Ahmed Zaki
0 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2025-06-24 9:40 UTC (permalink / raw)
To: Ahmed Zaki; +Cc: intel-wired-lan, netdev, Madhu Chittim
On Mon, Jun 23, 2025 at 09:48:02AM -0600, Ahmed Zaki wrote:
>
>
> On 2025-06-21 6:13 a.m., Simon Horman wrote:
> > On Fri, Jun 20, 2025 at 11:15:48AM -0600, Ahmed Zaki wrote:
> > > The IRQ coalescing config currently reside only inside struct
> > > idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
> > > re-allocated during resets. This leads to user-set coalesce configuration
> > > to be lost.
> > >
> > > Add new fields to struct idpf_vport_user_config_data to save the user
> > > settings and re-apply them after reset.
> > >
> > > Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> > > Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
> >
> > Hi Ahmed,
> >
> > I am wondering if this patch also preserves coalescing settings in the case
> > where.
> >
> > 1. User sets coalescence for n queues
> > 2. The number of queues is reduced, say to m (where m < n)
> > 3. The user then increases the number of queues, say back to n
> >
> > It seems to me that in this scenario it's reasonable to preserve
> > the settings for queues 0 to m, bit not queues m + 1 to n.
>
> Hi Simon,
>
> I just did a quick test and it seems new settings are preserved in the above
> scenario: all n queues have the new coalescing settings.
Hi Ahmed,
Thanks for looking into this.
> > But perhaps this point is orthogonal to this change.
> > I am unsure.
> >
>
> Agreed, but let me know if it is a showstopper.
If preserving the status of all n queues, rather than just the first m
queues, in the scenario described above is new behaviour added by this
patch then I would lean towards yes. Else no.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-24 9:40 ` Simon Horman
@ 2025-06-24 16:13 ` Ahmed Zaki
2025-06-24 18:24 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Ahmed Zaki @ 2025-06-24 16:13 UTC (permalink / raw)
To: Simon Horman; +Cc: intel-wired-lan, netdev, Madhu Chittim
On 2025-06-24 3:40 a.m., Simon Horman wrote:
> On Mon, Jun 23, 2025 at 09:48:02AM -0600, Ahmed Zaki wrote:
>>
>>
>> On 2025-06-21 6:13 a.m., Simon Horman wrote:
>>> On Fri, Jun 20, 2025 at 11:15:48AM -0600, Ahmed Zaki wrote:
>>>> The IRQ coalescing config currently reside only inside struct
>>>> idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
>>>> re-allocated during resets. This leads to user-set coalesce configuration
>>>> to be lost.
>>>>
>>>> Add new fields to struct idpf_vport_user_config_data to save the user
>>>> settings and re-apply them after reset.
>>>>
>>>> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
>>>> Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
>>>
>>> Hi Ahmed,
>>>
>>> I am wondering if this patch also preserves coalescing settings in the case
>>> where.
>>>
>>> 1. User sets coalescence for n queues
>>> 2. The number of queues is reduced, say to m (where m < n)
>>> 3. The user then increases the number of queues, say back to n
>>>
>>> It seems to me that in this scenario it's reasonable to preserve
>>> the settings for queues 0 to m, bit not queues m + 1 to n.
>>
>> Hi Simon,
>>
>> I just did a quick test and it seems new settings are preserved in the above
>> scenario: all n queues have the new coalescing settings.
>
> Hi Ahmed,
>
> Thanks for looking into this.
>
>>> But perhaps this point is orthogonal to this change.
>>> I am unsure.
>>>
>>
>> Agreed, but let me know if it is a showstopper.
>
> If preserving the status of all n queues, rather than just the first m
> queues, in the scenario described above is new behaviour added by this
> patch then I would lean towards yes. Else no.
>
>
I don't believe we can call this new behavior. Actually, the napi IRQ
affinity pushed to CORE few weeks ago behaves in the same manner;
deleting queues and re-adding them restores the user-set IRQ affinity.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-24 16:13 ` Ahmed Zaki
@ 2025-06-24 18:24 ` Simon Horman
0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2025-06-24 18:24 UTC (permalink / raw)
To: Ahmed Zaki; +Cc: intel-wired-lan, netdev, Madhu Chittim
On Tue, Jun 24, 2025 at 10:13:38AM -0600, Ahmed Zaki wrote:
>
>
> On 2025-06-24 3:40 a.m., Simon Horman wrote:
> > On Mon, Jun 23, 2025 at 09:48:02AM -0600, Ahmed Zaki wrote:
> > >
> > >
> > > On 2025-06-21 6:13 a.m., Simon Horman wrote:
> > > > On Fri, Jun 20, 2025 at 11:15:48AM -0600, Ahmed Zaki wrote:
> > > > > The IRQ coalescing config currently reside only inside struct
> > > > > idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
> > > > > re-allocated during resets. This leads to user-set coalesce configuration
> > > > > to be lost.
> > > > >
> > > > > Add new fields to struct idpf_vport_user_config_data to save the user
> > > > > settings and re-apply them after reset.
> > > > >
> > > > > Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> > > > > Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
> > > >
> > > > Hi Ahmed,
> > > >
> > > > I am wondering if this patch also preserves coalescing settings in the case
> > > > where.
> > > >
> > > > 1. User sets coalescence for n queues
> > > > 2. The number of queues is reduced, say to m (where m < n)
> > > > 3. The user then increases the number of queues, say back to n
> > > >
> > > > It seems to me that in this scenario it's reasonable to preserve
> > > > the settings for queues 0 to m, bit not queues m + 1 to n.
> > >
> > > Hi Simon,
> > >
> > > I just did a quick test and it seems new settings are preserved in the above
> > > scenario: all n queues have the new coalescing settings.
> >
> > Hi Ahmed,
> >
> > Thanks for looking into this.
> >
> > > > But perhaps this point is orthogonal to this change.
> > > > I am unsure.
> > > >
> > >
> > > Agreed, but let me know if it is a showstopper.
> >
> > If preserving the status of all n queues, rather than just the first m
> > queues, in the scenario described above is new behaviour added by this
> > patch then I would lean towards yes. Else no.
> >
> >
>
> I don't believe we can call this new behavior. Actually, the napi IRQ
> affinity pushed to CORE few weeks ago behaves in the same manner; deleting
> queues and re-adding them restores the user-set IRQ affinity.
Right, in that case it's certainly not a showstopper.
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-20 17:15 [PATCH iwl-next] idpf: preserve coalescing settings across resets Ahmed Zaki
2025-06-21 12:13 ` Simon Horman
@ 2025-06-26 17:06 ` Willem de Bruijn
2025-07-07 22:16 ` [Intel-wired-lan] " Salin, Samuel
2 siblings, 0 replies; 8+ messages in thread
From: Willem de Bruijn @ 2025-06-26 17:06 UTC (permalink / raw)
To: Ahmed Zaki, intel-wired-lan; +Cc: netdev, Ahmed Zaki, Madhu Chittim
Ahmed Zaki wrote:
> The IRQ coalescing config currently reside only inside struct
> idpf_q_vector. However, all idpf_q_vector structs are de-allocated and
> re-allocated during resets. This leads to user-set coalesce configuration
> to be lost.
>
> Add new fields to struct idpf_vport_user_config_data to save the user
> settings and re-apply them after reset.
>
> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Intel-wired-lan] [PATCH iwl-next] idpf: preserve coalescing settings across resets
2025-06-20 17:15 [PATCH iwl-next] idpf: preserve coalescing settings across resets Ahmed Zaki
2025-06-21 12:13 ` Simon Horman
2025-06-26 17:06 ` Willem de Bruijn
@ 2025-07-07 22:16 ` Salin, Samuel
2 siblings, 0 replies; 8+ messages in thread
From: Salin, Samuel @ 2025-07-07 22:16 UTC (permalink / raw)
To: Zaki, Ahmed, intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org, Zaki, Ahmed, Chittim, Madhu
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Ahmed Zaki
> Sent: Friday, June 20, 2025 10:16 AM
> To: intel-wired-lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; Zaki, Ahmed <ahmed.zaki@intel.com>; Chittim,
> Madhu <madhu.chittim@intel.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next] idpf: preserve coalescing settings
> across resets
>
> The IRQ coalescing config currently reside only inside struct idpf_q_vector.
> However, all idpf_q_vector structs are de-allocated and re-allocated during
> resets. This leads to user-set coalesce configuration to be lost.
>
> Add new fields to struct idpf_vport_user_config_data to save the user settings
> and re-apply them after reset.
>
> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com>
> Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
> ---
> 2.43.0
Tested-by: Samuel Salin <Samuel.salin@intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-07-07 22:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 17:15 [PATCH iwl-next] idpf: preserve coalescing settings across resets Ahmed Zaki
2025-06-21 12:13 ` Simon Horman
2025-06-23 15:48 ` Ahmed Zaki
2025-06-24 9:40 ` Simon Horman
2025-06-24 16:13 ` Ahmed Zaki
2025-06-24 18:24 ` Simon Horman
2025-06-26 17:06 ` Willem de Bruijn
2025-07-07 22:16 ` [Intel-wired-lan] " Salin, Samuel
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).