Skip to contentSkip to conversation

i40e: ice: ixgbe: ixgbevf: igb: igc: add correct exception tracing for XDP

PATCH In review Magnus Karlsson 4 participants 14 messages May 10, 2021 – May 28, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover i40e: ice: ixgbe: ixgbevf: igb: igc: add correct exception tracing for XDP

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

This patch set fixes this for all Intel drivers with XDP support.

v1 -> v2:
* Applied fix to new XDP support in igc driver
* Rebased on latest net

Thanks: Magnus

Magnus Karlsson (6):
i40e: add correct exception tracing for XDP
ice: add correct exception tracing for XDP
ixgbe: add correct exception tracing for XDP
igb: add correct exception tracing for XDP
ixgbevf: add correct exception tracing for XDP
igc: add correct exception tracing for XDP

 drivers/net/ethernet/intel/i40e/i40e_txrx.c      |  7 ++++++-
 drivers/net/ethernet/intel/i40e/i40e_xsk.c       |  8 ++++++--
 drivers/net/ethernet/intel/ice/ice_txrx.c        | 12 +++++++++---
 drivers/net/ethernet/intel/ice/ice_xsk.c         |  8 ++++++--
 drivers/net/ethernet/intel/igb/igb_main.c        | 10 ++++++----
 drivers/net/ethernet/intel/igc/igc_main.c        | 11 +++++------
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c    | 16 ++++++++--------
 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c     | 14 ++++++++------
 .../net/ethernet/intel/ixgbevf/ixgbevf_main.c    |  3 +++
 9 files changed, 57 insertions(+), 32 deletions(-)

base-commit: b741596468b010af2846b75f5e75a842ce344a6e --
2.29.0

#1 lore raw

PATCH v2 1/6 i40e: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 74608d17fe29 ("i40e: add support for XDP_TX action")
Fixes 0a714186d3c0 ("i40e: add AF_XDP zero-copy Rx support")
---
 drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 ++++++-
 drivers/net/ethernet/intel/i40e/i40e_xsk.c  | 8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_txrx.c +6 -1
index de70c16ef619..b883ab809df3 100644
@@ -2313,15 +2313,20 @@ static int i40e_run_xdp(struct i40e_ring *rx_ring, struct xdp_buff *xdp)
 	case XDP_TX:
 		xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index];
 		result = i40e_xmit_xdp_tx_ring(xdp, xdp_ring);
+		if (result == I40E_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	case XDP_REDIRECT:
 		err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
-		result = !err ? I40E_XDP_REDIR : I40E_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
+		result = I40E_XDP_REDIR;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough; /* handle aborts by dropping packet */
 	case XDP_DROP:
drivers/net/ethernet/intel/i40e/i40e_xsk.c +6 -2
index 46d884417c63..68f177a86403 100644
@@ -162,9 +162,10 @@ static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp)
 
 	if (likely(act == XDP_REDIRECT)) {
 		err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
-		result = !err ? I40E_XDP_REDIR : I40E_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
 		rcu_read_unlock();
-		return result;
+		return I40E_XDP_REDIR;
 	}
 
 	switch (act) {
@@ -173,11 +174,14 @@ static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp)
 	case XDP_TX:
 		xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->queue_index];
 		result = i40e_xmit_xdp_tx_ring(xdp, xdp_ring);
+		if (result == I40E_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough; /* handle aborts by dropping packet */
 	case XDP_DROP:
Signature · 1 line
2.29.0
Tested-by on v2 1/6
#2 lore raw

RE: [Intel-wired-lan] [PATCH intel-net v2 1/6] i40e: add correct exception tracing for XDP

Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Magnus Karlsson
Sent: Monday, May 10, 2021 3:09 PM
To: Karlsson, Magnus <[email protected]>; intel-wired-
lan at lists.osuosl.org; Nguyen, Anthony L <[email protected]>; Fijalkowski, Maciej <[email protected]>
Cc: netdev at vger.kernel.org; brouer at redhat.com
Subject: [Intel-wired-lan] [PATCH intel-net v2 1/6] i40e: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 9 lines
Fixes 74608d17fe29 ("i40e: add support for XDP_TX action")
Fixes 0a714186d3c0 ("i40e: add AF_XDP zero-copy Rx support")
---
 drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 ++++++-
drivers/net/ethernet/intel/i40e/i40e_xsk.c  | 8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)
#3 lore raw

PATCH v2 2/6 ice: add correct exception tracing for XDP

