All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v1 0/2] ice_switch fixes series
@ 2023-03-13 20:36 ` Jesse Brandeburg
  0 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, Jesse Brandeburg

Fix a couple of small issues, with a small refactor to correctly handle
a possible misconfiguration of RDMA filters, and some trivial function
headers that didn't match their function.

Brett Creeley (1):
  ice: Fix ice_cfg_rdma_fltr() to only update relevant fields

Jesse Brandeburg (1):
  ice: fix W=1 headers mismatch

 drivers/net/ethernet/intel/ice/ice_switch.c   | 26 ++++++++++++++++---
 drivers/net/ethernet/intel/ice/ice_txrx.c     |  2 +-
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c |  1 +
 3 files changed, 24 insertions(+), 5 deletions(-)

-- 
2.39.2


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

* [Intel-wired-lan] [PATCH net v1 0/2] ice_switch fixes series
@ 2023-03-13 20:36 ` Jesse Brandeburg
  0 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, Jesse Brandeburg

Fix a couple of small issues, with a small refactor to correctly handle
a possible misconfiguration of RDMA filters, and some trivial function
headers that didn't match their function.

Brett Creeley (1):
  ice: Fix ice_cfg_rdma_fltr() to only update relevant fields

Jesse Brandeburg (1):
  ice: fix W=1 headers mismatch

 drivers/net/ethernet/intel/ice/ice_switch.c   | 26 ++++++++++++++++---
 drivers/net/ethernet/intel/ice/ice_txrx.c     |  2 +-
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c |  1 +
 3 files changed, 24 insertions(+), 5 deletions(-)

-- 
2.39.2

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* [PATCH net v1 1/2] ice: fix W=1 headers mismatch
  2023-03-13 20:36 ` [Intel-wired-lan] " Jesse Brandeburg
@ 2023-03-13 20:36   ` Jesse Brandeburg
  -1 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, Jesse Brandeburg, Maciej Fijalkowski, Piotr Raczynski

make modules W=1 returns:
.../ice/ice_txrx_lib.c:448: warning: Function parameter or member 'first_idx' not described in 'ice_finalize_xdp_rx'
.../ice/ice_txrx.c:948: warning: Function parameter or member 'ntc' not described in 'ice_get_rx_buf'
.../ice/ice_txrx.c:1038: warning: Excess function parameter 'rx_buf' description in 'ice_construct_skb'

Fix these warnings by adding and deleting the deviant arguments.

Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
Fixes: d7956d81f150 ("ice: Pull out next_to_clean bump out of ice_put_rx_buf()")
CC: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_txrx.c     | 2 +-
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c
index dfd22862e926..21c1e1bb214a 100644
--- a/drivers/net/ethernet/intel/ice/ice_txrx.c
+++ b/drivers/net/ethernet/intel/ice/ice_txrx.c
@@ -938,6 +938,7 @@ ice_reuse_rx_page(struct ice_rx_ring *rx_ring, struct ice_rx_buf *old_buf)
  * ice_get_rx_buf - Fetch Rx buffer and synchronize data for use
  * @rx_ring: Rx descriptor ring to transact packets on
  * @size: size of buffer to add to skb
+ * @ntc: index of next to clean element
  *
  * This function will pull an Rx buffer from the ring and synchronize it
  * for use by the CPU.
