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>
This commit is contained in:
commit
53e2cb3b2a
|
@ -1798,14 +1798,14 @@ static int igb_check_lbtest_frame(struct igb_rx_buffer *rx_buffer,
|
|||
|
||||
frame_size >>= 1;
|
||||
|
||||
data = kmap(rx_buffer->page);
|
||||
data = kmap_local_page(rx_buffer->page);
|
||||
|
||||
if (data[3] != 0xFF ||
|
||||
data[frame_size + 10] != 0xBE ||
|
||||
data[frame_size + 12] != 0xAF)
|
||||
match = false;
|
||||
|
||||
kunmap(rx_buffer->page);
|
||||
kunmap_local(data);
|
||||
|
||||
return match;
|
||||
}
|
||||
|
|
|
@ -151,8 +151,8 @@ MODULE_PARM_DESC(max_vfs,
|
|||
"Maximum number of virtual functions to allocate per physical function - default is zero and maximum value is 63. (Deprecated)");
|
||||
#endif /* CONFIG_PCI_IOV */
|
||||
|
||||
static unsigned int allow_unsupported_sfp;
|
||||
module_param(allow_unsupported_sfp, uint, 0);
|
||||
static bool allow_unsupported_sfp;
|
||||
module_param(allow_unsupported_sfp, bool, 0);
|
||||
MODULE_PARM_DESC(allow_unsupported_sfp,
|
||||
"Allow unsupported and untested SFP+ modules on 82599-based adapters");
|
||||
|
||||
|
|
Loading…
Reference in New Issue