]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ethtool: thunder_bgx: use ethtool.h constants for speed and duplex
authorMichael Zhivich <mzhivich@akamai.com>
Mon, 8 Apr 2019 19:00:46 +0000 (15:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 23:37:40 +0000 (16:37 -0700)
commit7f301cff1fc20c5b91203c5e610cf95782081d5d
tree0c8331800a7b8ead2ccdd0924709b98e1d424587
parentb7f29f8ce170c1b22779d62cbd24bf336ef0372b
ethtool: thunder_bgx: use ethtool.h constants for speed and duplex

Use constants provided by ethtool.h for speed and duplex values
instead of raw integer constants to increase code readability.

thunder_bgx already uses SPEED_UNKNOWN and DUPLEX_UNKNOWN constants,
also provided by ethtool.h.

Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c