/freebsd/sys/dev/cxgbe/ |
H A D | t4_smt.c | 71 t4_find_or_alloc_sme(struct smt_data *s, uint8_t *smac) in t4_find_or_alloc_sme() argument 87 if (memcmp(e->smac, smac, ETHER_ADDR_LEN) == 0) in t4_find_or_alloc_sme() 142 memcpy(req->src_mac1, e->smac, ETHER_ADDR_LEN); in t4_write_sme() 147 memcpy(req->src_mac0, s->smtab[e->idx - 1].smac, in t4_write_sme() 151 memcpy(req->src_mac0, e->smac, ETHER_ADDR_LEN); in t4_write_sme() 156 memcpy(req->src_mac1, s->smtab[e->idx + 1].smac, in t4_write_sme() 169 memcpy(req->src_mac0, s->smtab[e->idx].smac, ETHER_ADDR_LEN); in t4_write_sme() 187 t4_smt_alloc_switching(struct smt_data *s, uint8_t *smac) in t4_smt_alloc_switching() argument 193 e = t4_find_or_alloc_sme(s, smac); in t4_smt_alloc_switching() 204 uint8_t *smac) in t4_smt_set_switching() argument [all …]
|
H A D | t4_smt.h | 53 uint8_t smac[ETHER_ADDR_LEN]; /* source MAC address */ member
|
H A D | t4_ioctl.h | 231 uint8_t smac[ETHER_ADDR_LEN]; /* new source MAC address */ member
|
/freebsd/tests/sys/netinet6/ |
H A D | redirect.py | 59 def construct_icmp6_redirect(smac, dmac, sip, dip, route_dst, route_gw): argument 60 e = sc.Ether(src=smac, dst=dmac) 79 pkt = construct_icmp6_redirect(args.smac, args.dmac, args.sip, args.dip,
|
H A D | forward6.sh | 89 --smac ${our_mac} --dmac ${jail_mac} \ 163 --smac ${our_mac} --dmac ${jail_mac} \ 238 --smac ${our_mac} --dmac ${jail_mac} \ 307 --smac ${our_mac} --dmac ${jail_mac} \ 381 --smac ${our_mac} --dmac ${jail_mac} \ 456 --smac ${our_mac} --dmac ${jail_mac} \
|
H A D | redirect.sh | 103 --smac ${remote_rtr_mac} --dmac ${local_ll_mac} \
|
/freebsd/tests/sys/netinet/ |
H A D | redirect.py | 59 def construct_icmp_redirect(smac, dmac, sip, dip, route_dst, route_gw): argument 60 e = sc.Ether(src=smac, dst=dmac) 80 pkt = construct_icmp_redirect(args.smac, args.dmac, args.sip, args.dip,
|
H A D | forward.sh | 75 --smac ${our_mac} --dmac ${jail_mac} \ 135 --smac ${our_mac} --dmac ${jail_mac} \ 189 --smac ${our_mac} --dmac ${jail_mac} \ 249 --smac ${our_mac} --dmac ${jail_mac} \
|
H A D | redirect.sh | 89 --smac ${remote_rtr_mac} --dmac ${local_mac} \
|
/freebsd/tests/sys/common/ |
H A D | sender.py | 94 e = sc.Ether(src=args.smac, dst=args.dmac) 127 e = sc.Ether(src=args.smac, dst=args.dmac) 173 e = sc.Ether(src=args.smac, dst=args.dmac)
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 1036 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in destroy_qp_common() 1037 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common() 1038 qp->pri.smac = 0; in destroy_qp_common() 1041 if (qp->alt.smac) { in destroy_qp_common() 1042 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common() 1043 qp->alt.smac = 0; in destroy_qp_common() 1395 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument 1485 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path() 1486 smac_info->smac != smac) { in _mlx4_set_path() 1488 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path() [all …]
|
H A D | mlx4_ib_cq.c | 591 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 592 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 855 memcpy(wc->smac, cqe->smac, ETH_ALEN); in mlx4_ib_poll_one()
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_puda.h | 74 u8 smac[ETHER_ADDR_LEN]; member 111 u8 smac[ETHER_ADDR_LEN]; member
|
H A D | irdma_puda.c | 335 info->smac[0] = (u8)((qword6 >> 40) & 0xFF); in irdma_puda_poll_info() 336 info->smac[1] = (u8)((qword6 >> 32) & 0xFF); in irdma_puda_poll_info() 337 info->smac[2] = (u8)((qword6 >> 24) & 0xFF); in irdma_puda_poll_info() 338 info->smac[3] = (u8)((qword6 >> 16) & 0xFF); in irdma_puda_poll_info() 339 info->smac[4] = (u8)((qword6 >> 8) & 0xFF); in irdma_puda_poll_info() 340 info->smac[5] = (u8)(qword6 & 0xFF); in irdma_puda_poll_info()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_sp.c | 247 struct bnxt_qplib_gid *gid, u16 gid_idx, const u8 *smac) in bnxt_qplib_update_sgid() argument 271 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_update_sgid() 272 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_update_sgid() 273 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_update_sgid() 366 const union ib_gid *gid, const u8 *smac, u16 vlan_id, in bnxt_qplib_add_sgid() argument 431 req.src_mac[0] = cpu_to_be16(((u16 *)smac)[0]); in bnxt_qplib_add_sgid() 432 req.src_mac[1] = cpu_to_be16(((u16 *)smac)[1]); in bnxt_qplib_add_sgid() 433 req.src_mac[2] = cpu_to_be16(((u16 *)smac)[2]); in bnxt_qplib_add_sgid()
|
H A D | qplib_fp.h | 357 u8 smac[6]; member 435 u8 smac[6]; member
|
H A D | ib_verbs.c | 1849 ether_addr_copy(qp->qplib_qp.smac, rdev->dev_addr); in bnxt_re_create_shadow_qp() 2115 ether_addr_copy(qplqp->smac, rdev->dev_addr); in bnxt_re_init_qp_attr() 2458 u8 ip_off, data[48], smac[ETH_ALEN]; in get_source_port() local 2471 memcpy(smac, qp->qplib_qp.smac, ETH_ALEN); in get_source_port() 2477 memcpy(data + buf_len, smac, ETH_ALEN); in get_source_port() 2669 memcpy(qp->qplib_qp.smac, rdev->dev_addr, in bnxt_re_modify_qp() 2951 ptmac = qp->qplib_qp.smac; in bnxt_re_build_qp1_send() 4507 memcpy(wc->smac, orig_cqe->smac, ETH_ALEN); in bnxt_re_process_res_shadow_qp_wc() 4544 memcpy(wc->smac, cqe->smac, ETH_ALEN); in bnxt_re_process_res_ud_wc() 4665 memcpy(wc->smac, cqe->smac, ETH_ALEN); in bnxt_re_poll_cq()
|
H A D | qplib_fp.c | 1581 memcpy(qp->smac, sb->src_mac, ETH_ALEN); in bnxt_qplib_query_qp() 3082 u16 *smac; in bnxt_qplib_cq_process_res_ud() local 3107 smac = (u16 *)cqe->smac; in bnxt_qplib_cq_process_res_ud() 3108 smac[2] = ntohs(le16_to_cpu(hwcqe->src_mac[0])); in bnxt_qplib_cq_process_res_ud() 3109 smac[1] = ntohs(le16_to_cpu(hwcqe->src_mac[1])); in bnxt_qplib_cq_process_res_ud() 3110 smac[0] = ntohs(le16_to_cpu(hwcqe->src_mac[2])); in bnxt_qplib_cq_process_res_ud() 3227 memcpy(cqe->smac, qp->smac, 6); in bnxt_qplib_cq_process_res_raweth_qp1()
|
H A D | qplib_sp.h | 355 struct bnxt_qplib_gid *gid, u16 gid_idx, const u8 *smac);
|
/freebsd/sys/dev/mlx4/ |
H A D | cq.h | 53 u8 smac[ETH_ALEN]; member
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 131 *((u32 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[0]) = in qlnxr_ll2_complete_rx_packet() 133 *((u16 *)&qp->rqe_wr_id[qp->rq.gsi_cons].smac[4]) = in qlnxr_ll2_complete_rx_packet() 829 memcpy(&wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac, ETH_ALEN); in qlnxr_gsi_poll_cq()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_vale.c | 616 uint64_t smac, dmac; in netmap_vale_learning() local 631 smac = le64toh(*(uint64_t *)(buf + 4)); in netmap_vale_learning() 632 smac >>= 16; in netmap_vale_learning() 638 if (((buf[6] & 1) == 0) && (na->last_smac != smac)) { /* valid src */ in netmap_vale_learning() 642 na->last_smac = ht[sh].mac = smac; /* XXX expire ? */ in netmap_vale_learning()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_addr.h | 152 u8 *smac, if_t dev,
|
/freebsd/sys/dev/mlx5/ |
H A D | device.h | 758 static inline void get_cqe_smac(struct mlx5_cqe64 *cqe, u8 *smac) in get_cqe_smac() argument 760 memcpy(smac, &cqe->rss_hash_type , 4); in get_cqe_smac() 761 memcpy(smac + 4, &cqe->slid , 2); in get_cqe_smac()
|
/freebsd/usr.sbin/cxgbetool/ |
H A D | cxgbetool.c | 886 t->fs.smac[0], t->fs.smac[1], in do_show_one_filter_info() 887 t->fs.smac[2], t->fs.smac[3], in do_show_one_filter_info() 888 t->fs.smac[4], t->fs.smac[5], in do_show_one_filter_info() 1300 memcpy(t.fs.smac, saddr, ETHER_ADDR_LEN); in set_filter()
|