net/iavf: fix lack of MAC type when set MAC address
authorRobin Zhang <robinx.zhang@intel.com>
Fri, 19 Mar 2021 09:20:19 +0000 (09:20 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 16 Apr 2021 10:27:51 +0000 (12:27 +0200)
commitb335e7203475c82f79692171ce9add9f846d71ef
tree56fea5b40d002455c1f0fb48202009058da01bf9
parent3f604ddf33cf69d9a9a7645e67a7e0b915e76b6a
net/iavf: fix lack of MAC type when set MAC address

When set default MAC address, use type VIRTCHNL_ETHER_ADDR_PRIMARY as this
case is changing device/primary unicast MAC. For other cases, such as
adding or deleting extra unicast addresses and multicast addresses, use
type VIRTCHNL_ETHER_ADDR_EXTRA.

Fixes: cb25d4323fbf ("net/avf: enable MAC VLAN and promisc ops")
Cc: stable@dpdk.org
Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Tested-by: Yan Xia <yanx.xia@intel.com>
drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_vchnl.c