1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel
Erwan Velu ef3c313119 i40e: Report MFS in decimal base instead of hex
If the MFS is set below the default (0x2600), a warning message is
reported like the following :

	MFS for port 1 has been set below the default: 600

This message is a bit confusing as the number shown here (600) is in
fact an hexa number: 0x600 = 1536

Without any explicit "0x" prefix, this message is read like the MFS is
set to 600 bytes.

MFS, as per MTUs, are usually expressed in decimal base.

This commit reports both current and default MFS values in decimal
so it's less confusing for end-users.

A typical warning message looks like the following :

	MFS for port 1 (1536) has been set below the default (9728)

Signed-off-by: Erwan Velu <e.velu@criteo.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Fixes: 3a2c6ced90 ("i40e: Add a check to see if MFS is set")
Link: https://lore.kernel.org/r/20240423182723.740401-3-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-25 08:20:55 -07:00
..
e1000 intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
e1000e e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue 2024-03-27 11:44:34 -07:00
fm10k intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
i40e i40e: Report MFS in decimal base instead of hex 2024-04-25 08:20:55 -07:00
iavf iavf: drop duplicate iavf_{add|del}_cloud_filter() calls 2024-03-06 09:32:58 -08:00
ice ice: Fix checking for unsupported keys on non-tunnel device 2024-04-16 10:55:25 -07:00
idpf idpf: fix kernel panic on unknown packet types 2024-04-03 13:07:28 -07:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-11 20:38:36 -07:00
igbvf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
igc igc: Fix LED-related deadlock on driver unbind 2024-04-24 20:09:30 -07:00
ixgbe ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-03-25 09:57:21 -07:00
ixgbevf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
e100.c intel: make module parameters readable in sys filesystem 2024-03-04 20:49:58 -08:00
Kconfig igc: fix LEDS_CLASS dependency 2024-03-04 20:49:58 -08:00
Makefile idpf: add SRIOV support and other ndo_ops 2023-09-13 14:59:24 -07:00