Searched refs:md2 (Results 1 – 15 of 15) sorted by relevance
/linux/include/net/ |
A D | erspan.h | 143 md2->hwid = hwid & 0xf; in set_hwid() 144 md2->hwid_upper = (hwid >> 4) & 0x3; in set_hwid() 149 return (md2->hwid_upper << 4) + md2->hwid; in get_hwid() 270 struct erspan_md2 *md2; in erspan_build_header_v2() local 309 md2->sgt = htons(sgt); in erspan_build_header_v2() 310 md2->p = 1; in erspan_build_header_v2() 311 md2->ft = 0; in erspan_build_header_v2() 312 md2->dir = direction; in erspan_build_header_v2() 313 md2->gra = gra; in erspan_build_header_v2() 314 md2->o = 0; in erspan_build_header_v2() [all …]
|
A D | nsh.h | 215 struct nsh_md2_tlv md2; member
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_tunnel_kern.c | 155 md.u.md2.dir = direction; in _erspan_set_tunnel() 156 md.u.md2.hwid = hwid & 0xf; in _erspan_set_tunnel() 157 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in _erspan_set_tunnel() 202 md.u.md2.dir, in _erspan_get_tunnel() 203 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in _erspan_get_tunnel() 204 bpf_ntohl(md.u.md2.timestamp)); in _erspan_get_tunnel() 240 md.u.md2.dir = direction; in _ip4ip6erspan_set_tunnel() 241 md.u.md2.hwid = hwid & 0xf; in _ip4ip6erspan_set_tunnel() 288 md.u.md2.dir, in _ip4ip6erspan_get_tunnel() 289 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in _ip4ip6erspan_get_tunnel() [all …]
|
/linux/drivers/net/wan/ |
A D | hd64572.c | 401 md2 |= MD2_LOOPBACK; in sca_set_port() 403 md2 &= ~MD2_LOOPBACK; in sca_set_port() 405 sca_out(md2, msci + MD2, card); in sca_set_port() 413 u8 md0, md2; in sca_open() local 417 md2 = MD2_NRZ; in sca_open() 420 md2 = MD2_NRZI; in sca_open() 423 md2 = MD2_FM_MARK; in sca_open() 426 md2 = MD2_FM_SPACE; in sca_open() 429 md2 = MD2_MANCHESTER; in sca_open() 433 md2 |= MD2_LOOPBACK; in sca_open() [all …]
|
A D | hd64570.c | 445 md2 |= MD2_LOOPBACK; in sca_set_port() 447 md2 &= ~MD2_LOOPBACK; in sca_set_port() 449 sca_out(md2, msci + MD2, card); in sca_set_port() 457 u8 md0, md2; in sca_open() local 461 md2 = MD2_NRZ; in sca_open() 464 md2 = MD2_NRZI; in sca_open() 467 md2 = MD2_FM_MARK; in sca_open() 470 md2 = MD2_FM_SPACE; in sca_open() 473 md2 = MD2_MANCHESTER; in sca_open() 477 md2 |= MD2_LOOPBACK; in sca_open() [all …]
|
/linux/tools/include/uapi/linux/ |
A D | erspan.h | 48 struct erspan_md2 md2; /* Version 2 (type III) */ member
|
/linux/include/uapi/linux/ |
A D | erspan.h | 48 struct erspan_md2 md2; /* Version 2 (type III) */ member
|
/linux/net/netfilter/ |
A D | nft_tunnel.c | 290 set_hwid(&opts->u.erspan.u.md2, hwid); in nft_tunnel_obj_erspan_init() 291 opts->u.erspan.u.md2.dir = dir; in nft_tunnel_obj_erspan_init() 579 get_hwid(&opts->u.erspan.u.md2)) || in nft_tunnel_opts_dump() 581 opts->u.erspan.u.md2.dir)) in nft_tunnel_opts_dump()
|
/linux/net/sched/ |
A D | act_tunnel_key.c | 209 md->u.md2.dir = nla_get_u8(nla); in tunnel_key_copy_erspan_opt() 211 set_hwid(&md->u.md2, nla_get_u8(nla)); in tunnel_key_copy_erspan_opt() 637 md->u.md2.dir) || in tunnel_key_erspan_opts_dump() 639 get_hwid(&md->u.md2)))) in tunnel_key_erspan_opts_dump()
|
A D | cls_flower.c | 1251 md->u.md2.dir = nla_get_u8(nla); in fl_set_erspan_opt() 1255 set_hwid(&md->u.md2, nla_get_u8(nla)); in fl_set_erspan_opt() 2748 md->u.md2.dir) || in fl_dump_key_erspan_opt() 2750 get_hwid(&md->u.md2)))) in fl_dump_key_erspan_opt()
|
/linux/net/ipv4/ |
A D | ip_gre.c | 271 struct erspan_md2 *md2; in erspan_rcv() local 331 md2 = &md->u.md2; in erspan_rcv() 332 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in erspan_rcv() 575 md->u.md2.dir, in erspan_fb_xmit() 576 get_hwid(&md->u.md2), in erspan_fb_xmit()
|
A D | ip_tunnel_core.c | 572 md->u.md2.dir = nla_get_u8(attr); in ip_tun_parse_opts_erspan() 574 set_hwid(&md->u.md2, nla_get_u8(attr)); in ip_tun_parse_opts_erspan() 797 (nla_put_u8(skb, LWTUNNEL_IP_OPT_ERSPAN_DIR, md->u.md2.dir) || in ip_tun_fill_encap_opts_erspan() 799 get_hwid(&md->u.md2)))) in ip_tun_fill_encap_opts_erspan()
|
/linux/net/ipv6/ |
A D | ip6_gre.c | 532 struct erspan_md2 *md2; in ip6erspan_rcv() local 582 md2 = &md->u.md2; in ip6erspan_rcv() 583 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in ip6erspan_rcv() 1010 md->u.md2.dir, in ip6erspan_tunnel_xmit() 1011 get_hwid(&md->u.md2), in ip6erspan_tunnel_xmit()
|
/linux/Documentation/admin-guide/ |
A D | md.rst | 36 2 md2
|
/linux/net/openvswitch/ |
A D | flow_netlink.c | 1321 memcpy(&nh->md2, nla_data(a), mdlen); in nsh_hdr_from_nlattr()
|
Completed in 50 milliseconds