In reply to Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes efc2214b6047 ("ice: Add support for XDP")
Fixes 2d4238f55697 ("ice: Add support for AF_XDP")
---
 drivers/net/ethernet/intel/ice/ice_txrx.c | 12 +++++++++---
 drivers/net/ethernet/intel/ice/ice_xsk.c  |  8 ++++++--
 2 files changed, 15 insertions(+), 5 deletions(-)
drivers/net/ethernet/intel/ice/ice_txrx.c +9 -3
index e2b4b29ea207..93e5d9ebfd74 100644
@@ -523,7 +523,7 @@ ice_run_xdp(struct ice_ring *rx_ring, struct xdp_buff *xdp,
 	    struct bpf_prog *xdp_prog)
 {
 	struct ice_ring *xdp_ring;
-	int err;
+	int err, result;
 	u32 act;
 
 	act = bpf_prog_run_xdp(xdp_prog, xdp);
@@ -532,14 +532,20 @@ ice_run_xdp(struct ice_ring *rx_ring, struct xdp_buff *xdp,
 		return ICE_XDP_PASS;
 	case XDP_TX:
 		xdp_ring = rx_ring->vsi->xdp_rings[smp_processor_id()];
-		return ice_xmit_xdp_buff(xdp, xdp_ring);
+		result = ice_xmit_xdp_buff(xdp, xdp_ring);
+		if (result == ICE_XDP_CONSUMED)
+			goto out_failure;
+		return result;
 	case XDP_REDIRECT:
 		err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
-		return !err ? ICE_XDP_REDIR : ICE_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
+		return ICE_XDP_REDIR;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough;
 	case XDP_DROP:
drivers/net/ethernet/intel/ice/ice_xsk.c +6 -2
index faa7b8d96adb..7228e4d427bc 100644
@@ -473,9 +473,10 @@ ice_run_xdp_zc(struct ice_ring *rx_ring, struct xdp_buff *xdp)
 
 	if (likely(act == XDP_REDIRECT)) {
 		err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
-		result = !err ? ICE_XDP_REDIR : ICE_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
 		rcu_read_unlock();
-		return result;
+		return ICE_XDP_REDIR;
 	}
 
 	switch (act) {
@@ -484,11 +485,14 @@ ice_run_xdp_zc(struct ice_ring *rx_ring, struct xdp_buff *xdp)
 	case XDP_TX:
 		xdp_ring = rx_ring->vsi->xdp_rings[rx_ring->q_index];
 		result = ice_xmit_xdp_buff(xdp, xdp_ring);
+		if (result == ICE_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough;
 	case XDP_DROP:
Signature · 1 line
2.29.0
Tested-by on v2 2/6
#4 lore raw

RE: [Intel-wired-lan] [PATCH intel-net v2 2/6] ice: add correct exception tracing for XDP

Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Magnus Karlsson
Sent: Monday, May 10, 2021 3:09 PM
To: Karlsson, Magnus <[email protected]>; intel-wired- lan at lists.osuosl.org; Nguyen, Anthony L <[email protected]>; Fijalkowski, Maciej <[email protected]>
Cc: netdev at vger.kernel.org; brouer at redhat.com
Subject: [Intel-wired-lan] [PATCH intel-net v2 2/6] ice: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 9 lines
Fixes efc2214b6047 ("ice: Add support for XDP")
Fixes 2d4238f55697 ("ice: Add support for AF_XDP")
---
 drivers/net/ethernet/intel/ice/ice_txrx.c | 12 +++++++++---
drivers/net/ethernet/intel/ice/ice_xsk.c  |  8 ++++++--
 2 files changed, 15 insertions(+), 5 deletions(-)
#5 lore raw

PATCH v2 3/6 ixgbe: add correct exception tracing for XDP

In reply to Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 33fdc82f0883 ("ixgbe: add support for XDP_TX action")
Fixes d0bcacd0a130 ("ixgbe: add AF_XDP zero-copy Rx support")
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 16 ++++++++--------
 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c  | 14 ++++++++------
 2 files changed, 16 insertions(+), 14 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +8 -8
index c5ec17d19c59..2ac5b82676f3 100644
@@ -2213,23 +2213,23 @@ static struct sk_buff *ixgbe_run_xdp(struct ixgbe_adapter *adapter,
 		break;
 	case XDP_TX:
 		xdpf = xdp_convert_buff_to_frame(xdp);
-		if (unlikely(!xdpf)) {
-			result = IXGBE_XDP_CONSUMED;
-			break;
-		}
+		if (unlikely(!xdpf))
+			goto out_failure;
 		result = ixgbe_xmit_xdp_ring(adapter, xdpf);
+		if (result == IXGBE_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	case XDP_REDIRECT:
 		err = xdp_do_redirect(adapter->netdev, xdp, xdp_prog);
-		if (!err)
-			result = IXGBE_XDP_REDIR;
-		else
-			result = IXGBE_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
+		result = IXGBE_XDP_REDIR;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough; /* handle aborts by dropping packet */
 	case XDP_DROP:
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c +8 -6
index 91ad5b902673..f72d2978263b 100644
@@ -106,9 +106,10 @@ static int ixgbe_run_xdp_zc(struct ixgbe_adapter *adapter,
 
 	if (likely(act == XDP_REDIRECT)) {
 		err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog);
-		result = !err ? IXGBE_XDP_REDIR : IXGBE_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
 		rcu_read_unlock();
-		return result;
+		return IXGBE_XDP_REDIR;
 	}
 
 	switch (act) {
@@ -116,16 +117,17 @@ static int ixgbe_run_xdp_zc(struct ixgbe_adapter *adapter,
 		break;
 	case XDP_TX:
 		xdpf = xdp_convert_buff_to_frame(xdp);
-		if (unlikely(!xdpf)) {
-			result = IXGBE_XDP_CONSUMED;
-			break;
-		}
+		if (unlikely(!xdpf))
+			goto out_failure;
 		result = ixgbe_xmit_xdp_ring(adapter, xdpf);
+		if (result == IXGBE_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough; /* handle aborts by dropping packet */
 	case XDP_DROP:
Signature · 1 line
2.29.0
Tested-by on v2 3/6
#6 lore raw

RE: [Intel-wired-lan] [PATCH intel-net v2 3/6] ixgbe: add correct exception tracing for XDP

Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Magnus Karlsson
Sent: Monday, May 10, 2021 3:09 PM
To: Karlsson, Magnus <[email protected]>; intel-wired- lan at lists.osuosl.org; Nguyen, Anthony L <[email protected]>; Fijalkowski, Maciej <[email protected]>
Cc: netdev at vger.kernel.org; brouer at redhat.com
Subject: [Intel-wired-lan] [PATCH intel-net v2 3/6] ixgbe: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 9 lines
Fixes 33fdc82f0883 ("ixgbe: add support for XDP_TX action")
Fixes d0bcacd0a130 ("ixgbe: add AF_XDP zero-copy Rx support")
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 16 ++++++++--------
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c  | 14 ++++++++------
 2 files changed, 16 insertions(+), 14 deletions(-)
#7 lore raw

PATCH v2 4/6 igb: add correct exception tracing for XDP

In reply to Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 9cbc948b5a20 ("igb: add XDP support")
---
 drivers/net/ethernet/intel/igb/igb_main.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/igb/igb_main.c +6 -4
index 038a9fd1af44..004a5b15fadb 100644
@@ -8401,18 +8401,20 @@ static struct sk_buff *igb_run_xdp(struct igb_adapter *adapter,
 		break;
 	case XDP_TX:
 		result = igb_xdp_xmit_back(adapter, xdp);
+		if (result == IGB_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	case XDP_REDIRECT:
 		err = xdp_do_redirect(adapter->netdev, xdp, xdp_prog);
-		if (!err)
-			result = IGB_XDP_REDIR;
-		else
-			result = IGB_XDP_CONSUMED;
+		if (err)
+			goto out_failure;
+		result = IGB_XDP_REDIR;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough;
 	case XDP_DROP:
Signature · 1 line
2.29.0
Tested-by on v2 4/6
#8 lore raw

RE: [Intel-wired-lan] [PATCH intel-net v2 4/6] igb: add correct exception tracing for XDP

Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Magnus Karlsson
Sent: Monday, May 10, 2021 3:09 PM
To: Karlsson, Magnus <[email protected]>; intel-wired- lan at lists.osuosl.org; Nguyen, Anthony L <[email protected]>; Fijalkowski, Maciej <[email protected]>
Cc: netdev at vger.kernel.org; brouer at redhat.com
Subject: [Intel-wired-lan] [PATCH intel-net v2 4/6] igb: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 7 lines
Fixes 9cbc948b5a20 ("igb: add XDP support")
---
 drivers/net/ethernet/intel/igb/igb_main.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
#9 lore raw

PATCH v2 5/6 ixgbevf: add correct exception tracing for XDP

In reply to Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 21092e9ce8b1 ("ixgbevf: Add support for XDP_TX action")
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +3 -0
index ba2ed8a43d2d..0e733cc15c58 100644
@@ -1067,11 +1067,14 @@ static struct sk_buff *ixgbevf_run_xdp(struct ixgbevf_adapter *adapter,
 	case XDP_TX:
 		xdp_ring = adapter->xdp_ring[rx_ring->queue_index];
 		result = ixgbevf_xmit_xdp_ring(xdp_ring, xdp);
+		if (result == IXGBEVF_XDP_CONSUMED)
+			goto out_failure;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(rx_ring->netdev, xdp_prog, act);
 		fallthrough; /* handle aborts by dropping packet */
 	case XDP_DROP:
Signature · 1 line
2.29.0
Tested-by on v2 5/6
#10 lore raw

RE: [Intel-wired-lan] [PATCH intel-net v2 5/6] ixgbevf: add correct exception tracing for XDP

Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Magnus Karlsson
Sent: Monday, May 10, 2021 3:09 PM
To: Karlsson, Magnus <[email protected]>; intel-wired- lan at lists.osuosl.org; Nguyen, Anthony L <[email protected]>; Fijalkowski, Maciej <[email protected]>
Cc: netdev at vger.kernel.org; brouer at redhat.com
Subject: [Intel-wired-lan] [PATCH intel-net v2 5/6] ixgbevf: add correct exception tracing for XDP

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 7 lines
Fixes 21092e9ce8b1 ("ixgbevf: Add support for XDP_TX action")
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +++
 1 file changed, 3 insertions(+)
#11 lore raw

PATCH v2 6/6 igc: add correct exception tracing for XDP

In reply to Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 73f1071c1d29 ("igc: Add support for XDP_TX action")
Fixes 4ff320361092 ("igc: Add support for XDP_REDIRECT action")
---
 drivers/net/ethernet/intel/igc/igc_main.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/net/ethernet/intel/igc/igc_main.c +5 -6
index 069471b7ffb0..f1adf154ec4a 100644
@@ -2047,20 +2047,19 @@ static struct sk_buff *igc_xdp_run_prog(struct igc_adapter *adapter,
 		break;
 	case XDP_TX:
 		if (igc_xdp_xmit_back(adapter, xdp) < 0)
-			res = IGC_XDP_CONSUMED;
-		else
-			res = IGC_XDP_TX;
+			goto out_failure;
+		res = IGC_XDP_TX;
 		break;
 	case XDP_REDIRECT:
 		if (xdp_do_redirect(adapter->netdev, xdp, prog) < 0)
-			res = IGC_XDP_CONSUMED;
-		else
-			res = IGC_XDP_REDIRECT;
+			goto out_failure;
+		res = IGC_XDP_REDIRECT;
 		break;
 	default:
 		bpf_warn_invalid_xdp_action(act);
 		fallthrough;
 	case XDP_ABORTED:
+out_failure:
 		trace_xdp_exception(adapter->netdev, prog, act);
 		fallthrough;
 	case XDP_DROP:
Signature · 1 line
2.29.0
#12 lore raw

Re: [Intel-wired-lan] [PATCH intel-net v2 6/6] igc: add correct exception tracing for XDP

Quoted 15 lines · Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Fixes 73f1071c1d29 ("igc: Add support for XDP_TX action")
Fixes 4ff320361092 ("igc: Add support for XDP_REDIRECT action")
---
  drivers/net/ethernet/intel/igc/igc_main.c | 11 +++++------
  1 file changed, 5 insertions(+), 6 deletions(-)
Tested-by on v2 6/6
#13 lore raw

Re: [Intel-wired-lan] [PATCH intel-net v2 6/6] igc: add correct exception tracing for XDP

In reply to Magnus Karlsson
Quoted 7 lines · Magnus Karlsson

From: Magnus Karlsson <[email protected]>

Add missing exception tracing to XDP when a number of different errors can occur. The support was only partial. Several errors where not logged which would confuse the user quite a lot not knowing where and why the packets disappeared.

Quoted 8 lines
Fixes 73f1071c1d29 ("igc: Add support for XDP_TX action")
Fixes 4ff320361092 ("igc: Add support for XDP_REDIRECT action")
---
  drivers/net/ethernet/intel/igc/igc_main.c | 11 +++++------
  1 file changed, 5 insertions(+), 6 deletions(-)