Skip to content

Commit 69a46a5

Browse files
committed
Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue
Tony Nguyen says: ==================== Intel Wired LAN Driver Updates 2025-07-15 (ixgbe, fm10k, i40e, ice) Arnd Bergmann resolves compile issues with large NR_CPUS for ixgbe, fm10k, and i40e. For ice: Dave adds a NULL check for LAG netdev. Michal corrects a pointer check in debugfs initialization. * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue: ice: check correct pointer in fwlog debugfs ice: add NULL check in eswitch lag check ethernet: intel: fix building with large NR_CPUS ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 3cd582e + bedd033 commit 69a46a5

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

drivers/net/ethernet/intel/fm10k/fm10k.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,14 @@ struct fm10k_q_vector {
189189
struct fm10k_ring_container rx, tx;
190190

191191
struct napi_struct napi;
192+
struct rcu_head rcu; /* to avoid race with update stats on free */
193+
192194
cpumask_t affinity_mask;
193195
char name[IFNAMSIZ + 9];
194196

195197
#ifdef CONFIG_DEBUG_FS
196198
struct dentry *dbg_q_vector;
197199
#endif /* CONFIG_DEBUG_FS */
198-
struct rcu_head rcu; /* to avoid race with update stats on free */
199200

200201
/* for dynamic allocation of rings associated with this q_vector */
201202
struct fm10k_ring ring[] ____cacheline_internodealigned_in_smp;

drivers/net/ethernet/intel/i40e/i40e.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ struct i40e_q_vector {
945945
u16 reg_idx; /* register index of the interrupt */
946946

947947
struct napi_struct napi;
948+
struct rcu_head rcu; /* to avoid race with update stats on free */
948949

949950
struct i40e_ring_container rx;
950951
struct i40e_ring_container tx;
@@ -955,7 +956,6 @@ struct i40e_q_vector {
955956
cpumask_t affinity_mask;
956957
struct irq_affinity_notify affinity_notify;
957958

958-
struct rcu_head rcu; /* to avoid race with update stats on free */
959959
char name[I40E_INT_NAME_STR_LEN];
960960
bool arm_wb_state;
961961
bool in_busy_poll;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ void ice_debugfs_fwlog_init(struct ice_pf *pf)
606606

607607
pf->ice_debugfs_pf_fwlog = debugfs_create_dir("fwlog",
608608
pf->ice_debugfs_pf);
609-
if (IS_ERR(pf->ice_debugfs_pf))
609+
if (IS_ERR(pf->ice_debugfs_pf_fwlog))
610610
goto err_create_module_files;
611611

612612
fw_modules_dir = debugfs_create_dir("modules",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2226,7 +2226,8 @@ bool ice_lag_is_switchdev_running(struct ice_pf *pf)
22262226
struct ice_lag *lag = pf->lag;
22272227
struct net_device *tmp_nd;
22282228

2229-
if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG) || !lag)
2229+
if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG) ||
2230+
!lag || !lag->upper_netdev)
22302231
return false;
22312232

22322233
rcu_read_lock();

drivers/net/ethernet/intel/ixgbe/ixgbe.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,10 @@ struct ixgbe_q_vector {
507507
struct ixgbe_ring_container rx, tx;
508508

509509
struct napi_struct napi;
510+
struct rcu_head rcu; /* to avoid race with update stats on free */
511+
510512
cpumask_t affinity_mask;
511513
int numa_node;
512-
struct rcu_head rcu; /* to avoid race with update stats on free */
513514
char name[IFNAMSIZ + 9];
514515

515516
/* for dynamic allocation of rings associated with this q_vector */

0 commit comments

Comments
 (0)