bnxt_en: Do not allow VF to read EEPROM.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Apr 2018 21:44:37 +0000 (17:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:47:30 +0000 (14:47 -0400)
commit4cebbaca12514986039b2ac7d30e36ecd2222f64
treedb567505100838e25156465f43363d00025682a8
parent20c1d28e106c0b526ae015fcac8e1e254bff091c
bnxt_en: Do not allow VF to read EEPROM.

Firmware does not allow the operation and would return failure, causing
a warning in dmesg.  So check for VF and disallow it in the driver.

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