@@ -1026,7 +1027,6 @@ ice_build_skb(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp)
 /**
  * ice_construct_skb - Allocate skb and populate it
  * @rx_ring: Rx descriptor ring to transact packets on
- * @rx_buf: Rx buffer to pull data from
  * @xdp: xdp_buff pointing to the data
  *
  * This function allocates an skb. It then populates it with the page
diff --git a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
index 7bc5aa340c7d..c8322fb6f2b3 100644
--- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
@@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
  * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
  * @xdp_ring: XDP ring
  * @xdp_res: Result of the receive batch
+ * @first_idx: index to write from caller
  *
  * This function bumps XDP Tx tail and/or flush redirect map, and
  * should be called when a batch of packets has been processed in the
-- 
2.39.2


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

* [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
@ 2023-03-13 20:36   ` Jesse Brandeburg
  0 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, Jesse Brandeburg

make modules W=1 returns:
.../ice/ice_txrx_lib.c:448: warning: Function parameter or member 'first_idx' not described in 'ice_finalize_xdp_rx'
.../ice/ice_txrx.c:948: warning: Function parameter or member 'ntc' not described in 'ice_get_rx_buf'
.../ice/ice_txrx.c:1038: warning: Excess function parameter 'rx_buf' description in 'ice_construct_skb'

Fix these warnings by adding and deleting the deviant arguments.

Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
Fixes: d7956d81f150 ("ice: Pull out next_to_clean bump out of ice_put_rx_buf()")
CC: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_txrx.c     | 2 +-
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c
index dfd22862e926..21c1e1bb214a 100644
--- a/drivers/net/ethernet/intel/ice/ice_txrx.c
+++ b/drivers/net/ethernet/intel/ice/ice_txrx.c
@@ -938,6 +938,7 @@ ice_reuse_rx_page(struct ice_rx_ring *rx_ring, struct ice_rx_buf *old_buf)
  * ice_get_rx_buf - Fetch Rx buffer and synchronize data for use
  * @rx_ring: Rx descriptor ring to transact packets on
  * @size: size of buffer to add to skb
+ * @ntc: index of next to clean element
  *
  * This function will pull an Rx buffer from the ring and synchronize it
  * for use by the CPU.
@@ -1026,7 +1027,6 @@ ice_build_skb(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp)
 /**
  * ice_construct_skb - Allocate skb and populate it
  * @rx_ring: Rx descriptor ring to transact packets on
- * @rx_buf: Rx buffer to pull data from
  * @xdp: xdp_buff pointing to the data
  *
  * This function allocates an skb. It then populates it with the page
diff --git a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
index 7bc5aa340c7d..c8322fb6f2b3 100644
--- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
@@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
  * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
  * @xdp_ring: XDP ring
  * @xdp_res: Result of the receive batch
+ * @first_idx: index to write from caller
  *
  * This function bumps XDP Tx tail and/or flush redirect map, and
  * should be called when a batch of packets has been processed in the
-- 
2.39.2

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields
  2023-03-13 20:36 ` [Intel-wired-lan] " Jesse Brandeburg
@ 2023-03-13 20:36   ` Jesse Brandeburg
  -1 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, Brett Creeley, Robert Malz, Jesse Brandeburg, Piotr Raczynski

From: Brett Creeley <brett.creeley@intel.com>

The current implementation causes ice_vsi_update() to update all VSI
fields based on the cached VSI context. This also assumes that the
ICE_AQ_VSI_PROP_Q_OPT_VALID bit is set. This can cause problems if the
VSI context is not correctly synced by the driver. Fix this by only
updating the fields that correspond to ICE_AQ_VSI_PROP_Q_OPT_VALID.
Also, make sure to save the updated result in the cached VSI context
on success.

Fixes: 348048e724a0 ("ice: Implement iidc operations")
Co-developed-by: Robert Malz <robertx.malz@intel.com>
Signed-off-by: Robert Malz <robertx.malz@intel.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_switch.c | 26 +++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_switch.c b/drivers/net/ethernet/intel/ice/ice_switch.c
index 61f844d22512..46b36851af46 100644
--- a/drivers/net/ethernet/intel/ice/ice_switch.c
+++ b/drivers/net/ethernet/intel/ice/ice_switch.c
@@ -1780,18 +1780,36 @@ ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
 int
 ice_cfg_rdma_fltr(struct ice_hw *hw, u16 vsi_handle, bool enable)
 {
-	struct ice_vsi_ctx *ctx;
+	struct ice_vsi_ctx *ctx, *cached_ctx;
+	int status;
+
+	cached_ctx = ice_get_vsi_ctx(hw, vsi_handle);
+	if (!cached_ctx)
+		return -ENOENT;
 
-	ctx = ice_get_vsi_ctx(hw, vsi_handle);
+	ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
 	if (!ctx)
-		return -EIO;
+		return -ENOMEM;
+
+	ctx->info.q_opt_rss = cached_ctx->info.q_opt_rss;
+	ctx->info.q_opt_tc = cached_ctx->info.q_opt_tc;
+	ctx->info.q_opt_flags = cached_ctx->info.q_opt_flags;
+
+	ctx->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_Q_OPT_VALID);
 
 	if (enable)
 		ctx->info.q_opt_flags |= ICE_AQ_VSI_Q_OPT_PE_FLTR_EN;
 	else
 		ctx->info.q_opt_flags &= ~ICE_AQ_VSI_Q_OPT_PE_FLTR_EN;
 
-	return ice_update_vsi(hw, vsi_handle, ctx, NULL);
+	status = ice_update_vsi(hw, vsi_handle, ctx, NULL);
+	if (!status) {
+		cached_ctx->info.q_opt_flags = ctx->info.q_opt_flags;
+		cached_ctx->info.valid_sections |= ctx->info.valid_sections;
+	}
+
+	kfree(ctx);
+	return status;
 }
 
 /**
-- 
2.39.2


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

* [Intel-wired-lan] [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields
@ 2023-03-13 20:36   ` Jesse Brandeburg
  0 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-13 20:36 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, Brett Creeley, Jesse Brandeburg, Robert Malz

From: Brett Creeley <brett.creeley@intel.com>

The current implementation causes ice_vsi_update() to update all VSI
fields based on the cached VSI context. This also assumes that the
ICE_AQ_VSI_PROP_Q_OPT_VALID bit is set. This can cause problems if the
VSI context is not correctly synced by the driver. Fix this by only
updating the fields that correspond to ICE_AQ_VSI_PROP_Q_OPT_VALID.
Also, make sure to save the updated result in the cached VSI context
on success.

Fixes: 348048e724a0 ("ice: Implement iidc operations")
Co-developed-by: Robert Malz <robertx.malz@intel.com>
Signed-off-by: Robert Malz <robertx.malz@intel.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_switch.c | 26 +++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_switch.c b/drivers/net/ethernet/intel/ice/ice_switch.c
index 61f844d22512..46b36851af46 100644
--- a/drivers/net/ethernet/intel/ice/ice_switch.c
+++ b/drivers/net/ethernet/intel/ice/ice_switch.c
@@ -1780,18 +1780,36 @@ ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
 int
 ice_cfg_rdma_fltr(struct ice_hw *hw, u16 vsi_handle, bool enable)
 {
-	struct ice_vsi_ctx *ctx;
+	struct ice_vsi_ctx *ctx, *cached_ctx;
+	int status;
+
+	cached_ctx = ice_get_vsi_ctx(hw, vsi_handle);
+	if (!cached_ctx)
+		return -ENOENT;
 
-	ctx = ice_get_vsi_ctx(hw, vsi_handle);
+	ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
 	if (!ctx)
-		return -EIO;
+		return -ENOMEM;
+
+	ctx->info.q_opt_rss = cached_ctx->info.q_opt_rss;
+	ctx->info.q_opt_tc = cached_ctx->info.q_opt_tc;
+	ctx->info.q_opt_flags = cached_ctx->info.q_opt_flags;
+
+	ctx->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_Q_OPT_VALID);
 
 	if (enable)
 		ctx->info.q_opt_flags |= ICE_AQ_VSI_Q_OPT_PE_FLTR_EN;
 	else
 		ctx->info.q_opt_flags &= ~ICE_AQ_VSI_Q_OPT_PE_FLTR_EN;
 
-	return ice_update_vsi(hw, vsi_handle, ctx, NULL);
+	status = ice_update_vsi(hw, vsi_handle, ctx, NULL);
+	if (!status) {
+		cached_ctx->info.q_opt_flags = ctx->info.q_opt_flags;
+		cached_ctx->info.valid_sections |= ctx->info.valid_sections;
+	}
+
+	kfree(ctx);
+	return status;
 }
 
 /**
-- 
2.39.2

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
  2023-03-13 20:36   ` [Intel-wired-lan] " Jesse Brandeburg
@ 2023-03-14 13:54     ` Alexander Lobakin
  -1 siblings, 0 replies; 16+ messages in thread
From: Alexander Lobakin @ 2023-03-14 13:54 UTC (permalink / raw)
  To: Jesse Brandeburg; +Cc: netdev, intel-wired-lan

From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
Date: Mon, 13 Mar 2023 13:36:07 -0700

> make modules W=1 returns:
> .../ice/ice_txrx_lib.c:448: warning: Function parameter or member 'first_idx' not described in 'ice_finalize_xdp_rx'
> .../ice/ice_txrx.c:948: warning: Function parameter or member 'ntc' not described in 'ice_get_rx_buf'
> .../ice/ice_txrx.c:1038: warning: Excess function parameter 'rx_buf' description in 'ice_construct_skb'
> 
> Fix these warnings by adding and deleting the deviant arguments.
> 
> Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
> Fixes: d7956d81f150 ("ice: Pull out next_to_clean bump out of ice_put_rx_buf()")
> CC: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_txrx.c     | 2 +-
>  drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c
> index dfd22862e926..21c1e1bb214a 100644
> --- a/drivers/net/ethernet/intel/ice/ice_txrx.c
> +++ b/drivers/net/ethernet/intel/ice/ice_txrx.c
> @@ -938,6 +938,7 @@ ice_reuse_rx_page(struct ice_rx_ring *rx_ring, struct ice_rx_buf *old_buf)
>   * ice_get_rx_buf - Fetch Rx buffer and synchronize data for use
>   * @rx_ring: Rx descriptor ring to transact packets on
>   * @size: size of buffer to add to skb
> + * @ntc: index of next to clean element
>   *
>   * This function will pull an Rx buffer from the ring and synchronize it
>   * for use by the CPU.
> @@ -1026,7 +1027,6 @@ ice_build_skb(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp)
>  /**
>   * ice_construct_skb - Allocate skb and populate it
>   * @rx_ring: Rx descriptor ring to transact packets on
> - * @rx_buf: Rx buffer to pull data from
>   * @xdp: xdp_buff pointing to the data
>   *
>   * This function allocates an skb. It then populates it with the page
> diff --git a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> index 7bc5aa340c7d..c8322fb6f2b3 100644
> --- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> +++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> @@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
>   * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
>   * @xdp_ring: XDP ring
>   * @xdp_res: Result of the receive batch
> + * @first_idx: index to write from caller
>   *
>   * This function bumps XDP Tx tail and/or flush redirect map, and
>   * should be called when a batch of packets has been processed in the

How is Rx hotpath related to "ice_switch" O_o :D Those are 2 separate
fixes or at least the cover shouldn't say they belong to one topic.

Thanks,
Olek
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
@ 2023-03-14 13:54     ` Alexander Lobakin
  0 siblings, 0 replies; 16+ messages in thread
From: Alexander Lobakin @ 2023-03-14 13:54 UTC (permalink / raw)
  To: Jesse Brandeburg; +Cc: intel-wired-lan, netdev

From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
Date: Mon, 13 Mar 2023 13:36:07 -0700

> make modules W=1 returns:
> .../ice/ice_txrx_lib.c:448: warning: Function parameter or member 'first_idx' not described in 'ice_finalize_xdp_rx'
> .../ice/ice_txrx.c:948: warning: Function parameter or member 'ntc' not described in 'ice_get_rx_buf'
> .../ice/ice_txrx.c:1038: warning: Excess function parameter 'rx_buf' description in 'ice_construct_skb'
> 
> Fix these warnings by adding and deleting the deviant arguments.
> 
> Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
> Fixes: d7956d81f150 ("ice: Pull out next_to_clean bump out of ice_put_rx_buf()")
> CC: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_txrx.c     | 2 +-
>  drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c
> index dfd22862e926..21c1e1bb214a 100644
> --- a/drivers/net/ethernet/intel/ice/ice_txrx.c
> +++ b/drivers/net/ethernet/intel/ice/ice_txrx.c
> @@ -938,6 +938,7 @@ ice_reuse_rx_page(struct ice_rx_ring *rx_ring, struct ice_rx_buf *old_buf)
>   * ice_get_rx_buf - Fetch Rx buffer and synchronize data for use
>   * @rx_ring: Rx descriptor ring to transact packets on
>   * @size: size of buffer to add to skb
> + * @ntc: index of next to clean element
>   *
>   * This function will pull an Rx buffer from the ring and synchronize it
>   * for use by the CPU.
> @@ -1026,7 +1027,6 @@ ice_build_skb(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp)
>  /**
>   * ice_construct_skb - Allocate skb and populate it
>   * @rx_ring: Rx descriptor ring to transact packets on
> - * @rx_buf: Rx buffer to pull data from
>   * @xdp: xdp_buff pointing to the data
>   *
>   * This function allocates an skb. It then populates it with the page
> diff --git a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> index 7bc5aa340c7d..c8322fb6f2b3 100644
> --- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> +++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> @@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
>   * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
>   * @xdp_ring: XDP ring
>   * @xdp_res: Result of the receive batch
> + * @first_idx: index to write from caller
>   *
>   * This function bumps XDP Tx tail and/or flush redirect map, and
>   * should be called when a batch of packets has been processed in the

How is Rx hotpath related to "ice_switch" O_o :D Those are 2 separate
fixes or at least the cover shouldn't say they belong to one topic.

Thanks,
Olek

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
  2023-03-14 13:54     ` Alexander Lobakin
@ 2023-03-14 20:29       ` Jesse Brandeburg
  -1 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-14 20:29 UTC (permalink / raw)
  To: Alexander Lobakin; +Cc: intel-wired-lan, netdev

On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>

>> --- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
>> +++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
>> @@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
>>   * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
>>   * @xdp_ring: XDP ring
>>   * @xdp_res: Result of the receive batch
>> + * @first_idx: index to write from caller
>>   *
>>   * This function bumps XDP Tx tail and/or flush redirect map, and
>>   * should be called when a batch of packets has been processed in the
> 
> How is Rx hotpath related to "ice_switch" O_o :D Those are 2 separate
> fixes or at least the cover shouldn't say they belong to one topic.

Thanks for the review:

Quoting myself:
> Fix a couple of small issues, with a small refactor to correctly handle
> a possible misconfiguration of RDMA filters, and some trivial function
> headers that didn't match their function.

Please see the last half of the sentence, regarding fixing these trivial
comment-only issues. If you still think that isn't enough I can reword
or resend, but in this case I don't think there is anything wrong, do
you agree after my explanation? Did I miss something?

Thanks,
Jesse


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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
@ 2023-03-14 20:29       ` Jesse Brandeburg
  0 siblings, 0 replies; 16+ messages in thread
From: Jesse Brandeburg @ 2023-03-14 20:29 UTC (permalink / raw)
  To: Alexander Lobakin; +Cc: netdev, intel-wired-lan

On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>

>> --- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
>> +++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c
>> @@ -438,6 +438,7 @@ int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
>>   * ice_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
>>   * @xdp_ring: XDP ring
>>   * @xdp_res: Result of the receive batch
>> + * @first_idx: index to write from caller
>>   *
>>   * This function bumps XDP Tx tail and/or flush redirect map, and
>>   * should be called when a batch of packets has been processed in the
> 
> How is Rx hotpath related to "ice_switch" O_o :D Those are 2 separate
> fixes or at least the cover shouldn't say they belong to one topic.

Thanks for the review:

Quoting myself:
> Fix a couple of small issues, with a small refactor to correctly handle
> a possible misconfiguration of RDMA filters, and some trivial function
> headers that didn't match their function.

Please see the last half of the sentence, regarding fixing these trivial
comment-only issues. If you still think that isn't enough I can reword
or resend, but in this case I don't think there is anything wrong, do
you agree after my explanation? Did I miss something?

Thanks,
Jesse

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
  2023-03-14 20:29       ` Jesse Brandeburg
@ 2023-03-15  9:55         ` Alexander Lobakin
  -1 siblings, 0 replies; 16+ messages in thread
From: Alexander Lobakin @ 2023-03-15  9:55 UTC (permalink / raw)
  To: Jesse Brandeburg; +Cc: netdev, intel-wired-lan

From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
Date: Tue, 14 Mar 2023 13:29:41 -0700

> On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
>> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>

[...]

> Quoting myself:
>> Fix a couple of small issues, with a small refactor to correctly handle
>> a possible misconfiguration of RDMA filters, and some trivial function
>> headers that didn't match their function.
> 
> Please see the last half of the sentence, regarding fixing these trivial
> comment-only issues. If you still think that isn't enough I can reword
> or resend, but in this case I don't think there is anything wrong, do
> you agree after my explanation? Did I miss something?

I've read the cover letter, but its subject is "ice_switch fixes
series", that's why I wrote this :D That confuses a bit. I've no
problems with this spin, Tony doesn't preserve cover letter subjects anyway.

> 
> Thanks,
> Jesse
> 

Thanks,
Olek
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
@ 2023-03-15  9:55         ` Alexander Lobakin
  0 siblings, 0 replies; 16+ messages in thread
From: Alexander Lobakin @ 2023-03-15  9:55 UTC (permalink / raw)
  To: Jesse Brandeburg; +Cc: intel-wired-lan, netdev

From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
Date: Tue, 14 Mar 2023 13:29:41 -0700

> On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
>> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>

[...]

> Quoting myself:
>> Fix a couple of small issues, with a small refactor to correctly handle
>> a possible misconfiguration of RDMA filters, and some trivial function
>> headers that didn't match their function.
> 
> Please see the last half of the sentence, regarding fixing these trivial
> comment-only issues. If you still think that isn't enough I can reword
> or resend, but in this case I don't think there is anything wrong, do
> you agree after my explanation? Did I miss something?

I've read the cover letter, but its subject is "ice_switch fixes
series", that's why I wrote this :D That confuses a bit. I've no
problems with this spin, Tony doesn't preserve cover letter subjects anyway.

> 
> Thanks,
> Jesse
> 

Thanks,
Olek

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
  2023-03-15  9:55         ` Alexander Lobakin
@ 2023-03-15 16:24           ` Tony Nguyen
  -1 siblings, 0 replies; 16+ messages in thread
From: Tony Nguyen @ 2023-03-15 16:24 UTC (permalink / raw)
  To: Alexander Lobakin, Jesse Brandeburg; +Cc: netdev, intel-wired-lan



On 3/15/2023 2:55 AM, Alexander Lobakin wrote:
> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
> Date: Tue, 14 Mar 2023 13:29:41 -0700
> 
>> On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
>>> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
> 
> [...]
> 
>> Quoting myself:
>>> Fix a couple of small issues, with a small refactor to correctly handle
>>> a possible misconfiguration of RDMA filters, and some trivial function
>>> headers that didn't match their function.
>>
>> Please see the last half of the sentence, regarding fixing these trivial
>> comment-only issues. If you still think that isn't enough I can reword
>> or resend, but in this case I don't think there is anything wrong, do
>> you agree after my explanation? Did I miss something?
> 
> I've read the cover letter, but its subject is "ice_switch fixes
> series", that's why I wrote this :D That confuses a bit. I've no
> problems with this spin, Tony doesn't preserve cover letter subjects anyway.

If they are sent on as I received them, I'll carry the cover letter 
forward. However, if I add other patches to them, it won't be preserved. 
I see this getting bundled with other patches, so the subject for this 
likely won't matter.

Thanks,
Tony

>> Thanks,
>> Jesse
>>
> 
> Thanks,
> Olek
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@osuosl.org
> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 1/2] ice: fix W=1 headers mismatch
@ 2023-03-15 16:24           ` Tony Nguyen
  0 siblings, 0 replies; 16+ messages in thread
From: Tony Nguyen @ 2023-03-15 16:24 UTC (permalink / raw)
  To: Alexander Lobakin, Jesse Brandeburg; +Cc: netdev, intel-wired-lan



On 3/15/2023 2:55 AM, Alexander Lobakin wrote:
> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
> Date: Tue, 14 Mar 2023 13:29:41 -0700
> 
>> On 3/14/2023 6:54 AM, Alexander Lobakin wrote:
>>> From: Brandeburg, Jesse <jesse.brandeburg@intel.com>
> 
> [...]
> 
>> Quoting myself:
>>> Fix a couple of small issues, with a small refactor to correctly handle
>>> a possible misconfiguration of RDMA filters, and some trivial function
>>> headers that didn't match their function.
>>
>> Please see the last half of the sentence, regarding fixing these trivial
>> comment-only issues. If you still think that isn't enough I can reword
>> or resend, but in this case I don't think there is anything wrong, do
>> you agree after my explanation? Did I miss something?
> 
> I've read the cover letter, but its subject is "ice_switch fixes
> series", that's why I wrote this :D That confuses a bit. I've no
> problems with this spin, Tony doesn't preserve cover letter subjects anyway.

If they are sent on as I received them, I'll carry the cover letter 
forward. However, if I add other patches to them, it won't be preserved. 
I see this getting bundled with other patches, so the subject for this 
likely won't matter.

Thanks,
Tony

>> Thanks,
>> Jesse
>>
> 
> Thanks,
> Olek
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@osuosl.org
> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* Re: [Intel-wired-lan] [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields
  2023-03-13 20:36   ` [Intel-wired-lan] " Jesse Brandeburg
@ 2023-03-27  7:36     ` Andrysiak, Jakub
  -1 siblings, 0 replies; 16+ messages in thread
From: Andrysiak, Jakub @ 2023-03-27  7:36 UTC (permalink / raw)
  To: Brandeburg, Jesse, intel-wired-lan
  Cc: netdev, Brett Creeley, Brandeburg, Jesse, Malz, RobertX

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Jesse
> Brandeburg
> Sent: Monday, March 13, 2023 9:36 PM
> To: intel-wired-lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; Brett Creeley <brett.creeley@intel.com>;
> Brandeburg, Jesse <jesse.brandeburg@intel.com>; Malz, RobertX
> <robertx.malz@intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only
> update relevant fields
> 
> From: Brett Creeley <brett.creeley@intel.com>
> 
> The current implementation causes ice_vsi_update() to update all VSI fields
> based on the cached VSI context. This also assumes that the
> ICE_AQ_VSI_PROP_Q_OPT_VALID bit is set. This can cause problems if the VSI
> context is not correctly synced by the driver. Fix this by only updating the fields
> that correspond to ICE_AQ_VSI_PROP_Q_OPT_VALID.
> Also, make sure to save the updated result in the cached VSI context on success.
> 
> Fixes: 348048e724a0 ("ice: Implement iidc operations")
> Co-developed-by: Robert Malz <robertx.malz@intel.com>
> Signed-off-by: Robert Malz <robertx.malz@intel.com>
> Signed-off-by: Brett Creeley <brett.creeley@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_switch.c | 26 +++++++++++++++++----
>  1 file changed, 22 insertions(+), 4 deletions(-)
>  
Tested-by: Jakub Andrysiak <jakub.andrysiak@intel.com>
_______________________________________________
 Intel-wired-lan mailing list
 Intel-wired-lan@osuosl.org
 https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

* RE: [Intel-wired-lan] [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields
@ 2023-03-27  7:36     ` Andrysiak, Jakub
  0 siblings, 0 replies; 16+ messages in thread
From: Andrysiak, Jakub @ 2023-03-27  7:36 UTC (permalink / raw)
  To: Brandeburg, Jesse, intel-wired-lan
  Cc: netdev, Brett Creeley, Brandeburg, Jesse, Malz, RobertX

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Jesse
> Brandeburg
> Sent: Monday, March 13, 2023 9:36 PM
> To: intel-wired-lan@lists.osuosl.org
> Cc: netdev@vger.kernel.org; Brett Creeley <brett.creeley@intel.com>;
> Brandeburg, Jesse <jesse.brandeburg@intel.com>; Malz, RobertX
> <robertx.malz@intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only
> update relevant fields
> 
> From: Brett Creeley <brett.creeley@intel.com>
> 
> The current implementation causes ice_vsi_update() to update all VSI fields
> based on the cached VSI context. This also assumes that the
> ICE_AQ_VSI_PROP_Q_OPT_VALID bit is set. This can cause problems if the VSI
> context is not correctly synced by the driver. Fix this by only updating the fields
> that correspond to ICE_AQ_VSI_PROP_Q_OPT_VALID.
> Also, make sure to save the updated result in the cached VSI context on success.
> 
> Fixes: 348048e724a0 ("ice: Implement iidc operations")
> Co-developed-by: Robert Malz <robertx.malz@intel.com>
> Signed-off-by: Robert Malz <robertx.malz@intel.com>
> Signed-off-by: Brett Creeley <brett.creeley@intel.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_switch.c | 26 +++++++++++++++++----
>  1 file changed, 22 insertions(+), 4 deletions(-)
>  
Tested-by: Jakub Andrysiak <jakub.andrysiak@intel.com>
_______________________________________________
 Intel-wired-lan mailing list
 Intel-wired-lan@osuosl.org
 https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

end of thread, other threads:[~2023-03-27  7:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 20:36 [PATCH net v1 0/2] ice_switch fixes series Jesse Brandeburg
2023-03-13 20:36 ` [Intel-wired-lan] " Jesse Brandeburg
2023-03-13 20:36 ` [PATCH net v1 1/2] ice: fix W=1 headers mismatch Jesse Brandeburg
2023-03-13 20:36   ` [Intel-wired-lan] " Jesse Brandeburg
2023-03-14 13:54   ` Alexander Lobakin
2023-03-14 13:54     ` Alexander Lobakin
2023-03-14 20:29     ` Jesse Brandeburg
2023-03-14 20:29       ` Jesse Brandeburg
2023-03-15  9:55       ` Alexander Lobakin
2023-03-15  9:55         ` Alexander Lobakin
2023-03-15 16:24         ` Tony Nguyen
2023-03-15 16:24           ` Tony Nguyen
2023-03-13 20:36 ` [PATCH net v1 2/2] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields Jesse Brandeburg
2023-03-13 20:36   ` [Intel-wired-lan] " Jesse Brandeburg
2023-03-27  7:36   ` Andrysiak, Jakub
2023-03-27  7:36     ` Andrysiak, Jakub

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.