linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan 28ea334bd1 bnxt_en: Fix VF mac address regression.
The recent commit to always forward the VF MAC address to the PF for
approval may not work if the PF driver or the firmware is older.  This
will cause the VF driver to fail during probe:

  bnxt_en 0000:00:03.0 (unnamed net_device) (uninitialized): hwrm req_type 0xf seq id 0x5 error 0xffff
  bnxt_en 0000:00:03.0 (unnamed net_device) (uninitialized): VF MAC address 00:00:17:02:05:d0 not approved by the PF
  bnxt_en 0000:00:03.0: Unable to initialize mac address.
  bnxt_en: probe of 0000:00:03.0 failed with error -99

We fix it by treating the error as fatal only if the VF MAC address is
locally generated by the VF.

Fixes: 707e7e9660 ("bnxt_en: Always forward VF MAC address to the PF.")
Reported-by: Seth Forshee <seth.forshee@canonical.com>
Reported-by: Siwei Liu <loseweigh@gmail.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-17 07:56:35 -07:00
..
bnxt_coredump.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_dcb.c bnxt_en: Add DCBNL DSCP application protocol support. 2018-08-05 17:08:26 -07:00
bnxt_dcb.h bnxt_en: Do not use the CNP CoS queue for networking traffic. 2018-08-05 17:08:26 -07:00
bnxt_debugfs.c bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_debugfs.h bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00
bnxt_devlink.c bnxt_en: Update firmware interface version to 1.9.2.25. 2018-08-05 17:08:25 -07:00
bnxt_devlink.h bnxt_en: Add bnxt_en initial params table and register it. 2018-07-05 19:58:35 +09:00
bnxt_dim.c net/dim: Rename *_get_profile() functions to *_get_rx_moderation() 2018-04-24 10:15:07 -04:00
bnxt_ethtool.c bnxt_en: take coredump_record structure off stack 2018-08-13 20:45:49 -07:00
bnxt_ethtool.h bnxt_en: Add support for ethtool get dump. 2018-08-05 17:08:26 -07:00
bnxt_fw_hdr.h
bnxt_hsi.h bnxt_en: Update firmware interface version to 1.9.2.25. 2018-08-05 17:08:25 -07:00
bnxt_nvm_defs.h bnxt_en: Fix memory fault in bnxt_ethtool_init() 2018-04-19 16:35:09 -04:00
bnxt_sriov.c bnxt_en: Fix VF mac address regression. 2018-09-17 07:56:35 -07:00
bnxt_sriov.h bnxt_en: Fix VF mac address regression. 2018-09-17 07:56:35 -07:00
bnxt_tc.c net_sched: remove list_head from tc_action 2018-08-21 12:45:44 -07:00
bnxt_tc.h
bnxt_ulp.c bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
bnxt_ulp.h bnxt_en: Clean up unused functions. 2018-09-03 21:59:43 -07:00
bnxt_vfr.c bnxt_en: Add bnxt_en initial params table and register it. 2018-07-05 19:58:35 +09:00
bnxt_vfr.h bnxt_en: export a common switchdev PARENT_ID for all reps of an adapter 2018-01-17 14:48:27 -05:00
bnxt_xdp.c xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
bnxt_xdp.h net: bpf: rename ndo_xdp to ndo_bpf 2017-11-05 22:26:18 +09:00
bnxt.c bnxt_en: Fix VF mac address regression. 2018-09-17 07:56:35 -07:00
bnxt.h bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. 2018-09-03 21:59:43 -07:00
Makefile bnxt_en: add debugfs support for DIM 2018-04-27 14:47:30 -04:00