numam-dpdk/drivers/net
Huisong Li 6c507191d1 net/hns3: fix default MAC address from firmware
Currently, default MAC address obtained from firmware in PF driver is
directly used by .mac_addr_set ops implementation function when the
rte_eth_dev_start API function is executed. At this moment, if the
default MAC addr isn't an unicast address, it will fail to set default
MAC addr to hardware.

So this patch adds the validity check of default MAC addr in PF driver.
We will use a random unicast address, if the default MAC address
obtained from firmware is not a valid unicast address.

In addition, this patch also adjusts the location of processing default
MAC addr in VF driver so as to increase relevance and readability of the
code.

Fixes: eab2177671 ("net/hns3: support setting VF MAC address by PF driver")
Fixes: d51867db65 ("net/hns3: add initialization")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2020-09-18 18:55:07 +02:00
..
af_packet build: remove makefiles 2020-09-08 00:09:50 +02:00
af_xdp net/af_xdp: change return value from Rx to unsigned 2020-09-18 18:55:07 +02:00
ark build: remove makefiles 2020-09-08 00:09:50 +02:00
atlantic build: remove makefiles 2020-09-08 00:09:50 +02:00
avp build: remove makefiles 2020-09-08 00:09:50 +02:00
axgbe mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
bnx2x build: remove makefiles 2020-09-08 00:09:50 +02:00
bnxt net/bnxt: fix speed setting on certain adapters 2020-09-18 18:55:07 +02:00
bonding build: remove makefiles 2020-09-08 00:09:50 +02:00
cxgbe build: remove makefiles 2020-09-08 00:09:50 +02:00
dpaa build: remove makefiles 2020-09-08 00:09:50 +02:00
dpaa2 build: remove makefiles 2020-09-08 00:09:50 +02:00
e1000 build: remove makefiles 2020-09-08 00:09:50 +02:00
ena net/ena/base: fix doorbell evaluation for LLQ 2020-09-18 18:55:05 +02:00
enetc build: remove makefiles 2020-09-08 00:09:50 +02:00
enic build: remove makefiles 2020-09-08 00:09:50 +02:00
failsafe net/failsafe: fix double space in warning log 2020-09-18 18:55:06 +02:00
fm10k net/fm10k: use inclusive engineering terminology 2020-09-18 18:55:07 +02:00
hinic net/hinic: fix negative array index read 2020-09-18 18:55:06 +02:00
hns3 net/hns3: fix default MAC address from firmware 2020-09-18 18:55:07 +02:00
i40e net/i40e: support link status event in VF 2020-09-18 18:55:07 +02:00
iavf net/iavf: fix mismatch command 2020-09-18 18:55:07 +02:00
ice net/ice: fix flow director GTPU rule creation 2020-09-18 18:55:07 +02:00
igc build: remove makefiles 2020-09-08 00:09:50 +02:00
ionic build: remove makefiles 2020-09-08 00:09:50 +02:00
ipn3ke avoid libfdt checks adding full paths to pkg-config 2020-09-15 15:19:34 +02:00
ixgbe build: remove makefiles 2020-09-08 00:09:50 +02:00
kni build: remove makefiles 2020-09-08 00:09:50 +02:00
liquidio bus/pci: switch to private kernel driver enum 2020-09-21 10:11:44 +02:00
memif build: remove makefiles 2020-09-08 00:09:50 +02:00
mlx4 build: remove makefiles 2020-09-08 00:09:50 +02:00
mlx5 net/mlx5/linux: refactor VLAN 2020-09-18 18:55:06 +02:00
mvneta ethdev: remove unused kernel driver field 2020-09-21 09:30:36 +02:00
mvpp2 ethdev: remove unused kernel driver field 2020-09-21 09:30:36 +02:00
netvsc net/netvsc: check for overflow on packet info from host 2020-09-18 18:55:06 +02:00
nfb build: remove makefiles 2020-09-08 00:09:50 +02:00
nfp bus/pci: switch to private kernel driver enum 2020-09-21 10:11:44 +02:00
null build: remove makefiles 2020-09-08 00:09:50 +02:00
octeontx ethdev: remove unused kernel driver field 2020-09-21 09:30:36 +02:00
octeontx2 mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
pcap build: remove makefiles 2020-09-08 00:09:50 +02:00
pfe mem: remove physical address aliases 2020-09-19 00:25:35 +02:00
qede build: remove makefiles 2020-09-08 00:09:50 +02:00
ring ethdev: remove unused kernel driver field 2020-09-21 09:30:36 +02:00
sfc build: remove makefiles 2020-09-08 00:09:50 +02:00
softnic ethdev: remove unused kernel driver field 2020-09-21 09:30:36 +02:00
szedata2 build: remove makefiles 2020-09-08 00:09:50 +02:00
tap net/tap: avoid using SIGIO 2020-09-18 18:55:06 +02:00
thunderx build: remove makefiles 2020-09-08 00:09:50 +02:00
vdev_netvsc build: remove makefiles 2020-09-08 00:09:50 +02:00
vhost build: remove makefiles 2020-09-08 00:09:50 +02:00
virtio bus/pci: switch to private kernel driver enum 2020-09-21 10:11:44 +02:00
vmxnet3 build: remove makefiles 2020-09-08 00:09:50 +02:00
meson.build