Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Nguyen <anthony.l.nguyen@intel.com>
To: Sasha Neftin <sashaneftin@gmail.com>, <intel-wired-lan@osuosl.org>
Subject: Re: [iwl-next, v1] igc: remove unreachable break in igc_xdp_run_prog method
Date: Tue, 13 Oct 2026 13:59:01 -0700	[thread overview]
Message-ID: <8bed166e-c70d-4a06-af4c-162e4658e400@intel.com> (raw)
In-Reply-To: <20261010095727.87751-1-sashaneftin@gmail.com>



On 10/10/2026 2:57 AM, Sasha Neftin wrote:
> The break after "return IGC_XDP_REDIRECT;" in the XDP_REDIRECT case can
> never be reached. Remove it.
> 
> No functional change.

Hi Sasha,

Thanks for the patch, but we already have it queued up:
https://lore.kernel.org/intel-wired-lan/20260902093443.93466-1-keshav74123@gmail.com/

> Assisted-by: Claude:claude-sonnet-5-5

Also, these should "Assisted-by: LLM" now.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=816d9992d9ed434ec52cfbd63080d518e535a41b

Thanks,
Tony

> Signed-off-by: Sasha Neftin <sashaneftin@gmail.com>
> ---
>   drivers/net/ethernet/intel/igc/igc_main.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> index 1fb5f3cbe93c..3b7dd104d8d9 100644
> --- a/drivers/net/ethernet/intel/igc/igc_main.c
> +++ b/drivers/net/ethernet/intel/igc/igc_main.c
> @@ -2525,7 +2525,6 @@ static int __igc_xdp_run_prog(struct igc_adapter *adapter,
>   		if (xdp_do_redirect(adapter->netdev, xdp, prog) < 0)
>   			goto out_failure;
>   		return IGC_XDP_REDIRECT;
> -		break;
>   	default:
>   		bpf_warn_invalid_xdp_action(adapter->netdev, prog, act);
>   		fallthrough;


      reply	other threads:[~2026-10-13 20:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-10  9:57 [iwl-next, v1] igc: remove unreachable break in igc_xdp_run_prog method Sasha Neftin
2026-10-13 20:59 ` Tony Nguyen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8bed166e-c70d-4a06-af4c-162e4658e400@intel.com \
    --to=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    --cc=sashaneftin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox