patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v3] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 devices
       [not found] <20190827065758.12152-1-junyux.jiang@intel.com>
@ 2019-09-02  2:29 ` Jiang JunyuX
  2019-09-04  3:31   ` [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device Jiang JunyuX
  0 siblings, 1 reply; 4+ messages in thread
From: Jiang JunyuX @ 2019-09-02  2:29 UTC (permalink / raw)
  To: dev; +Cc: Jiang JunyuX, stable

Interrupt mode is not working on X552/557 devices because
this devices do not enable the queue interrupt mapping,
this patch fix the issue.

Fixes: d2e72774e58c ("ixgbe/base: support X550")
Cc: stable@dpdk.org

Signed-off-by: Jiang JunyuX <junyux.jiang@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 03fc1f717..e36e1c58e 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5896,7 +5896,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t direction,
 		IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp);
 	} else if ((hw->mac.type == ixgbe_mac_82599EB) ||
 			(hw->mac.type == ixgbe_mac_X540) ||
-			(hw->mac.type == ixgbe_mac_X550)) {
+			(hw->mac.type == ixgbe_mac_X550) ||
+			(hw->mac.type == ixgbe_mac_X550EM_x)) {
 		if (direction == -1) {
 			/* other causes */
 			idx = ((queue & 1) * 8);
@@ -6026,6 +6027,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
 		case ixgbe_mac_82599EB:
 		case ixgbe_mac_X540:
 		case ixgbe_mac_X550:
+		case ixgbe_mac_X550EM_x:
 			ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID);
 			break;
 		default:
-- 
2.17.1


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

* [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device
  2019-09-02  2:29 ` [dpdk-stable] [PATCH v3] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 devices Jiang JunyuX
@ 2019-09-04  3:31   ` Jiang JunyuX
  2019-09-05  6:56     ` Yang, Qiming
  2019-09-05  8:26     ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
  0 siblings, 2 replies; 4+ messages in thread
From: Jiang JunyuX @ 2019-09-04  3:31 UTC (permalink / raw)
  To: dev; +Cc: Wenzhuo Lu, Yang Qiming, Jiang JunyuX, stable

Interrupt mode is not working on X552/557 device because
this device doesn't enable the queue interrupt mapping,
this patch fixed the issue.

Fixes: d2e72774e58c ("ixgbe/base: support X550")
Cc: stable@dpdk.org

Signed-off-by: Jiang JunyuX <junyux.jiang@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 03fc1f717..e36e1c58e 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5896,7 +5896,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t direction,
 		IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp);
 	} else if ((hw->mac.type == ixgbe_mac_82599EB) ||
 			(hw->mac.type == ixgbe_mac_X540) ||
-			(hw->mac.type == ixgbe_mac_X550)) {
+			(hw->mac.type == ixgbe_mac_X550) ||
+			(hw->mac.type == ixgbe_mac_X550EM_x)) {
 		if (direction == -1) {
 			/* other causes */
 			idx = ((queue & 1) * 8);
@@ -6026,6 +6027,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
 		case ixgbe_mac_82599EB:
 		case ixgbe_mac_X540:
 		case ixgbe_mac_X550:
+		case ixgbe_mac_X550EM_x:
 			ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID);
 			break;
 		default:
-- 
2.17.1


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

* Re: [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device
  2019-09-04  3:31   ` [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device Jiang JunyuX
@ 2019-09-05  6:56     ` Yang, Qiming
  2019-09-05  8:26     ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
  1 sibling, 0 replies; 4+ messages in thread
From: Yang, Qiming @ 2019-09-05  6:56 UTC (permalink / raw)
  To: Jiang, JunyuX, dev; +Cc: Lu, Wenzhuo, stable, Ye, Xiaolong

> -----Original Message-----
> From: Jiang, JunyuX
> Sent: Wednesday, September 4, 2019 11:32 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Yang, Qiming
> <qiming.yang@intel.com>; Jiang, JunyuX <junyux.jiang@intel.com>;
> stable@dpdk.org
> Subject: [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device
> 
> Interrupt mode is not working on X552/557 device because this device
> doesn't enable the queue interrupt mapping, this patch fixed the issue.
> 
> Fixes: d2e72774e58c ("ixgbe/base: support X550")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Jiang JunyuX <junyux.jiang@intel.com>
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c
> b/drivers/net/ixgbe/ixgbe_ethdev.c
> index 03fc1f717..e36e1c58e 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -5896,7 +5896,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t
> direction,
>  		IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp);
>  	} else if ((hw->mac.type == ixgbe_mac_82599EB) ||
>  			(hw->mac.type == ixgbe_mac_X540) ||
> -			(hw->mac.type == ixgbe_mac_X550)) {
> +			(hw->mac.type == ixgbe_mac_X550) ||
> +			(hw->mac.type == ixgbe_mac_X550EM_x)) {
>  		if (direction == -1) {
>  			/* other causes */
>  			idx = ((queue & 1) * 8);
> @@ -6026,6 +6027,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
>  		case ixgbe_mac_82599EB:
>  		case ixgbe_mac_X540:
>  		case ixgbe_mac_X550:
> +		case ixgbe_mac_X550EM_x:
>  			ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID);
>  			break;
>  		default:
> --
> 2.17.1

Acked-by: Qiming Yang <qiming.yang@intel.com>

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

* Re: [dpdk-stable] [dpdk-dev] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device
  2019-09-04  3:31   ` [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device Jiang JunyuX
  2019-09-05  6:56     ` Yang, Qiming
@ 2019-09-05  8:26     ` Ye Xiaolong
  1 sibling, 0 replies; 4+ messages in thread
From: Ye Xiaolong @ 2019-09-05  8:26 UTC (permalink / raw)
  To: Jiang JunyuX; +Cc: dev, Wenzhuo Lu, Yang Qiming, stable

On 09/04, Jiang JunyuX wrote:
>Interrupt mode is not working on X552/557 device because
>this device doesn't enable the queue interrupt mapping,
>this patch fixed the issue.
>
>Fixes: d2e72774e58c ("ixgbe/base: support X550")
>Cc: stable@dpdk.org
>
>Signed-off-by: Jiang JunyuX <junyux.jiang@intel.com>
>---
> drivers/net/ixgbe/ixgbe_ethdev.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
>index 03fc1f717..e36e1c58e 100644
>--- a/drivers/net/ixgbe/ixgbe_ethdev.c
>+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
>@@ -5896,7 +5896,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t direction,
> 		IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp);
> 	} else if ((hw->mac.type == ixgbe_mac_82599EB) ||
> 			(hw->mac.type == ixgbe_mac_X540) ||
>-			(hw->mac.type == ixgbe_mac_X550)) {
>+			(hw->mac.type == ixgbe_mac_X550) ||
>+			(hw->mac.type == ixgbe_mac_X550EM_x)) {
> 		if (direction == -1) {
> 			/* other causes */
> 			idx = ((queue & 1) * 8);
>@@ -6026,6 +6027,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev)
> 		case ixgbe_mac_82599EB:
> 		case ixgbe_mac_X540:
> 		case ixgbe_mac_X550:
>+		case ixgbe_mac_X550EM_x:
> 			ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID);
> 			break;
> 		default:
>-- 
>2.17.1
>

Applied to dpdk-next-net-intel with Qiming's ack.

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

end of thread, other threads:[~2019-09-05  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190827065758.12152-1-junyux.jiang@intel.com>
2019-09-02  2:29 ` [dpdk-stable] [PATCH v3] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 devices Jiang JunyuX
2019-09-04  3:31   ` [dpdk-stable] [PATCH v4] net/ixgbe: fix Rx/Tx queue interrupt for X552/557 device Jiang JunyuX
2019-09-05  6:56     ` Yang, Qiming
2019-09-05  8:26     ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong

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