| /dpdk/drivers/net/txgbe/base/ |
| H A D | txgbe_vf.c | 20 struct txgbe_mac_info *mac = &hw->mac; in txgbe_init_ops_vf() local 24 mac->reset_hw = txgbe_reset_hw_vf; in txgbe_init_ops_vf() 25 mac->start_hw = txgbe_start_hw_vf; in txgbe_init_ops_vf() 27 mac->get_mac_addr = txgbe_get_mac_addr_vf; in txgbe_init_ops_vf() 28 mac->stop_hw = txgbe_stop_hw_vf; in txgbe_init_ops_vf() 29 mac->negotiate_api_version = txgbevf_negotiate_api_version; in txgbe_init_ops_vf() 30 mac->update_mc_addr_list = txgbe_update_mc_addr_list_vf; in txgbe_init_ops_vf() 33 mac->check_link = txgbe_check_mac_link_vf; in txgbe_init_ops_vf() 36 mac->set_rar = txgbe_set_rar_vf; in txgbe_init_ops_vf() 37 mac->set_uc_addr = txgbevf_set_uc_addr_vf; in txgbe_init_ops_vf() [all …]
|
| H A D | txgbe_dummy.h | 559 hw->mac.init_hw = txgbe_mac_init_hw_dummy; in txgbe_init_ops_dummy() 560 hw->mac.reset_hw = txgbe_mac_reset_hw_dummy; in txgbe_init_ops_dummy() 561 hw->mac.start_hw = txgbe_mac_start_hw_dummy; in txgbe_init_ops_dummy() 562 hw->mac.stop_hw = txgbe_mac_stop_hw_dummy; in txgbe_init_ops_dummy() 563 hw->mac.clear_hw_cntrs = txgbe_mac_clear_hw_cntrs_dummy; in txgbe_init_ops_dummy() 564 hw->mac.get_mac_addr = txgbe_mac_get_mac_addr_dummy; in txgbe_init_ops_dummy() 565 hw->mac.get_san_mac_addr = txgbe_mac_get_san_mac_addr_dummy; in txgbe_init_ops_dummy() 566 hw->mac.set_san_mac_addr = txgbe_mac_set_san_mac_addr_dummy; in txgbe_init_ops_dummy() 567 hw->mac.get_device_caps = txgbe_mac_get_device_caps_dummy; in txgbe_init_ops_dummy() 568 hw->mac.get_wwn_prefix = txgbe_mac_get_wwn_prefix_dummy; in txgbe_init_ops_dummy() [all …]
|
| H A D | txgbe_eeprom.c | 144 err = hw->mac.acquire_swfw_sync(hw, mask); in txgbe_ee_read16() 150 hw->mac.release_swfw_sync(hw, mask); in txgbe_ee_read16() 173 err = hw->mac.acquire_swfw_sync(hw, mask); in txgbe_ee_readw_buffer() 190 hw->mac.release_swfw_sync(hw, mask); in txgbe_ee_readw_buffer() 202 err = hw->mac.acquire_swfw_sync(hw, mask); in txgbe_ee_readw_sw() 208 hw->mac.release_swfw_sync(hw, mask); in txgbe_ee_readw_sw() 226 err = hw->mac.acquire_swfw_sync(hw, mask); in txgbe_ee_read32() 232 hw->mac.release_swfw_sync(hw, mask); in txgbe_ee_read32() 252 err = hw->mac.acquire_swfw_sync(hw, mask); in txgbe_ee_write16() 258 hw->mac.release_swfw_sync(hw, mask); in txgbe_ee_write16() [all …]
|
| /dpdk/drivers/net/ngbe/base/ |
| H A D | ngbe_dummy.h | 298 hw->mac.init_hw = ngbe_mac_init_hw_dummy; in ngbe_init_ops_dummy() 299 hw->mac.reset_hw = ngbe_mac_reset_hw_dummy; in ngbe_init_ops_dummy() 300 hw->mac.start_hw = ngbe_mac_start_hw_dummy; in ngbe_init_ops_dummy() 301 hw->mac.stop_hw = ngbe_mac_stop_hw_dummy; in ngbe_init_ops_dummy() 302 hw->mac.clear_hw_cntrs = ngbe_mac_clear_hw_cntrs_dummy; in ngbe_init_ops_dummy() 303 hw->mac.get_mac_addr = ngbe_mac_get_mac_addr_dummy; in ngbe_init_ops_dummy() 304 hw->mac.enable_rx_dma = ngbe_mac_enable_rx_dma_dummy; in ngbe_init_ops_dummy() 305 hw->mac.disable_sec_rx_path = ngbe_mac_disable_sec_rx_path_dummy; in ngbe_init_ops_dummy() 306 hw->mac.enable_sec_rx_path = ngbe_mac_enable_sec_rx_path_dummy; in ngbe_init_ops_dummy() 307 hw->mac.acquire_swfw_sync = ngbe_mac_acquire_swfw_sync_dummy; in ngbe_init_ops_dummy() [all …]
|
| H A D | ngbe_eeprom.c | 141 err = hw->mac.acquire_swfw_sync(hw, mask); in ngbe_ee_readw_buffer() 158 hw->mac.release_swfw_sync(hw, mask); in ngbe_ee_readw_buffer() 175 err = hw->mac.acquire_swfw_sync(hw, mask); in ngbe_ee_read32() 181 hw->mac.release_swfw_sync(hw, mask); in ngbe_ee_read32() 204 err = hw->mac.acquire_swfw_sync(hw, mask); in ngbe_ee_writew_buffer() 220 hw->mac.release_swfw_sync(hw, mask); in ngbe_ee_writew_buffer()
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym.c | 74 struct fsattr src, dst, mac, key, iv; in process_crypto_auth_op() local 83 fsattr_va(&mac) = op->sym->auth.digest.data; in process_crypto_auth_op() 84 fsattr_pa(&mac) = op->sym->auth.digest.phys_addr; in process_crypto_auth_op() 85 fsattr_sz(&mac) = sess->auth.digest_length; in process_crypto_auth_op() 112 (sess->auth.op) ? NULL : (&mac), in process_crypto_auth_op() 132 struct fsattr cipher_key, aad, mac, auth_key; in process_crypto_combined_op() local 167 fsattr_va(&mac) = op->sym->auth.digest.data; in process_crypto_combined_op() 168 fsattr_pa(&mac) = op->sym->auth.digest.phys_addr; in process_crypto_combined_op() 169 fsattr_sz(&mac) = sess->auth.digest_length; in process_crypto_combined_op() 190 &mac, sess->cipher_first); in process_crypto_combined_op() [all …]
|
| /dpdk/lib/net/ |
| H A D | rte_arp.c | 10 const struct rte_ether_addr *mac) in rte_net_make_rarp_packet() argument 32 rte_ether_addr_copy(mac, ð_hdr->src_addr); in rte_net_make_rarp_packet() 43 rte_ether_addr_copy(mac, &rarp->arp_data.arp_sha); in rte_net_make_rarp_packet() 44 rte_ether_addr_copy(mac, &rarp->arp_data.arp_tha); in rte_net_make_rarp_packet()
|
| /dpdk/drivers/net/mlx4/ |
| H A D | mlx4_ethdev.c | 178 mlx4_get_mac(struct mlx4_priv *priv, uint8_t (*mac)[RTE_ETHER_ADDR_LEN]) in mlx4_get_mac() 185 memcpy(mac, request.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); in mlx4_get_mac() 455 if (index >= RTE_DIM(priv->mac) - priv->mac_mc) { in mlx4_mac_addr_remove() 459 memset(&priv->mac[index], 0, sizeof(priv->mac[index])); in mlx4_mac_addr_remove() 493 if (index >= RTE_DIM(priv->mac) - priv->mac_mc) { in mlx4_mac_addr_add() 497 memcpy(&priv->mac[index], mac_addr, sizeof(priv->mac[index])); in mlx4_mac_addr_add() 530 if (num > RTE_DIM(priv->mac)) { in mlx4_set_mc_addr_list() 541 for (i = RTE_DIM(priv->mac) - num; in mlx4_set_mc_addr_list() 542 i != RTE_DIM(priv->mac) - priv->mac_mc; in mlx4_set_mc_addr_list() 544 if (!rte_is_zero_ether_addr(&priv->mac[i])) { in mlx4_set_mc_addr_list() [all …]
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_mac_api.c | 21 switch (hw->mac.type) { in ionic_init_mac() 49 hw->mac.type = IONIC_MAC_CAPRI; in ionic_set_mac_type() 59 hw->mac.type, err); in ionic_set_mac_type()
|
| /dpdk/drivers/net/atlantic/ |
| H A D | rte_pmd_atlantic.c | 43 rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac) in rte_pmd_atl_macsec_config_txsc() argument 54 return atl_macsec_config_txsc(dev, mac); in rte_pmd_atl_macsec_config_txsc() 58 rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi) in rte_pmd_atl_macsec_config_rxsc() argument 69 return atl_macsec_config_rxsc(dev, mac, pi); in rte_pmd_atl_macsec_config_rxsc()
|
| H A D | rte_pmd_atlantic.h | 70 int rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac); 90 int rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi);
|
| H A D | atl_types.h | 75 u32 mac[2]; /* 6 bytes */ member 86 u32 mac[2]; /* 6 bytes */ member 154 int (*get_mac_permanent)(struct aq_hw_s *self, u8 *mac); 166 u8 *mac);
|
| /dpdk/drivers/net/bnx2x/ |
| H A D | ecore_sp.c | 622 data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], in ecore_check_mac_add() 623 data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]); in ecore_check_mac_add() 625 if (!ECORE_IS_VALID_ETHER_ADDR(data->mac.mac)) in ecore_check_mac_add() 631 if (!ECORE_MEMCMP(data->mac.mac, pos->u.mac.mac, ETH_ALEN) && in ecore_check_mac_add() 632 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in ecore_check_mac_add() 651 data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], in ecore_check_mac_del() 652 data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]); in ecore_check_mac_del() 656 if ((!ECORE_MEMCMP(data->mac.mac, pos->u.mac.mac, ETH_ALEN)) && in ecore_check_mac_del() 657 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in ecore_check_mac_del() 808 uint8_t *mac = elem->cmd_data.vlan_mac.u.mac.mac; in ecore_set_one_mac_e2() local [all …]
|
| /dpdk/examples/ipsec-secgw/test/ |
| H A D | pkttest.py | 60 self.mac = ':'.join(['%02x' % i for i in info[18:24]]) 65 def send_l3packet(self, pkt, mac): argument 66 e = Ether(src=self.mac, dst=mac) 82 return self.mac
|
| /dpdk/drivers/net/txgbe/ |
| H A D | txgbe_ethdev_vf.c | 175 (struct rte_ether_addr *)hw->mac.perm_addr; in eth_txgbevf_dev_init() 241 hw->mac.num_rar_entries = 128; /* The MAX of the underlying PF */ in eth_txgbevf_dev_init() 242 err = hw->mac.reset_hw(hw); in eth_txgbevf_dev_init() 267 hw->mac.num_rar_entries, 0); in eth_txgbevf_dev_init() 272 RTE_ETHER_ADDR_LEN * hw->mac.num_rar_entries); in eth_txgbevf_dev_init() 295 err = hw->mac.start_hw(hw); in eth_txgbevf_dev_init() 486 dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; in txgbevf_dev_info_get() 487 dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; in txgbevf_dev_info_get() 490 dev_info->max_mac_addrs = hw->mac.num_rar_entries; in txgbevf_dev_info_get() 628 err = hw->mac.reset_hw(hw); in txgbevf_dev_start() [all …]
|
| /dpdk/drivers/net/pcap/ |
| H A D | pcap_osdep_linux.c | 24 osdep_iface_mac_get(const char *if_name, struct rte_ether_addr *mac) in osdep_iface_mac_get() argument 38 rte_memcpy(mac->addr_bytes, ifr.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); in osdep_iface_mac_get()
|
| H A D | pcap_osdep_freebsd.c | 23 osdep_iface_mac_get(const char *if_name, struct rte_ether_addr *mac) in osdep_iface_mac_get() argument 55 rte_memcpy(mac->addr_bytes, LLADDR(sdl), RTE_ETHER_ADDR_LEN); in osdep_iface_mac_get()
|
| H A D | pcap_osdep_windows.c | 69 osdep_iface_mac_get(const char *device_name, struct rte_ether_addr *mac) in osdep_iface_mac_get() argument 109 memcpy(mac->addr_bytes, cur->PhysicalAddress, in osdep_iface_mac_get()
|
| /dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_nl.h | 38 struct rte_ether_addr *mac, uint32_t index); 41 uint64_t *mac_own, struct rte_ether_addr *mac, 62 struct rte_ether_addr *mac, int vf_index);
|
| H A D | mlx5_nl.c | 157 struct rte_ether_addr (*mac)[]; member 490 memcpy(&(*data->mac)[data->mac_n++], in mlx5_nl_mac_addr_cb() 515 struct rte_ether_addr (*mac)[], int *mac_n) in mlx5_nl_mac_addr_list() argument 532 .mac = mac, in mlx5_nl_mac_addr_list() 572 struct rte_ether_addr *mac, int add) in mlx5_nl_mac_addr_modify() argument 602 memcpy(RTA_DATA(&req.rta), mac, RTE_ETHER_ADDR_LEN); in mlx5_nl_mac_addr_modify() 617 rte_ether_format_addr(m, RTE_ETHER_ADDR_FMT_SIZE, mac); in mlx5_nl_mac_addr_modify() 644 struct rte_ether_addr *mac, int vf_index) in mlx5_nl_vf_mac_addr_modify() argument 680 memcpy(&ivm.mac, mac, RTE_ETHER_ADDR_LEN); in mlx5_nl_vf_mac_addr_modify() 707 RTE_ETHER_ADDR_BYTES(mac), in mlx5_nl_vf_mac_addr_modify() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | parser.c | 374 cmdline_fixed_string_t mac; member 384 struct rte_ether_addr mac; in cfg_parse_neigh() local 388 rc = parse_mac(res->mac, &mac); in cfg_parse_neigh() 389 APP_CHECK(rc == 0, st, "invalid ether addr:%s", res->mac); in cfg_parse_neigh() 390 rc = add_dst_ethaddr(res->port, &mac); in cfg_parse_neigh() 403 TOKEN_STRING_INITIALIZER(struct cfg_neigh_add_item, mac, NULL);
|
| /dpdk/drivers/net/thunderx/base/ |
| H A D | nicvf_mbox.h | 198 uint64_t mac:48; member 209 struct set_mac_msg mac; member 236 const uint8_t mac[NICVF_MAC_ADDR_SIZE]); 251 int nicvf_mbox_set_xcast(struct nicvf *nic, uint8_t mode, uint64_t mac);
|
| /dpdk/lib/ethdev/ |
| H A D | rte_class_eth.c | 24 [RTE_ETH_PARAM_MAC] = "mac", 44 struct rte_ether_addr mac; in eth_mac_cmp() local 50 if (rte_ether_unformat_addr(value, &mac) < 0) in eth_mac_cmp() 58 if (rte_is_same_ether_addr(&mac, &data->mac_addrs[index])) in eth_mac_cmp()
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation_hmac.c | 152 json_t *tcId, *mac; in parse_test_hmac_json_writeback() local 165 mac = json_string(info.one_line_text); in parse_test_hmac_json_writeback() 166 json_object_set_new(json_info.json_write_case, TAG_JSON_STR, mac); in parse_test_hmac_json_writeback()
|
| /dpdk/examples/vmdq/ |
| H A D | main.c | 326 struct rte_ether_addr mac; in port_init() local 327 mac = pool_addr_template; in port_init() 328 mac.addr_bytes[4] = port; in port_init() 329 mac.addr_bytes[5] = q; in port_init() 331 port, q, RTE_ETHER_ADDR_BYTES(&mac)); in port_init() 332 retval = rte_eth_dev_mac_addr_add(port, &mac, in port_init()
|