net: add rte prefix to ether structures
[dpdk.git] / drivers / net / atlantic / hw_atl / hw_atl_utils_fw2x.c
index 0d24aa9..55b5ce3 100644 (file)
@@ -228,8 +228,8 @@ int aq_fw2x_get_mac_permanent(struct aq_hw_s *self, u8 *mac)
                mac_addr[1] = rte_constant_bswap32(mac_addr[1]);
        }
 
-       ether_addr_copy((struct ether_addr *)mac_addr,
-                       (struct ether_addr *)mac);
+       ether_addr_copy((struct rte_ether_addr *)mac_addr,
+                       (struct rte_ether_addr *)mac);
 
        if ((mac[0] & 0x01U) || ((mac[0] | mac[1] | mac[2]) == 0x00U)) {
                unsigned int rnd = (uint32_t)rte_rand();
@@ -671,7 +671,7 @@ static int aq_fw2x_send_macsec_request(struct aq_hw_s *self,
        int err = 0;
        u32 mpi_opts = 0;
 
-       if (!response || !response)
+       if (!req || !response)
                return 0;
 
        if ((self->caps_lo & BIT(CAPS_LO_MACSEC)) == 0)