]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnxt_en: Check for valid forced speed during ethtool -s.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 5 Apr 2016 18:09:02 +0000 (14:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 20:20:48 +0000 (16:20 -0400)
commit9d9cee08fc9f5c4df84ef314158fd19c013bcec6
tree764e315bf408a120e3fda776468bd0b2c3000112
parent4bb13abf208cb484a9b9d1af9233b0ef850c2fe7
bnxt_en: Check for valid forced speed during ethtool -s.

Check that the forced speed is a valid speed supported by firmware.
If not supported, return -EINVAL.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c