Skip to contentSkip to conversation

ixgbevf: Remove unused ixgbevf_hv_mbx_ops

PATCH Superseded [email protected] 2 participants 6 messages Jan 2, 2025 – Jan 5, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbevf: Remove unused ixgbevf_hv_mbx_ops

From: "Dr. David Alan Gilbert" <[email protected]>

The const struct ixgbevf_hv_mbx_ops was added in 2016 as part of commit c6d45171d706 ("ixgbevf: Support Windows hosts (Hyper-V)")

but has remained unused.

The functions it references are still referenced elsewhere.

Remove it.

---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h |  1 -
 drivers/net/ethernet/intel/ixgbevf/mbx.c     | 12 ------------
 2 files changed, 13 deletions(-)
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0 -1
index 130cb868774c..a43cb500274e 100644
@@ -439,7 +439,6 @@ extern const struct ixgbevf_info ixgbevf_82599_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X540_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info;
-extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;
 
 /* needed by ethtool.c */
 extern const char ixgbevf_driver_name[];
drivers/net/ethernet/intel/ixgbevf/mbx.c +0 -12
index a55dd978f7ca..24d0237e7a99 100644
@@ -505,15 +505,3 @@ const struct ixgbe_mbx_operations ixgbevf_mbx_ops_legacy = {
 	.check_for_ack	= ixgbevf_check_for_ack_vf,
 	.check_for_rst	= ixgbevf_check_for_rst_vf,
 };
-
-/* Mailbox operations when running on Hyper-V.
- * On Hyper-V, PF/VF communication is not through the
- * hardware mailbox; this communication is through
- * a software mediated path.
- * Most mail box operations are noop while running on
- * Hyper-V.
- */
-const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops = {
-	.init_params	= ixgbevf_init_mbx_params_vf,
-	.check_for_rst	= ixgbevf_check_for_rst_vf,
-};
Signature · 1 line
2.47.1
maintainer
#1 lore raw
Quoted 10 lines · On Thu, 2 Jan 2025 17:40:02 +0000 [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The const struct ixgbevf_hv_mbx_ops was added in 2016 as part of commit c6d45171d706 ("ixgbevf: Support Windows hosts (Hyper-V)")

but has remained unused.

The functions it references are still referenced elsewhere.

Remove it.

This one doesn't apply, reportedly.

Signature · 1 line
pw-bot: cr
#2 lore raw
Quoted 12 lines · * Jakub Kicinski ([email protected]) wrote:
Quoted 10 lines · On Thu, 2 Jan 2025 17:40:02 +0000 [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The const struct ixgbevf_hv_mbx_ops was added in 2016 as part of commit c6d45171d706 ("ixgbevf: Support Windows hosts (Hyper-V)")

but has remained unused.

The functions it references are still referenced elsewhere.

Remove it.

Hi Jakub,

Quoted 1 line

This one doesn't apply, reportedly.

Hmm, do you have a link to that report, or to which tree I should try applying it to.

Dave

Quoted 2 lines
Signature · 1 line
pw-bot: cr
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
maintainer
#3 lore raw
Quoted 4 lines · On Sat, 4 Jan 2025 21:56:24 +0000 Dr. David Alan Gilbert wrote:
Quoted 1 line

This one doesn't apply, reportedly.

Hmm, do you have a link to that report, or to which tree I should try applying it to.

net-next, the tree in the subject prefix:

$ git checkout net-next/main
$ wget 'https://lore.kernel.org/all/[email protected]/raw'
Saving 'raw'
$ git am raw
Applying: ixgbevf: Remove unused ixgbevf_hv_mbx_ops
error: patch failed: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h:439
error: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h: patch does not apply
Patch failed at 0001 ixgbevf: Remove unused ixgbevf_hv_mbx_ops
#4 lore raw
Quoted 9 lines · * Jakub Kicinski ([email protected]) wrote:
Quoted 4 lines · On Sat, 4 Jan 2025 21:56:24 +0000 Dr. David Alan Gilbert wrote:
Quoted 1 line

This one doesn't apply, reportedly.

Hmm, do you have a link to that report, or to which tree I should try applying it to.

net-next, the tree in the subject prefix:

$ git checkout net-next/main

Thanks

Quoted 7 lines
$ wget 'https://lore.kernel.org/all/[email protected]/raw'
Saving 'raw'
$ git am raw
Applying: ixgbevf: Remove unused ixgbevf_hv_mbx_ops
error: patch failed: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h:439
error: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h: patch does not apply
Patch failed at 0001 ixgbevf: Remove unused ixgbevf_hv_mbx_ops

Oh I see, it's the e610 patch that crept in and just changed the context and moved the lines down a bit; not built it yet, but I'll cut a new version.

See below.

Dave

drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0 -1
index 9b37f354d78c..4384e892f967 100644
@@ -443,7 +443,6 @@ extern const struct ixgbevf_info ixgbevf_X540_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_e610_vf_hv_info;
-extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;
 
 /* needed by ethtool.c */
 extern const char ixgbevf_driver_name[];

vs

drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +0 -1
index 130cb868774c..a43cb500274e 100644
@@ -439,7 +439,6 @@ extern const struct ixgbevf_info ixgbevf_82599_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X540_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info;
 extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info;
-extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;
 
 /* needed by ethtool.c */
 extern const char ixgbevf_driver_name[];
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#5 lore raw
In reply to Jakub Kicinski
Quoted 8 lines · * Jakub Kicinski ([email protected]) wrote:
Quoted 4 lines · On Sat, 4 Jan 2025 21:56:24 +0000 Dr. David Alan Gilbert wrote:
Quoted 1 line

This one doesn't apply, reportedly.

Hmm, do you have a link to that report, or to which tree I should try applying it to.

net-next, the tree in the subject prefix:

Quoted 8 lines
$ git checkout net-next/main
$ wget 'https://lore.kernel.org/all/[email protected]/raw'
Saving 'raw'
$ git am raw
Applying: ixgbevf: Remove unused ixgbevf_hv_mbx_ops
error: patch failed: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h:439
error: drivers/net/ethernet/intel/ixgbevf/ixgbevf.h: patch does not apply
Patch failed at 0001 ixgbevf: Remove unused ixgbevf_hv_mbx_ops

Just sent:
Subject: [PATCH net-next v2] ixgbevf: Remove unused ixgbevf_hv_mbx_ops
Message-ID: <[email protected]>

on top of a few hour old net-next.

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/