Skip to content

Commit 53e2cb3

Browse files
committed
Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue
Tony Nguyen says: ==================== 10GbE Intel Wired LAN Driver Updates 2022-05-05 This series contains updates to ixgbe and igb drivers. Jeff Daly adjusts type for 'allow_unsupported_sfp' to match the associated struct value for ixgbe. Alaa Mohamed converts, deprecated, kmap() call to kmap_local_page() for igb. * '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue: igb: Convert kmap() to kmap_local_page() ixgbe: Fix module_param allow_unsupported_sfp type ==================== Link: https://lore.kernel.org/r/20220505155651.2606195-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 95730d6 + b35413f commit 53e2cb3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/net/ethernet/intel/igb/igb_ethtool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,14 +1798,14 @@ static int igb_check_lbtest_frame(struct igb_rx_buffer *rx_buffer,
17981798

17991799
frame_size >>= 1;
18001800

1801-
data = kmap(rx_buffer->page);
1801+
data = kmap_local_page(rx_buffer->page);
18021802

18031803
if (data[3] != 0xFF ||
18041804
data[frame_size + 10] != 0xBE ||
18051805
data[frame_size + 12] != 0xAF)
18061806
match = false;
18071807

1808-
kunmap(rx_buffer->page);
1808+
kunmap_local(data);
18091809

18101810
return match;
18111811
}

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ MODULE_PARM_DESC(max_vfs,
151151
"Maximum number of virtual functions to allocate per physical function - default is zero and maximum value is 63. (Deprecated)");
152152
#endif /* CONFIG_PCI_IOV */
153153

154-
static unsigned int allow_unsupported_sfp;
155-
module_param(allow_unsupported_sfp, uint, 0);
154+
static bool allow_unsupported_sfp;
155+
module_param(allow_unsupported_sfp, bool, 0);
156156
MODULE_PARM_DESC(allow_unsupported_sfp,
157157
"Allow unsupported and untested SFP+ modules on 82599-based adapters");
158158

0 commit comments

Comments
 (0)