Skip to content

Commit bb678f0

Browse files
committed
Merge branch 'intel-wired-lan-driver-updates-2024-06-03'
Jacob Keller says: ==================== Intel Wired LAN Driver Updates 2024-06-03 This series includes miscellaneous improvements for the ice as well as a cleanup to the Makefiles for all Intel net drivers. Andy fixes all of the Intel net driver Makefiles to use the documented '*-y' syntax for specifying object files to link into kernel driver modules, rather than the '*-objs' syntax which works but is documented as reserved for user-space host programs. Jacob has a cleanup to refactor rounding logic in the ice driver into a common roundup_u64 helper function. Michal Schmidt replaces irq_set_affinity_hint() to use irq_update_affinity_hint() which behaves better with user-applied affinity settings. v2: https://lore.kernel.org/r/20240605-next-2024-06-03-intel-next-batch-v2-0-39c23963fa78@intel.com v1: https://lore.kernel.org/r/20240603-next-2024-06-03-intel-next-batch-v1-0-e0523b28f325@intel.com ==================== Link: https://lore.kernel.org/r/20240607-next-2024-06-03-intel-next-batch-v3-0-d1470cee3347@intel.com Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 2ebb87f + dee5576 commit bb678f0

File tree

15 files changed

+54
-37
lines changed

15 files changed

+54
-37
lines changed

drivers/net/ethernet/intel/e1000/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
obj-$(CONFIG_E1000) += e1000.o
99

10-
e1000-objs := e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o
10+
e1000-y := e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o

drivers/net/ethernet/intel/e1000e/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ subdir-ccflags-y += -I$(src)
1010

1111
obj-$(CONFIG_E1000E) += e1000e.o
1212

13-
e1000e-objs := 82571.o ich8lan.o 80003es2lan.o \
14-
mac.o manage.o nvm.o phy.o \
15-
param.o ethtool.o netdev.o ptp.o
16-
13+
e1000e-y := 82571.o ich8lan.o 80003es2lan.o \
14+
mac.o manage.o nvm.o phy.o \
15+
param.o ethtool.o netdev.o ptp.o

drivers/net/ethernet/intel/i40e/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ subdir-ccflags-y += -I$(src)
1010

1111
obj-$(CONFIG_I40E) += i40e.o
1212

13-
i40e-objs := i40e_main.o \
13+
i40e-y := i40e_main.o \
1414
i40e_ethtool.o \
1515
i40e_adminq.o \
1616
i40e_common.o \

drivers/net/ethernet/intel/iavf/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ subdir-ccflags-y += -I$(src)
1111

1212
obj-$(CONFIG_IAVF) += iavf.o
1313

14-
iavf-objs := iavf_main.o iavf_ethtool.o iavf_virtchnl.o iavf_fdir.o \
15-
iavf_adv_rss.o \
16-
iavf_txrx.o iavf_common.o iavf_adminq.o
14+
iavf-y := iavf_main.o iavf_ethtool.o iavf_virtchnl.o iavf_fdir.o \
15+
iavf_adv_rss.o iavf_txrx.o iavf_common.o iavf_adminq.o

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,8 +2580,8 @@ void ice_vsi_free_irq(struct ice_vsi *vsi)
25802580
if (!IS_ENABLED(CONFIG_RFS_ACCEL))
25812581
irq_set_affinity_notifier(irq_num, NULL);
25822582

2583-
/* clear the affinity_mask in the IRQ descriptor */
2584-
irq_set_affinity_hint(irq_num, NULL);
2583+
/* clear the affinity_hint in the IRQ descriptor */
2584+
irq_update_affinity_hint(irq_num, NULL);
25852585
synchronize_irq(irq_num);
25862586
devm_free_irq(ice_pf_to_dev(pf), irq_num, vsi->q_vectors[i]);
25872587
}

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ static int ice_vsi_req_irq_msix(struct ice_vsi *vsi, char *basename)
26072607
}
26082608

26092609
/* assign the mask for this irq */
2610-
irq_set_affinity_hint(irq_num, &q_vector->affinity_mask);
2610+
irq_update_affinity_hint(irq_num, &q_vector->affinity_mask);
26112611
}
26122612

26132613
err = ice_set_cpu_rx_rmap(vsi);
@@ -2625,7 +2625,7 @@ static int ice_vsi_req_irq_msix(struct ice_vsi *vsi, char *basename)
26252625
irq_num = vsi->q_vectors[vector]->irq.virq;
26262626
if (!IS_ENABLED(CONFIG_RFS_ACCEL))
26272627
irq_set_affinity_notifier(irq_num, NULL);
2628-
irq_set_affinity_hint(irq_num, NULL);
2628+
irq_update_affinity_hint(irq_num, NULL);
26292629
devm_free_irq(dev, irq_num, &vsi->q_vectors[vector]);
26302630
}
26312631
return err;

drivers/net/ethernet/intel/ice/ice_ptp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,8 +1773,7 @@ static int ice_ptp_cfg_clkout(struct ice_pf *pf, unsigned int chan,
17731773
* maintaining phase
17741774
*/
17751775
if (start_time < current_time)
1776-
start_time = div64_u64(current_time + NSEC_PER_SEC - 1,
1777-
NSEC_PER_SEC) * NSEC_PER_SEC + phase;
1776+
start_time = roundup_u64(current_time, NSEC_PER_SEC) + phase;
17781777

17791778
if (ice_is_e810(hw))
17801779
start_time -= E810_OUT_PROP_DELAY_NS;

drivers/net/ethernet/intel/igb/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
obj-$(CONFIG_IGB) += igb.o
88

9-
igb-objs := igb_main.o igb_ethtool.o e1000_82575.o \
10-
e1000_mac.o e1000_nvm.o e1000_phy.o e1000_mbx.o \
11-
e1000_i210.o igb_ptp.o igb_hwmon.o
9+
igb-y := igb_main.o igb_ethtool.o e1000_82575.o \
10+
e1000_mac.o e1000_nvm.o e1000_phy.o e1000_mbx.o \
11+
e1000_i210.o igb_ptp.o igb_hwmon.o

drivers/net/ethernet/intel/igbvf/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
obj-$(CONFIG_IGBVF) += igbvf.o
88

9-
igbvf-objs := vf.o \
10-
mbx.o \
11-
ethtool.o \
12-
netdev.o
13-
9+
igbvf-y := vf.o mbx.o ethtool.o netdev.o

drivers/net/ethernet/intel/igc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
obj-$(CONFIG_IGC) += igc.o
9-
igc-$(CONFIG_IGC_LEDS) += igc_leds.o
109

11-
igc-objs := igc_main.o igc_mac.o igc_i225.o igc_base.o igc_nvm.o igc_phy.o \
12-
igc_diag.o igc_ethtool.o igc_ptp.o igc_dump.o igc_tsn.o igc_xdp.o
10+
igc-y := igc_main.o igc_mac.o igc_i225.o igc_base.o igc_nvm.o igc_phy.o \
11+
igc_diag.o igc_ethtool.o igc_ptp.o igc_dump.o igc_tsn.o igc_xdp.o
12+
igc-$(CONFIG_IGC_LEDS) += igc_leds.o

0 commit comments

Comments
 (0)