common/iavf: replace macro for MAC address length
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 15 Oct 2020 00:43:23 +0000 (08:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:19 +0000 (19:48 +0200)
Replace ETH_ALEN with VIRTCHNL_ETH_LENGTH_OF_ADDRESS to keep consistent.

Signed-off-by: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/common/iavf/virtchnl.h

index 81eabd7..a5a300a 100644 (file)
@@ -624,8 +624,8 @@ VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_tc_info);
  */
 
 struct virtchnl_l4_spec {
-       u8      src_mac[ETH_ALEN];
-       u8      dst_mac[ETH_ALEN];
+       u8      src_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS];
+       u8      dst_mac[VIRTCHNL_ETH_LENGTH_OF_ADDRESS];
        /* vlan_prio is part of this 16 bit field even from OS perspective
         * vlan_id:12 is actual vlan_id, then vlanid:bit14..12 is vlan_prio
         * in future, when decided to offload vlan_prio, pass that information